summaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorAlexandre Vicenzi <vicenzi.alexandre@gmail.com>2020-06-15 19:52:15 +0200
committerAlexandre Vicenzi <vicenzi.alexandre@gmail.com>2020-06-15 19:52:15 +0200
commit01322efeb2c8b0521d66de459cbe3b9d71e1259e (patch)
tree1ad7e7233a85bfbaa08f1ac0d4368f3321fe841a /layouts/index.html
parentac7ec7386b36d5798a843dd5262200ec9b58109b (diff)
Cleanup and Fixes
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html14
1 files changed, 4 insertions, 10 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 3de3e62..01b8253 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,10 +1,6 @@
{{ define "main" -}}
<div class="posts">
- {{- $regularPages := where .Site.RegularPages "Type" "in" .Site.Params.MainSections -}}
- {{- $pagesNotHidden := where $regularPages ".Params.hidden" "==" false -}}
- {{- $pagesHiddenUnset := where $regularPages ".Params.hidden" "==" nil -}}
-
- {{- $pages := $pagesNotHidden | union $pagesHiddenUnset -}}
+ {{- $pages := where .Site.RegularPages "Type" "in" .Site.Params.MainSections -}}
{{- $paginator := .Paginate $pages -}}
{{ range $paginator.Pages }}
@@ -14,14 +10,12 @@
</h1>
<div class="post-date">
- <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> ยท {{ .ReadingTime }} min read
+ <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time> &middot; {{ .ReadingTime }} min read
</div>
- {{ if .Description }}
- {{ .Description }}
- {{ else }}
+ <div>
{{ .Summary }}
- {{ end }}
+ </div>
{{ if .Truncated }}
<div class="read-more-link">