1
0
mirror of https://github.com/avinal/avinal.github.io.git synced 2026-07-04 07:40:09 +05:30

remove submodule and apply theme

This commit is contained in:
2023-07-19 15:51:46 +05:30
parent f4c5db16d2
commit 047aeb0b86
24 changed files with 904 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
<footer id="footer">
<nav>
{{ range .Site.Params.navs }}
<span class="nav-bar-item">
<a class="link" href="{{ .link | safeURL }}">{{ .name }}</a>
</span>
{{ end }}
</nav>
<div class="footnote">
<span>{{ .Site.Params.footnote | safeHTML }}</span>
</div>
</footer>
+47
View File
@@ -0,0 +1,47 @@
{{ $parsedUrl := urls.Parse .Site.BaseURL }}
{{ $domain := $parsedUrl.Host }}
{{ $domainWithoutWWW := replace $domain "www." "" }}
<header id="header">
<div>
<p>
This page is terminal friendly, try browsing with <a href="https://lynx.invisible-island.net/"
class="link">lynx</a>.
Or <a href="https://avinal.space{{ .Page.RelPermalink }}" class="link">click here</a> for modern version of this page with rich ui, comments and dark
mode.
</p>
</div>
{{ if .Params.image }}
<nav>
<span class="nav-bar-item">
<img src="{{ .Params.image | absURL }}" alt="{{ .Title }}">
</span>
</nav>
{{ end }}
<h1>
{{ .Title }}
</h1>
<h2>
<div>
<span><a href="{{ .Site.Params.self.link }}" class="link">{{ .Site.Params.self.name }}</a></span>
<time>| {{ .PublishDate.Format .Site.Params.dateFormat }}</time>
<span>| <a href="https://avinal.space/posts/{{ .Params.category }}" class="link">{{ .Params.category }}</a>
</span>
{{ if .Site.Params.showWordCount }}
<span>| {{ .WordCount }} words</span>
{{ end }}
{{ if gt .ReadingTime 1 }}
{{ .Scratch.Set "timeUnit" "mins" }}
{{ else }}
{{ .Scratch.Set "timeUnit" "min" }}
{{ end }}
{{ if .Site.Params.showReadingTime }}
<span>| ~{{.ReadingTime}} {{ .Scratch.Get "timeUnit" }}</span>
{{ end }}
</div>
</h2>
</header>