Merge pull request #45 from obar/content-in-list-pages

Include front matter in home and list pages if provided
This commit is contained in:
Vivek R 2020-05-24 06:49:43 +00:00 committed by GitHub
commit df6c61bbaa
3 changed files with 7 additions and 1 deletions

View File

@ -12,6 +12,8 @@
<h1 class="page-title">All articles</h1>
{{ end }}
{{ with .Content }}{{ . }}{{ end }}
<ul class="posts">
{{- range .Data.Pages -}}
{{- if (in (.Site.Params.excludedTypes | default (slice "page")) .Type) -}}

View File

@ -6,7 +6,9 @@
<div class="container wrapper tags">
{{ partial "head.html" . }}
<h1 class="page-title">All tags</h1>
<h1 class="page-title">{{ .Title }}</h1>
{{ with .Content }}{{ . }}{{ end }}
{{ $biggest := 1 }}
{{ $smallest := 1 }}

View File

@ -5,6 +5,8 @@
<div class="container wrapper">
{{ partial "head.html" . }}
{{ with .Content }}{{ . }}{{ end }}
<div class="recent-posts section">
<h2 class="section-header">
Recent posts