From 18643271f8c70f9e2ac1492a7eabf74f0309e28b Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Mon, 26 Aug 2024 11:03:28 +0800 Subject: [PATCH] :memo: Docs: update default outputs config --- hugo.toml | 2 +- layouts/partials/head/link.html | 3 ++- layouts/partials/init/index.html | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hugo.toml b/hugo.toml index 619eb046..b1614403 100644 --- a/hugo.toml +++ b/hugo.toml @@ -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"] diff --git a/layouts/partials/head/link.html b/layouts/partials/head/link.html index 45eb2a9b..cf8d66cf 100644 --- a/layouts/partials/head/link.html +++ b/layouts/partials/head/link.html @@ -32,7 +32,8 @@ {{- range .AlternativeOutputFormats -}} {{- printf `` .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" -}} {{- end -}} diff --git a/layouts/partials/init/index.html b/layouts/partials/init/index.html index 86700be6..8a91ee31 100644 --- a/layouts/partials/init/index.html +++ b/layouts/partials/init/index.html @@ -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" . -}}