mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-09 17:42:19 +00:00
archive: add comments to more easily identify logic branches
This commit is contained in:
parent
1c636f161d
commit
f1eb781a58
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
{{- if eq .Kind "taxonomy" }}
|
{{- if eq .Kind "taxonomy" }}
|
||||||
{{- if eq .Title "Tags" }}
|
{{- if eq .Title "Tags" }}
|
||||||
|
{{/* list of all tags */}}
|
||||||
<div class="tagsArchive">
|
<div class="tagsArchive">
|
||||||
{{- range $key, $value := .Site.Taxonomies }}
|
{{- range $key, $value := .Site.Taxonomies }}
|
||||||
{{- $slicedTags := ($value.ByCount) }}
|
{{- $slicedTags := ($value.ByCount) }}
|
||||||
|
@ -30,6 +31,7 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
{{/* list of all categories */}}
|
||||||
{{- range .Pages.ByDate.Reverse }}
|
{{- range .Pages.ByDate.Reverse }}
|
||||||
{{- $postDate := .Date.Format "2006-01-02" }}
|
{{- $postDate := .Date.Format "2006-01-02" }}
|
||||||
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
|
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
|
||||||
|
@ -49,6 +51,7 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- if eq .Title "/slashes" }}
|
{{- if eq .Title "/slashes" }}
|
||||||
|
{{/* slash page archive */}}
|
||||||
{{- $sortedSlashes := sort $pages "Title" }}
|
{{- $sortedSlashes := sort $pages "Title" }}
|
||||||
{{- range $sortedSlashes }}
|
{{- range $sortedSlashes }}
|
||||||
{{- $postDate := .Date.Format "2006-01-02" }}
|
{{- $postDate := .Date.Format "2006-01-02" }}
|
||||||
|
@ -67,6 +70,7 @@
|
||||||
</article>
|
</article>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
{{/* regular posts archive */}}
|
||||||
{{- range (.Paginate $pages).Pages }}
|
{{- range (.Paginate $pages).Pages }}
|
||||||
{{- $postDate := .Date.Format "2006-01-02" }}
|
{{- $postDate := .Date.Format "2006-01-02" }}
|
||||||
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
|
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
|
||||||
|
|
Loading…
Reference in a new issue