站点统计
| 页面总数 | {{ len .Site.RegularPages }} | 总字数 | {{- $words := 0 -}} {{- range .Site.RegularPages -}} {{- $words = add $words .WordCount -}} {{- end -}} {{ $words }} |
| 标签总数 | {{ len .Site.Taxonomies.tags }} | 专栏数量 | {{ len .Site.Taxonomies.categories }} |
| 卡片数量 | {{ len (where .Site.RegularPages "Section" "cards") }} | 小说数量 | {{ len (where .Site.RegularPages "Section" "fictions") }} |
| 书评数量 | {{ len (where .Site.RegularPages "Section" "library") }} | 精选文章数量 | {{ len (where .Site.RegularPages ".Params.featured" true) }} |
内部链接图谱
站内各个页面之间通过超链接建立起来的联系,你可以通过视觉化的双向链接逛逛我的博客。图谱可以缩放和拖拽,你也可以点击这里全屏浏览。
外部链接排行
我在页面中嵌入的外部链接主要来自以下域名,引用次数少于 3 的已被排除。
{{/* Find the maximum link count */}} {{ $max := 0 }} {{ range .Site.Data.externallinks }} {{ if gt (index . 1) $max }} {{ $max = index . 1 }} {{ end }} {{ end }}-
{{ range .Site.Data.externallinks }}
{{ $label := index . 0 }}
{{ $count := index . 1 }}
{{ if gt $count 2 }}
{{ $percent := div (mul $count 100) $max }}
-
{{ $label }} {{ $count }}
{{ end }}
{{ end }}