Skip to content

Commit aab08f2

Browse files
authored
refactor(post): eval togglePreviousAndNextButtons as a bool (#315)
* refactor(post): eval togglePreviousAndNextButtons as a bool * docs(basics): update togglePreviousAndNextButtons
1 parent d0ddcf6 commit aab08f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

exampleSite/content/posts/theme-documentation-basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ See this sample `config.toml`, which uses Gokarna's default values, and [example
195195

196196
# Show the previous and next post in your timeline: "true", "false"
197197
# Incompatible with Weight
198-
togglePreviousAndNextButtons = "false"
198+
togglePreviousAndNextButtons = false
199199
```
200200

201201
### Accent color
@@ -325,7 +325,7 @@ If any post front matter contains `weight`, the posts will not appear by Date. S
325325

326326
```toml
327327
[params]
328-
togglePreviousAndNextButtons = "false"
328+
togglePreviousAndNextButtons = false
329329
```
330330

331331
### Reading time

layouts/partials/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h1>{{ .Title | markdownify }}</h1>
5656
</div>
5757

5858
<div class="prev-next">
59-
{{ if eq .Site.Params.TogglePreviousAndNextButtons "true" }}
59+
{{ if (eq .Site.Params.TogglePreviousAndNextButtons true) }}
6060
{{ if or .PrevInSection .NextInSection }}
6161
{{ partial "prev-next.html" . }}
6262
{{ end }}

0 commit comments

Comments
 (0)