Skip to content

Commit a50a2b0

Browse files
authored
docs: remove dateFormat warnings (#293)
#291 fixed the breakages present when the (removed) conditions were not met
1 parent 1a9a1ce commit a50a2b0

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ Will produce this footer:
366366
367367
`copyright` can include [Markdown syntax](https://www.markdownguide.org/tools/hugo/). This is best used for including hyperlinks, emoji, or text formatting.
368368

369-
The years of `.Date` and `.Lastmod` are used to create a date range for your copyrighted material. [dateFormat](/posts/theme-documentation-basics/#date-format) **must** be set in `config.toml` if `.Lastmod` is present in any front matter.
369+
The years of `.Date` and `.Lastmod` are used to create a date range for your copyrighted material.
370370

371371
## Minification
372372

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ See this sample `config.toml`, which uses Gokarna's default values, and [example
168168
customHeadHTML = ""
169169

170170
# Configure how post dates are displayed
171-
# dateFormat must be set if lastmod is declared in front matter, or
172-
# enableGitInfo is true
173171
dateFormat = "January 2, 2006"
174172

175173
# Home page meta description
@@ -244,8 +242,6 @@ Examples are available in the [advanced documentation](/posts/theme-documentatio
244242

245243
[Configure how posts date are displayed](https://gohugo.io/functions/time/format/), using [date strings](https://pkg.go.dev/time#pkg-constants).
246244

247-
dateFormat **must be set** if [`enableGitInfo`](https://gohugo.io/methods/page/gitinfo/#prerequisites) is `true`, or [`.Lastmod`](https://gohugo.io/methods/page/lastmod/) is present in any front matter.
248-
249245
```toml
250246
[params]
251247
dateFormat = "2 January, 2006"

0 commit comments

Comments
 (0)