summaryrefslogtreecommitdiffstats
path: root/docs/content/en/_common
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/_common')
-rw-r--r--docs/content/en/_common/methods/page/next-and-prev.md4
-rw-r--r--docs/content/en/_common/methods/page/nextinsection-and-previnsection.md4
-rw-r--r--docs/content/en/_common/methods/pages/next-and-prev.md6
-rw-r--r--docs/content/en/_common/methods/taxonomy/get-a-taxonomy-object.md2
-rw-r--r--docs/content/en/_common/render-hooks/pageinner.md2
5 files changed, 9 insertions, 9 deletions
diff --git a/docs/content/en/_common/methods/page/next-and-prev.md b/docs/content/en/_common/methods/page/next-and-prev.md
index f859961a4..27b069ddc 100644
--- a/docs/content/en/_common/methods/page/next-and-prev.md
+++ b/docs/content/en/_common/methods/page/next-and-prev.md
@@ -32,13 +32,13 @@ content/
And these templates:
-```go-html-template {file="layouts/_default/list.html"}
+```go-html-template {file="layouts/section.html"}
{{ range .Pages.ByWeight }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ end }}
```
-```go-html-template {file="layouts/_default/single.html"}
+```go-html-template {file="layouts/page.html"}
{{ with .Prev }}
<a href="{{ .RelPermalink }}">Previous</a>
{{ end }}
diff --git a/docs/content/en/_common/methods/page/nextinsection-and-previnsection.md b/docs/content/en/_common/methods/page/nextinsection-and-previnsection.md
index 54d240eb4..005953324 100644
--- a/docs/content/en/_common/methods/page/nextinsection-and-previnsection.md
+++ b/docs/content/en/_common/methods/page/nextinsection-and-previnsection.md
@@ -32,13 +32,13 @@ content/
And these templates:
-```go-html-template {file="layouts/_default/list.html"}
+```go-html-template {file="layouts/section.html"}
{{ range .Pages.ByWeight }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ end }}
```
-```go-html-template {file="layouts/_default/single.html"}
+```go-html-template {file="layouts/page.html"}
{{ with .PrevInSection }}
<a href="{{ .RelPermalink }}">Previous</a>
{{ end }}
diff --git a/docs/content/en/_common/methods/pages/next-and-prev.md b/docs/content/en/_common/methods/pages/next-and-prev.md
index 462545c3f..5a92a7cb1 100644
--- a/docs/content/en/_common/methods/pages/next-and-prev.md
+++ b/docs/content/en/_common/methods/pages/next-and-prev.md
@@ -32,13 +32,13 @@ content/
And these templates:
-```go-html-template {file="layouts/_default/list.html"}
+```go-html-template {file="layouts/section.html"}
{{ range .Pages.ByWeight }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ end }}
```
-```go-html-template {file="layouts/_default/single.html"}
+```go-html-template {file="layouts/page.html"}
{{ $pages := .CurrentSection.Pages.ByWeight }}
{{ with $pages.Prev . }}
@@ -57,7 +57,7 @@ When you visit page-2:
To reverse the meaning of _next_ and _previous_ you can chain the [`Reverse`] method to the page collection definition:
-```go-html-template {file="layouts/_default/single.html"}
+```go-html-template {file="layouts/page.html"}
{{ $pages := .CurrentSection.Pages.ByWeight.Reverse }}
{{ with $pages.Prev . }}
diff --git a/docs/content/en/_common/methods/taxonomy/get-a-taxonomy-object.md b/docs/content/en/_common/methods/taxonomy/get-a-taxonomy-object.md
index 6fb729c17..a6c46b8b7 100644
--- a/docs/content/en/_common/methods/taxonomy/get-a-taxonomy-object.md
+++ b/docs/content/en/_common/methods/taxonomy/get-a-taxonomy-object.md
@@ -34,7 +34,7 @@ To capture the "genres" `Taxonomy` object from within any template, use the [`Ta
To capture the "genres" `Taxonomy` object when rendering its page with a taxonomy template, use the [`Terms`] method on the page's [`Data`] object:
-```go-html-template {file="layouts/_default/taxonomy.html"}
+```go-html-template {file="layouts/taxonomy.html"}
{{ $taxonomyObject := .Data.Terms }}
```
diff --git a/docs/content/en/_common/render-hooks/pageinner.md b/docs/content/en/_common/render-hooks/pageinner.md
index a598b880a..e5c0afb79 100644
--- a/docs/content/en/_common/render-hooks/pageinner.md
+++ b/docs/content/en/_common/render-hooks/pageinner.md
@@ -8,7 +8,7 @@ _comment: Do not remove front matter.
The primary use case for `PageInner` is to resolve links and [page resources](g) relative to an included `Page`. For example, create an "include" shortcode to compose a page from multiple content files, while preserving a global context for footnotes and the table of contents:
-```go-html-template {file="layouts/shortcodes/include.html" copy=true}
+```go-html-template {file="layouts/_shortcodes/include.html" copy=true}
{{ with .Get 0 }}
{{ with $.Page.GetPage . }}
{{- .RenderShortcodes }}