diff options
author | frosty <passedgoadngot200@disroot.org> | 2025-08-28 10:48:45 -0400 |
---|---|---|
committer | frosty <passedgoadngot200@disroot.org> | 2025-08-28 10:48:45 -0400 |
commit | f89969d98637f244b9325f16c0b3b923fb65ef59 (patch) | |
tree | c6020d8d2fd7b54c8ba84330fc35b051ecac8151 /themes/orca/layouts | |
parent | d0deda9b496f582374f71bf25dd97b8410387a21 (diff) | |
download | www-f89969d98637f244b9325f16c0b3b923fb65ef59.tar.gz www-f89969d98637f244b9325f16c0b3b923fb65ef59.zip |
Diffstat (limited to 'themes/orca/layouts')
-rw-r--r-- | themes/orca/layouts/_default/baseof.html | 1 | ||||
-rw-r--r-- | themes/orca/layouts/_default/single.html | 16 | ||||
-rw-r--r-- | themes/orca/layouts/_default/whatnot.html (renamed from themes/orca/layouts/_default/blog.html) | 0 | ||||
-rw-r--r-- | themes/orca/layouts/partials/footer.html | 6 | ||||
-rw-r--r-- | themes/orca/layouts/partials/header.html | 11 | ||||
-rw-r--r-- | themes/orca/layouts/partials/post-item.html | 8 |
6 files changed, 32 insertions, 10 deletions
diff --git a/themes/orca/layouts/_default/baseof.html b/themes/orca/layouts/_default/baseof.html index 034b6a1..227f431 100644 --- a/themes/orca/layouts/_default/baseof.html +++ b/themes/orca/layouts/_default/baseof.html @@ -14,6 +14,7 @@ {{ block "main" . }} {{ .Content }} {{ end }} + {{ partial "footer.html" . }} </main> </body> </html> diff --git a/themes/orca/layouts/_default/single.html b/themes/orca/layouts/_default/single.html index a59ecb7..66ded2e 100644 --- a/themes/orca/layouts/_default/single.html +++ b/themes/orca/layouts/_default/single.html @@ -1,6 +1,20 @@ {{ define "main" }} <h1>{{ .Title }}</h1> - {{ .Content }} +{{ with .Params.res }} +<div class="res"> + <div>Resources</div> + <ul> + {{ range . }} + {{ range $k, $v := . }} + <li><a href="{{ $v }}">{{ $k }}</a></li> + {{ end }} + {{ end }} + </ul> +</div> +{{ end }} +{{ .Summary }} +{{ .TableOfContents }} +{{ (replace .Content .Summary "") | safeHTML }} {{ with .Lastmod }} <p>Last modified {{ .Format "January 2nd, 2006" }}.</p> {{ end }} diff --git a/themes/orca/layouts/_default/blog.html b/themes/orca/layouts/_default/whatnot.html index 0f73423..0f73423 100644 --- a/themes/orca/layouts/_default/blog.html +++ b/themes/orca/layouts/_default/whatnot.html diff --git a/themes/orca/layouts/partials/footer.html b/themes/orca/layouts/partials/footer.html new file mode 100644 index 0000000..a2ad329 --- /dev/null +++ b/themes/orca/layouts/partials/footer.html @@ -0,0 +1,6 @@ +<hr> +<p>All content is written by <a href="/">frosty</a> unless noted otherwise. If you think something is incorrect, let me know.</p> +<a href="https://www.gentoo.org/"><img src="/gentoo.png" alt="Gentoo Linux"/></a> +<a href="https://www.vim.org/"><img src="/vim.png" alt="Vim: the editor"/></a> +<br> +<br> diff --git a/themes/orca/layouts/partials/header.html b/themes/orca/layouts/partials/header.html index 77d2a39..666539a 100644 --- a/themes/orca/layouts/partials/header.html +++ b/themes/orca/layouts/partials/header.html @@ -1,14 +1,13 @@ <header> <div class="title"> - <img src="/icon.png"/> <h2><a href="/">{{ .Site.Title }}</a></h2> </div> <nav> -{{ range site.Menus.main }} + <div> +{{ range $i, $t := site.Menus.main -}} +{{ if $i }} {{ end -}} <span>[<a href="{{ .URL }}">{{ .Name }}</a>]</span> -{{ end }} -{{ range site.Menus.right_main }} - <span class="right">[<a href="{{ .URL }}">{{ .Name }}</a>]</span> -{{ end }} +{{- end }} + </div> </nav> </header> diff --git a/themes/orca/layouts/partials/post-item.html b/themes/orca/layouts/partials/post-item.html index 183dd28..b20a8f8 100644 --- a/themes/orca/layouts/partials/post-item.html +++ b/themes/orca/layouts/partials/post-item.html @@ -1,11 +1,13 @@ <div class="post"> <small class="right"><a href="/{{ .Type }}/">{{ .Type }}</a></small> - <b><a href="{{ .Permalink }}">{{ .Title }}</a></b> - <br> <i>{{ .Date.Format "January 2nd, 2006" }}</i> <br> + <b><a href="{{ .Permalink }}">{{ .Title }}</a></b> <br> <span> - {{ range $i, $t := .Params.tags }}{{ if $i }}, {{ end }}<a href="">{{ $t }}</a>{{ end }} +{{ range $i, $t := .Params.tags -}} + {{ if $i }}, {{ end -}} + {{ $t -}} +{{- end }} </span> </div> |