Skip to content

Commit

Permalink
Merge pull request #45 from obar/content-in-list-pages
Browse files Browse the repository at this point in the history
Include front matter in home and list pages if provided
  • Loading branch information
vividvilla committed May 24, 2020
2 parents 22c4cf4 + adcfdb4 commit df6c61b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ <h1>Entries tagged - "{{ .Data.Term }}"</h1>
<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) -}}
Expand Down
4 changes: 3 additions & 1 deletion layouts/_default/terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df6c61b

Please sign in to comment.