Commit 7387f94a authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Revert "Change .Data.Pages to .Site.RegularPages for new Hugo release compat"

This reverts commit 06a3fcba.
parent 3f77b309
......@@ -3,7 +3,7 @@
<h1>Posts categorised under “{{ .Page.Title }}”</h1>
{{- .Content -}}
</div>
{{ $section := .Site.RegularPages }}
{{ $section := .Data.Pages }}
<ul class="posts-list">
{{- range $section -}}
<li class="post}">
......
......@@ -5,7 +5,7 @@
</div>
</div>
<ul class='posts-list {{- if eq .Type "photo" }}photos-list {{ end -}}'>
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "posts") }}
{{ $paginator := .Paginate (where .Data.Pages "Type" "posts") }}
{{ range $paginator.Pages }}
<li class='post'>
<h2>
......
......@@ -3,7 +3,7 @@
<h1>Posts tagged with: “{{ .Page.Title }}”</h1>
{{- .Content -}}
</div>
{{ $section := .Site.RegularPages }}
{{ $section := .Data.Pages }}
<ul class="posts-list">
{{- range $section -}}
<li class="post}">
......
......@@ -36,7 +36,7 @@
{{ end }}
<section class="latest">
{{ range first 1 (where .Site.RegularPages "Section" "notes") }}
{{ range first 1 (where .Data.Pages "Section" "notes") }}
<h2>Latest Note</h2>
<div class="note">
<h3>
......@@ -49,7 +49,7 @@
{{ end }}
</section>
<section class="latest">
{{ range first 1 (where .Site.RegularPages "Section" "photos") }}
{{ range first 1 (where .Data.Pages "Section" "photos") }}
<h2>Latest Photo</h2>
<div class="photo">
{{ partial "summary-photo.html" . }}
......
......@@ -4,7 +4,7 @@
{{- .Content -}}
</div>
</div>
{{ $paginator := .Paginate (where .Site.RegularPages "Section" .Section) }}
{{ $paginator := .Paginate (where .Data.Pages "Section" .Section) }}
<ul class='posts-list notes-list'>
{{ range $paginator.Pages }}
<li class='post note-post'>
......
......@@ -4,7 +4,7 @@
{{- .Content -}}
</div>
</div>
{{ $paginator := .Paginate (where .Site.RegularPages "Section" .Section) }}
{{ $paginator := .Paginate (where .Data.Pages "Section" .Section) }}
<ul class='posts-list notes-list'>
{{ range $paginator.Pages }}
<li class='post note-post'>
......
......@@ -6,7 +6,7 @@
</div>
</article>
<ul class="latest-photos">
{{- $section := where .Site.RegularPages "Section" .Section -}}
{{- $section := where .Data.Pages "Section" .Section -}}
{{- range $section -}}
<li class="post photo-post">{{ partial "summary-photo.html" . }}</li>
{{ end }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment