diff options
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | layouts/_default/books.html | 2 | ||||
-rw-r--r-- | layouts/_default/comic.html | 2 | ||||
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/_default/project.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/_default/wiki.html | 2 | ||||
-rw-r--r-- | layouts/partials/footer-extra.html | 17 | ||||
-rw-r--r-- | layouts/partials/footer.html | 28 | ||||
-rw-r--r-- | layouts/partials/head-extra.html | 1 | ||||
-rw-r--r-- | layouts/partials/languageSelect.html | 10 | ||||
-rw-r--r-- | layouts/partials/postInfo.html | 34 | ||||
m--------- | themes/anibus | 0 |
13 files changed, 9 insertions, 96 deletions
diff --git a/.gitmodules b/.gitmodules index 5a69223..af62ee5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "themes/anubis"] path = themes/anubis url = https://github.com/mitrichius/hugo-theme-anubis.git +[submodule "themes/anibus"] + path = themes/anibus + url = https://git.sr.ht/~huyngo/hugo-anubis-fork diff --git a/layouts/_default/books.html b/layouts/_default/books.html index d574cbf..d3044c9 100644 --- a/layouts/_default/books.html +++ b/layouts/_default/books.html @@ -33,7 +33,7 @@ <hr> {{ i18n "BookShare" }} </div> - {{ partial "postInfo.html" . }} + {{ partial "post-info.html" . }} </article> {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }} diff --git a/layouts/_default/comic.html b/layouts/_default/comic.html index ef86c7c..508df3c 100644 --- a/layouts/_default/comic.html +++ b/layouts/_default/comic.html @@ -32,7 +32,7 @@ {{ .Content }} </details> </section> - {{ partial "postInfo.html" . }} + {{ partial "post-info.html" . }} </article> {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 855ed91..33bd8b5 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -11,7 +11,7 @@ <header class="post-header"> <h2 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}"><a class="u-url" href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h2> </header> - {{ partial "postInfo.html" . }} + {{ partial "post-info.html" . }} </div> {{ end }} {{ end}} diff --git a/layouts/_default/project.html b/layouts/_default/project.html index 1761cbb..6b6b14d 100644 --- a/layouts/_default/project.html +++ b/layouts/_default/project.html @@ -55,7 +55,7 @@ </p> {{ end }} </div> - {{ partial "postInfo.html" . }} + {{ partial "post-info.html" . }} </article> {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7ba428d..c8e594a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -14,7 +14,7 @@ <div class="content e-content"> {{ .Content }} </div> - {{ partial "postInfo.html" . }} + {{ partial "post-info.html" . }} </article> {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }} diff --git a/layouts/_default/wiki.html b/layouts/_default/wiki.html index 5175dad..0e933b5 100644 --- a/layouts/_default/wiki.html +++ b/layouts/_default/wiki.html @@ -19,7 +19,7 @@ huyngo+{{ .Params.wiki }}@disroot.org </a> </div> - {{ partial "postInfo.html" . }} + {{ partial "post-info.html" . }} </article> {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }} diff --git a/layouts/partials/footer-extra.html b/layouts/partials/footer-extra.html deleted file mode 100644 index ef2108b..0000000 --- a/layouts/partials/footer-extra.html +++ /dev/null @@ -1,17 +0,0 @@ - <ul class="social-media-list"> - <li> - <a rel="me" href="https://fosstodon.org/@huy_ngo">Mastodon: @huy_ngo@fosstodon.org</a> - </li> - <li> - <a href="https://matrix.to/#/@huyngo:envs.net" rel="me">Matrix.org: @huyngo:envs.net</a> - </li> - <li> - <a href="https://sr.ht/~huyngo/" rel="me">SourceHut: ~huyngo</a> - </li> - <li> - <a href="https://github.com/Huy-Ngo" rel="me">GitHub: @Huy-Ngo</a> - </li> - <li> - <a href="mailto:huyngo@disroot.org" rel="me">Email: huyngo@disroot.org</a> - </li> - </ul> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index ca9bb40..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,28 +0,0 @@ -<footer class="common-footer"> - {{ $languagesCount := $.Site.Home.AllTranslations }} - {{ if gt $languagesCount 1 }} - {{ partial "languageSelect.html" . }} - {{ end }} - - <div class="common-footer-bottom"> - {{ if .Site.Menus.footer }} - {{ $currentPage := . }} - <ul class="footer-menu"> - {{ range .Site.Menus.footer }} - <li><a class="{{if or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasMenuCurrent "footer" .) }} active{{end}}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a></li> - {{ end }} - </ul> - {{ end }} - <div class="copyright"> - <p>© {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }}<br> - {{ i18n "powered" | humanize }} <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, {{ i18n "theme" }} <a target="_blank" rel="noopener noreferrer" href="https://github.com/mitrichius/hugo-theme-anubis">Anubis</a>.<br> - {{ partial "copyright.html" . }} - </p> - </div> - <div> - {{ partial "footer-extra.html" . }} - </div> - </div> - - {{ partial "h-card.html" . }} -</footer> diff --git a/layouts/partials/head-extra.html b/layouts/partials/head-extra.html index 71a7579..6d60ecd 100644 --- a/layouts/partials/head-extra.html +++ b/layouts/partials/head-extra.html @@ -1,4 +1,3 @@ -<link rel="stylesheet" href={{ "/css/custom.css?v=20210912" }}> <link rel="apple-touch-icon" sizes="180x180" href={{ "/apple-touch-icon.png" }}> <link rel="icon" type="image/png" sizes="32x32" href={{ "/favicon-32x32.png" }}> <link rel="icon" type="image/png" sizes="16x16" href={{ "/favicon-16x16.png" }}> diff --git a/layouts/partials/languageSelect.html b/layouts/partials/languageSelect.html deleted file mode 100644 index ce67210..0000000 --- a/layouts/partials/languageSelect.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ if .IsTranslated }} -<h4>{{ i18n "translations" }}</h4> -<ul> - {{ range .Translations }} - <li> - <a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a> - </li> - {{ end }} -</ul> -{{ end }} diff --git a/layouts/partials/postInfo.html b/layouts/partials/postInfo.html deleted file mode 100644 index f9052b0..0000000 --- a/layouts/partials/postInfo.html +++ /dev/null @@ -1,34 +0,0 @@ -{{ $dateFormat := "2006-01-02" }} -{{ if .Site.Params.dateFormat }} - {{ $dateFormat = .Site.Params.dateFormat }} -{{ end }} - -<div class="post-info"> - {{ if .Params.date }} - <div class="post-date dt-published">{{ .Params.date.Format $dateFormat }}</div> - {{ end }} - - <a class="post-hidden-url u-url" href="{{ .Permalink }}">{{ .Permalink }}</a> - <a href={{ .Site.BaseURL }} class="p-name p-author post-hidden-author h-card" rel="me">{{ .Params.author | default .Site.Params.author }}</a> - - - <div class="post-taxonomies"> - {{ if .Params.categories }} - categories: - <ul class="post-categories"> - {{ range .Params.categories }} - <li><a href="{{ "categories/" | urlize | absLangURL }}">{{ . }}</a></li> - {{ end }} - </ul> - {{ end }} - <br> - {{ if .Params.tags }} - tagged: - <ul class="post-tags"> - {{ range .Params.tags }} - <li><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">#{{ . }}</a></li> - {{ end }} - </ul> - {{ end }} - </div> -</div> diff --git a/themes/anibus b/themes/anibus new file mode 160000 +Subproject 38dab74feb8147cbdecfab6ec2109a9832e5a31 |