📝 Docs: update default outputs config

This commit is contained in:
Cell
2024-08-26 11:03:28 +08:00
parent 3ffef8acb0
commit 18643271f8
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ enableEmoji = true
# taxonomy = ["html"]
# term = ["html", "rss"]
[outputs]
home = ["html", "rss", "archives", "search"]
home = ["html", "rss", "archives", "offline", "search"]
page = ["html", "markdown"]
section = ["html", "rss"]
taxonomy = ["html"]
+2 -1
View File
@@ -32,7 +32,8 @@
{{- range .AlternativeOutputFormats -}}
{{- printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink $title | safeHTML -}}
{{- end -}}
{{- with .OutputFormats.Get "feed" -}}
{{- /* Compatible with https://github.com/hugo-fixit/hugo-json-feed */ -}}
{{- with .OutputFormats.Get "jsonfeed" -}}
<link rel="alternate" type="application/feed+json" href="{{ .Permalink }}" title="{{ $title }}" />
{{- end -}}
+1 -1
View File
@@ -1,4 +1,4 @@
{{- .Scratch.Set "version" "v0.3.10-08d4c12c" -}}
{{- .Scratch.Set "version" "v0.3.10-3ffef8ac" -}}
{{- .Scratch.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}