{{ "" | safeHTML }} {{ $currentNode := . }} {{range .Site.Home.Sections.ByWeight}} {{ if eq .FirstSection $currentNode.FirstSection }} {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}} {{ end }} {{ end }} {{ .Title }} {{ if .Content }} {{.Content}} {{ else }} {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode }} {{ end }} 更新于 {{ .Lastmod.Format "2006-01-02" }} {{ $currentNode := . }} {{ template "menu-nextprev" dict "menu" .Site.Home "currentnode" $currentNode }} {{ define "menu-nextprev" }} {{$currentNode := .currentnode }} {{ if ne .menu.Params.hidden true}} {{if hasPrefix $currentNode.Permalink .menu.Permalink }} {{ $currentNode.Scratch.Set "NextPageOK" "OK" }} {{ $currentNode.Scratch.Set "prevPage" ($currentNode.Scratch.Get "prevPageTmp") }} {{else}} {{if eq ($currentNode.Scratch.Get "NextPageOK") "OK"}} {{ $currentNode.Scratch.Set "NextPageOK" nil }} {{ $currentNode.Scratch.Set "nextPage" .menu }} {{end}} {{end}} {{ $currentNode.Scratch.Set "prevPageTmp" .menu }} {{ $currentNode.Scratch.Set "pages" .menu.Pages }} {{ if .menu.IsHome}} {{ $currentNode.Scratch.Set "pages" .menu.Sections }} {{ else if .menu.Sections}} {{ $currentNode.Scratch.Set "pages" (.menu.Pages | union .menu.Sections) }} {{end}} {{ $pages := ($currentNode.Scratch.Get "pages") }} {{ range $pages.ByWeight }} {{ template "menu-nextprev" dict "menu" . "currentnode" $currentNode }} {{end}} {{ end }} {{ end }} {{with ($.Scratch.Get "prevPage")}} {{.Title}} {{end}} {{with ($.Scratch.Get "nextPage")}} {{.Title}} {{end}} {{ "" | safeHTML }} {{ define "section-tree-nav" }} {{ $showvisitedlinks := .showvisitedlinks }} {{ $currentNode := .currentnode }} {{with .sect}} {{safeHTML .Params.head}} {{ $fileUniqueID := "" }} {{ with .File }}{{ $fileUniqueID = .UniqueID }}{{ end }} {{ $currentNodeFileUniqueID := "" }} {{ with $currentNode.File }}{{ $currentNodeFileUniqueID = .UniqueID }}{{ end }}
更新于 {{ .Lastmod.Format "2006-01-02" }}