You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/_common/render-hooks/pageinner.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ _comment: Do not remove front matter.
8
8
9
9
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:
Copy file name to clipboardExpand all lines: content/en/configuration/output-formats.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,7 @@ See [configure outputs] for more information.
135
135
Create a template to render the output format. Since Atom feeds are lists, you need to create a list template. Consult the [template lookup order] to find the correct template path:
136
136
137
137
```text
138
-
layouts/_default/list.atom.atom
138
+
layouts/list.atom.atom
139
139
```
140
140
141
141
We leave writing the template code as an exercise for you. Aim for a result similar to the [embedded RSS template].
@@ -154,7 +154,7 @@ To access output formats, each `Page` object provides two methods: [`OutputForma
154
154
155
155
By default, a `Page` object's [`Permalink`] and [`RelPermalink`] methods return the URL of the [primary output format](g), typically `html`. This behavior remains consistent regardless of the template used.
156
156
157
-
For example, in `single.json.json`, you'll see:
157
+
For example, in `page.json.json`, you'll see:
158
158
159
159
```go-html-template
160
160
{{ .RelPermalink }} → /that-page/
@@ -165,7 +165,7 @@ For example, in `single.json.json`, you'll see:
165
165
166
166
To make these methods return the URL of the _current_ template's output format, you must set the [`permalinkable`] setting to `true` for that format.
167
167
168
-
With `permalinkable` set to true for `json` in the same `single.json.json` template:
168
+
With `permalinkable` set to true for `json` in the same `page.json.json` template:
169
169
170
170
```go-html-template
171
171
{{ .RelPermalink }} → /that-page/index.json
@@ -188,9 +188,9 @@ For example, for section pages:
0 commit comments