diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-10-09 16:33:16 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-10-09 16:33:16 +0700 |
commit | 11745452714f525fd7cebc429bd242022672c590 (patch) | |
tree | 8716dfb61368a6db3a1efa7fa7247c05d3b47a36 /layouts/partials | |
parent | d19d362bc82440ba8b9125b4c1eccee42b29a601 (diff) | |
download | blog-11745452714f525fd7cebc429bd242022672c590.tar.gz |
Remove redundant custom layout
Diffstat (limited to 'layouts/partials')
-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 |
5 files changed, 0 insertions, 90 deletions
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> |