diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 9f5bc85e..19df5765 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -1,4 +1,4 @@ -{{- hugo.Store.Set "version" "v0.4.0-alpha-20250704082734-193fd193" -}} +{{- hugo.Store.Set "version" "v0.4.0-alpha-20250721024521-a1cd700b" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}} diff --git a/layouts/home.readme.md b/layouts/home.readme.md index 75956734..8f1cab4e 100644 --- a/layouts/home.readme.md +++ b/layouts/home.readme.md @@ -1,13 +1,15 @@ -# {{ .Site.Title }} +# [{{ .Site.Title }}]({{ .Site.Home.Permalink }} "{{ T "single.home" }}") > {{ .Site.Params.description }} {{ $pages := .Site.Store.Get "mainSectionPages" -}} {{- $pages = where $pages "Draft" "eq" false -}} +{{- $currentYear := now.Format "2006" -}} {{- T "section.archiveCounter" (len $pages) }} by [{{ .Site.Params.author.name }}]({{ .Site.Params.author.link }}). {{ range $pages.GroupByPublishDate "2006" }} {{- if ne .Key "0001" -}} - {{- printf "\n## %v\n\n
\n%v\n\n" .Key (T "section.archiveCounter" .Pages.Len) -}} + {{- $start := cond (eq .Key $currentYear) "
" "
" -}} + {{- printf "\n## %v\n\n%v\n%v\n\n" .Key $start (T "section.archiveCounter" .Pages.Len) -}} {{- range .Pages -}} {{- printf "- %v [%v](%v \"%v\")\n" (.PublishDate.Format "01-02") .Title .Permalink (.PublishDate.Format "2006-01-02 15:04:05") -}} {{- end -}}