- {{ end }}
- {{ range .Pages }}
- {{ partial "article-link/simple.html" . }}
- {{ end }}
- {{ end }}
- {{ else }}
- {{ range (.Paginate (.Pages.ByWeight)).Pages }}
- {{ partial "article-link/simple.html" . }}
- {{ end }}
- {{ end }}
-
-
- {{ else }}
-
- {{ if $groupByYear }}
-
- {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
- {{ if $cardViewScreenWidth }}
-
- {{ end }}
-
- {{ .Key }}
-
-
- {{ range .Pages }}
- {{ partial "article-link/card.html" . }}
- {{ end }}
-
- {{ if $cardViewScreenWidth }}
{{ end }}
- {{ end }}
-
- {{ else }}
-
- {{ if $cardViewScreenWidth }}
-
-
- {{ else }}
-
- {{ end }}
+
{{ if not $orderByWeight }}
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
- {{ range .Pages }}
- {{ partial "article-link/card.html" . }}
- {{ end }}
+ {{ if $groupByYear }}
+
+ {{ .Key }}
+
+ {{ end }}
+ {{ range .Pages }}
+ {{ partial "article-link/simple.html" . }}
+ {{ end }}
{{ end }}
{{ else }}
{{ range (.Paginate (.Pages.ByWeight)).Pages }}
- {{ partial "article-link/card.html" . }}
+ {{ partial "article-link/simple.html" . }}
+ {{ end }}
+ {{ end }}
+
+ {{/* else: is cardView */}}
+ {{ else }}
+ {{ if $groupByYear }}
+ {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
+ {{ if $cardViewScreenWidth }}
+
+
+ {{ .Key }}
+
+
+ {{ range .Pages }}
+ {{ partial "article-link/card.html" . }}
+ {{ end }}
+
+
+ {{ else }}
+
+ {{ .Key }}
+
+
+ {{ range .Pages }}
+ {{ partial "article-link/card.html" . }}
+ {{ end }}
+
{{ end }}
{{ end }}
-
- {{ if $cardViewScreenWidth }}
{{ end }}
-
- {{ end }}
-
- {{end}}
+ {{/* else: not groupByYear */}}
+ {{ else }}
+ {{ if $cardViewScreenWidth }}
+
+
+ {{ if not $orderByWeight }}
+ {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
+ {{ range .Pages }}
+ {{ partial "article-link/card.html" . }}
+ {{ end }}
+ {{ end }}
+ {{ else }}
+ {{ range (.Paginate (.Pages.ByWeight)).Pages }}
+ {{ partial "article-link/card.html" . }}
+ {{ end }}
+ {{ end }}
+
+
+ {{ else }}
+
+ {{ if not $orderByWeight }}
+ {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
+ {{ range .Pages }}
+ {{ partial "article-link/card.html" . }}
+ {{ end }}
+ {{ end }}
+ {{ else }}
+ {{ range (.Paginate (.Pages.ByWeight)).Pages }}
+ {{ partial "article-link/card.html" . }}
+ {{ end }}
+ {{ end }}
+
+ {{ end }}{{/* End of cardViewScreenWidth */}}
+ {{ end }}{{/* End of groupByYear */}}
+ {{ end }}{{/* End of cardView */}}
+ {{/* else: .Pages not greater to zero */}}
{{ else }}
-
-
+ {{/* Body */}}
- {{ if or (and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in
- .TableOfContents "
-
- {{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in
- .TableOfContents "
+ {{ if $showToc }}
{{ partial "toc.html" . }}
{{ end }}
- {{ if .Site.Params.article.showRelatedPosts |
- default false
- }}
+ {{ if $showRelated }}
sd
{{ end }}