From b3a510865f78c33e6cb70d64eaf60b65266508fe Mon Sep 17 00:00:00 2001 From: Eltrac Date: Fri, 23 May 2025 20:03:37 +0800 Subject: feat: better styled external link list Former-commit-id: 525eb0af18fe8721cf195bc46e3b1b68a81ed646 --- layouts/_default/stats.html | 72 ++++++++++++++++++++++++++------------------- 1 file changed, 42 insertions(+), 30 deletions(-) diff --git a/layouts/_default/stats.html b/layouts/_default/stats.html index 2d80ca05..efa9821e 100644 --- a/layouts/_default/stats.html +++ b/layouts/_default/stats.html @@ -20,6 +20,7 @@ margin-bottom: 0.2rem; display: flex; justify-content: space-between; + align-items: center; } .rank-item-link { display: inline-flex; @@ -30,6 +31,9 @@ width: 1rem; height: 1rem; } + .rank-item-count { + color: var(--secondary-text-color); + } .rank-item-bar { background-color: rgba(103,173,91,0.35); position: absolute; @@ -49,41 +53,49 @@ {{ .Content }} -

内部链接图谱

-
- -
+
+

内部链接图谱

+

站内各个页面之间通过超链接建立起来的联系,你可以通过视觉化的双向链接逛逛我的博客。图谱可以缩放和拖拽,你也可以点击这里全屏浏览。

+
+ +
+
+ +
-

外部链接排行

+
+

外部链接排行

+

我在页面中嵌入的外部链接主要来自以下域名,引用次数少于 3 的已被排除。

- {{/* Find the maximum link count */}} - {{ $max := 0 }} - {{ range .Site.Data.externallinks }} - {{ if gt (index . 1) $max }} - {{ $max = index . 1 }} + {{/* Find the maximum link count */}} + {{ $max := 0 }} + {{ range .Site.Data.externallinks }} + {{ if gt (index . 1) $max }} + {{ $max = index . 1 }} + {{ end }} {{ end }} - {{ end }} - +
{{ partial "footer.html" . }} {{ end }} -- cgit v1.2.3