diff options
Diffstat (limited to 'exampleSite/content/post/creating-a-new-theme.md')
-rw-r--r-- | exampleSite/content/post/creating-a-new-theme.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/exampleSite/content/post/creating-a-new-theme.md b/exampleSite/content/post/creating-a-new-theme.md index 59ee85a..4bcc85f 100644 --- a/exampleSite/content/post/creating-a-new-theme.md +++ b/exampleSite/content/post/creating-a-new-theme.md @@ -671,7 +671,7 @@ $ vi themes/zafta/layouts/index.html <!DOCTYPE html> <html> <body> - {{ range first 10 .Data.Pages }} + {{ range first 10 .Site.RegularPages }} <h1>{{ .Title }}</h1> {{ end }} </body> @@ -834,7 +834,7 @@ $ vi themes/zafta/layouts/index.html <!DOCTYPE html> <html> <body> - {{ range first 10 .Data.Pages }} + {{ range first 10 .Site.RegularPages }} <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1> {{ end }} </body> @@ -952,14 +952,14 @@ $ vi themes/zafta/layouts/index.html <html> <body> <h1>posts</h1> - {{ range first 10 .Data.Pages }} + {{ range first 10 .Site.RegularPages }} {{ if eq .Type "post"}} <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2> {{ end }} {{ end }} <h1>pages</h1> - {{ range .Data.Pages }} + {{ range .Site.RegularPages }} {{ if eq .Type "page" }} <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2> {{ end }} @@ -1039,14 +1039,14 @@ $ vi themes/zafta/layouts/index.html {{ partial "header.html" . }} <h1>posts</h1> - {{ range first 10 .Data.Pages }} + {{ range first 10 .Site.RegularPages }} {{ if eq .Type "post"}} <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2> {{ end }} {{ end }} <h1>pages</h1> - {{ range .Data.Pages }} + {{ range .Site.RegularPages }} {{ if or (eq .Type "page") (eq .Type "about") }} <h2><a href="{{ .Permalink }}">{{ .Type }} - {{ .Title }} - {{ .RelPermalink }}</a></h2> {{ end }} |