diff options
| author | Eltrac <hi@guhub.cn> | 2025-01-08 13:32:34 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-01-08 13:32:34 +0800 |
| commit | 049c33e8f246b213254e827f660e2e74a0fe3cc2 (patch) | |
| tree | 42b7935561fecfb5ceea001ce39b43970ceed5d7 | |
| parent | df69c0d0c973af850161e9e506ce1c3a8ffe1514 (diff) | |
feat(theme): add travelling/blogscn link
| -rw-r--r-- | assets/css/index.css | 22 | ||||
| -rw-r--r-- | layouts/partials/footer.html | 20 |
2 files changed, 32 insertions, 10 deletions
diff --git a/assets/css/index.css b/assets/css/index.css index 42ec9d6b..5ba6d04a 100644 --- a/assets/css/index.css +++ b/assets/css/index.css @@ -794,17 +794,31 @@ html.is-animating .transition-fade { } } -#footer-links ul.navigation { +#footer-links { + display: flex; + flex-direction: column; + align-items: flex-end; +} + +#footer-links ul.footer-navigation { list-style: none; display: flex; gap: 0.2rem; + justify-content: flex-end; + padding-inline-start: 0; +} + +#footer-links ul.footer-navigation li { + display: inline-flex; + align-items: center; } -#footer-links ul.navigation li:not(:last-child)::after { - content: "|" +#footer-links ul.footer-navigation li img { + height: 1rem; + width: auto } -#footer-links .word-count { +#footer-copyright .word-count { font-family: var(--serif-font-family); font-size: .9rem; color: var(--secondary-text-color) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 04cd4084..e57dba35 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,18 +2,26 @@ <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> - </section> - <section id="footer-links"> - <ul class="navigation"> - <li><a href="https://www.guhub.cn/">Home</a></li> - <li><a href="https://www.ultrali.me">Ultralime</a></li> - </ul> {{$scratch := newScratch}} {{ range (where .Site.Pages "Kind" "page" )}} {{$scratch.Add "total" .WordCount}} {{ end }} <p class="word-count">🪦 {{$scratch.Get "total" }} å—在这里<span style="display:inline-block; transform:rotate(7deg) translateY(0.15rem); filter: blur(1px)">æ»åŽ»</span></p> </section> + <section id="footer-links"> + <ul class="footer-navigation"> + <li><a href="https://www.guhub.cn/">Home</a></li> + <li><a href="https://www.ultrali.me">Ultralime</a></li> + </ul> + <ul class="footer-navigation"> + <li><a href="https://www.travellings.cn/go.html" target="_blank"> + <img src="https://www.travellings.cn/assets/favicon.png"> + </a></li> + <li><a href="https://blogscn.fun/" title="BLOGS·CN" target="_blank"> + <img src="https://photo.xiangming.site/img/blogscn_icon.png"> + </a></li> + </ul> + </section> </footer> <!-- <div class="site-footer"> --> |
