diff options
Diffstat (limited to 'layouts/home.html')
| -rw-r--r-- | layouts/home.html | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/layouts/home.html b/layouts/home.html index 86c1fa1..7061dd0 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -1,29 +1,4 @@ {{ define "main" }} {{ .Content }} - {{ $mainSections := .Site.Params.mainSections | default (slice "posts" "post" "blog" "notes") }} - {{ $pages := where .Site.RegularPages "Section" "in" $mainSections }} - {{ if $pages }} - <h2>Recent Notes</h2> - {{ range $pages }} - <section> - <h3><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h3> - <p><small>{{ .Date.Format "2006-01-02" }}</small></p> - {{ .Summary }} - </section> - {{ end }} - {{ else }} - {{ $allPages := where .Site.AllPages "Kind" "page" }} - {{ if $allPages }} - <h2>All Pages</h2> - {{ range $allPages }} - <section> - <h3><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h3> - <p><small>{{ .Date.Format "2006-01-02" }} | {{ .Section }}</small></p> - {{ .Summary }} - </section> - {{ end }} - {{ end }} - {{ end }} - {{ partial "components/h-card" . }} {{ end }} |
