blob: 60e73f0b938172a0b20800278b9ba0d818041888 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{{ define "main" }}
{{ partial "home/microformats" . }}
<article class="pagefind-exclude">
{{ partial "home/latest-posts" . }}
{{ if eq .Site.Language.Lang "zh" }}
<hr/>
{{ partial "home/selected-works" . }}
<hr />
<h3 class="font-mono text-secondary text-size-base font-normal">Monthly word count</h3>
{{ partial "stats/word-count-chart" . }}
<p>极客死亡计划一共发布了 {{ len .Site.RegularPages }} 篇页面,共计
<span>
{{- $words := 0 -}}
{{- range (where .Site.RegularPages "Section" "!=" "") -}}
{{- $words = add $words .WordCount -}}
{{- end -}}
{{ lang.FormatNumber 0 $words }}
</span>
字。</p>
{{ end }}
</article>
{{ end }}
|