Include front matter in home and list pages if provided
Contents in `_index.md` files will be used if the relevant files exist, per hugo documentation: https://gohugo.io/templates/lists/#add-content-and-front-matter-to-list-pages
This commit is contained in:
parent
d680e98905
commit
c9e27c471a
@ -12,6 +12,8 @@
|
|||||||
<h1 class="page-title">All articles</h1>
|
<h1 class="page-title">All articles</h1>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ with .Content }}{{ . }}{{ end }}
|
||||||
|
|
||||||
<ul class="posts">
|
<ul class="posts">
|
||||||
{{- range .Data.Pages -}}
|
{{- range .Data.Pages -}}
|
||||||
{{- if (in (.Site.Params.excludedTypes | default (slice "page")) .Type) -}}
|
{{- if (in (.Site.Params.excludedTypes | default (slice "page")) .Type) -}}
|
||||||
|
@ -6,7 +6,9 @@
|
|||||||
<div class="container wrapper tags">
|
<div class="container wrapper tags">
|
||||||
{{ partial "head.html" . }}
|
{{ partial "head.html" . }}
|
||||||
|
|
||||||
<h1 class="page-title">All tags</h1>
|
<h1 class="page-title">{{ .Title }}</h1>
|
||||||
|
|
||||||
|
{{ with .Content }}{{ . }}{{ end }}
|
||||||
|
|
||||||
{{ $biggest := 1 }}
|
{{ $biggest := 1 }}
|
||||||
{{ $smallest := 1 }}
|
{{ $smallest := 1 }}
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
<div class="container wrapper">
|
<div class="container wrapper">
|
||||||
{{ partial "head.html" . }}
|
{{ partial "head.html" . }}
|
||||||
|
|
||||||
|
{{ with .Content }}{{ . }}{{ end }}
|
||||||
|
|
||||||
<div class="recent-posts section">
|
<div class="recent-posts section">
|
||||||
<h2 class="section-header">
|
<h2 class="section-header">
|
||||||
Recent posts
|
Recent posts
|
||||||
|
Loading…
Reference in New Issue
Block a user