diff options
| author | Eltrac <hi@guhub.cn> | 2025-05-23 19:48:12 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-05-23 19:48:12 +0800 |
| commit | 0d2166cc8da8d6c7940c2fe1d7a626d962b4ee37 (patch) | |
| tree | b672cdf6eb2cc4135977d3e1ff9091ae2777c417 /layouts/_default | |
| parent | e50c574d8d969a38eb1c3068b537fa220503adb7 (diff) | |
feat: change links to stats, add to postnav, and better style
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/stats.html (renamed from layouts/_default/links.html) | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/layouts/_default/links.html b/layouts/_default/stats.html index d25566ba..2d80ca05 100644 --- a/layouts/_default/links.html +++ b/layouts/_default/stats.html @@ -21,6 +21,15 @@ display: flex; justify-content: space-between; } + .rank-item-link { + display: inline-flex; + align-items: center; + gap: 0.5rem; + } + .rank-item-link img { + width: 1rem; + height: 1rem; + } .rank-item-bar { background-color: rgba(103,173,91,0.35); position: absolute; @@ -34,6 +43,7 @@ <article> {{ partial "header.html" . }} + {{ partial "components/postnav.html" . }} <div class="markdown-content" style="line-height: 2"> {{ .Content }} @@ -63,7 +73,10 @@ {{ $percent := div (mul $count 100) $max }} <li class="rank-item"> <div class="rank-item-text"> - <a href="https://{{ $label }}/" target="_blank">{{ $label }}</a> + <a class="rank-item-link" href="https://{{ $label }}/" target="_blank"> + <img src="https://favicone.com/{{ $label }}?s=50" /> + {{ $label }} + </a> <span>{{ $count }}</span> </div> <div class="rank-item-bar" style="width:{{ $percent }}%"></div> @@ -72,4 +85,5 @@ {{ end }} </ol> </article> + {{ partial "footer.html" . }} {{ end }} |
