Commit 8bb3c552 authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Update templates using .Data.Pages to use .Site.RegularPages

To work with newer versions of Hugo
parent 320cbd9f
......@@ -3,7 +3,7 @@
{{ .Content }}
{{ $section := where .Data.Pages "Section" .Section }}
{{ $section := where .Site.RegularPages "Section" .Section }}
<ul class='posts-list'>
{{- range $section -}}
<li>
......
......@@ -3,7 +3,7 @@
{{ .Content }}
{{ $section := where .Data.Pages "Section" .Section }}
{{ $section := where .Site.RegularPages "Section" .Section }}
<ul class='posts-list'>
{{ range $section }}
<li>
......
......@@ -3,7 +3,7 @@
{{ .Content }}
{{ $video := where .Data.Pages "Section" .Section }}
{{ $video := where .Site.RegularPages "Section" .Section }}
<ul class='videos-list'>
{{ range $video }}
<li class='{{ with .Title }} {{- anchorize . -}} {{ 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