diff options
| author | Eltrac <hi@guhub.cn> | 2025-02-06 11:07:32 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-02-06 11:07:32 +0800 |
| commit | e730436bc057c15548dae7a50bc4dda6d3805bdb (patch) | |
| tree | 55d57e8ee026d21a0fef27fc17567e815ceebffb /layouts | |
| parent | 69bc02460e2239e4420ed67d7fe3aadef8053637 (diff) | |
refactor: simplify site footer
- graysacle icon links
- remove external link navigation
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/partials/footer.html | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 012cbc9a..8f19be9f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,20 +2,10 @@ <section id="footer-copyright"> <p class="copyright">© 2022-{{ now | dateFormat "2006" }} <a href="https://www.guhub.cn/" target="_blank">Eltrac</a></p> <p class="license">Licensed by <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">CC BY-SA 4.0</a></p> - {{$scratch := newScratch}} - {{ range (where .Site.Pages "Kind" "page" )}} - {{$scratch.Add "total" .WordCount}} - {{ end }} - <p class="word-count">🪦 {{$scratch.Get "total" }} words are <span style="display:inline-block; transform:rotate(7deg) translateY(0.15rem); filter: blur(1px)">dead</span></p> </section> <section id="footer-links"> <ul class="footer-navigation"> - {{ range .Site.Params.footerLinks.textLinks }} - <li><a href="{{ .link }}">{{ .name }}</a></li> - {{ end }} - </ul> - <ul class="footer-navigation"> - {{ range .Site.Params.footerLinks.iconLinks }} + {{ range .Site.Params.footerLinks }} <li><a href="{{ .link }}" title="{{ .name }}" target="_blank"> <img src="{{ .icon }}" /> </a></li> @@ -29,7 +19,11 @@ {{ partial "snippets/rss-icon" . }} </a> </li> - </ul> + {{$scratch := newScratch}} + {{ range (where .Site.Pages "Kind" "page" )}} + {{$scratch.Add "total" .WordCount}} + {{ end }} + <p class="word-count">🪦 {{$scratch.Get "total" }} words in total</p> </section> </footer> |
