summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/css/components/_footer.scss3
-rw-r--r--hugo.yaml24
-rw-r--r--layouts/partials/footer.html18
3 files changed, 17 insertions, 28 deletions
diff --git a/assets/css/components/_footer.scss b/assets/css/components/_footer.scss
index b41c0a98..c79feddc 100644
--- a/assets/css/components/_footer.scss
+++ b/assets/css/components/_footer.scss
@@ -42,7 +42,8 @@
height: 1rem;
width: auto;
display: inline-block;
- border-radius: 100%
+ border-radius: 100%;
+ filter: grayscale(1)
}
}
}
diff --git a/hugo.yaml b/hugo.yaml
index 5b22a274..6f0c697d 100644
--- a/hugo.yaml
+++ b/hugo.yaml
@@ -92,21 +92,15 @@ params:
- https://unpkg.com/littlefoot/dist/littlefoot.js
- /pagefind/pagefind-ui.js
footerLinks:
- textLinks:
- - name: Home
- link: https://www.guhub.cn/
- - name: Ultralime
- link: https://www.ultrali.me
- iconLinks:
- - name: GitHub
- link: https://github.com/BigCoke233/geek-death-project
- icon: https://image.guhub.cn/uPic/2025/01/NqL5b5.png
- - name: BLOGS·CN
- link: https://blogscn.fun/
- icon: https://photo.xiangming.site/img/blogscn_icon.png
- - name: Travelling
- link: https://www.travellings.cn/go.html
- icon: https://www.travellings.cn/assets/favicon.png
+ - name: GitHub
+ link: https://github.com/BigCoke233/geek-death-project
+ icon: https://image.guhub.cn/uPic/2025/01/NqL5b5.png
+ - name: BLOGS·CN
+ link: https://blogscn.fun/
+ icon: https://photo.xiangming.site/img/blogscn_icon.png
+ - name: Travelling
+ link: https://www.travellings.cn/go.html
+ icon: https://www.travellings.cn/assets/favicon.png
services:
rss:
limit: 10
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">&copy; 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>