summaryrefslogtreecommitdiffstats
path: root/exampleSite
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-19 01:44:38 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-19 01:44:38 +0200
commitd9611790b73a4b4623c2516e3dbf5e3523761f53 (patch)
tree2546abe710e3117e3e307358832932334cd674c8 /exampleSite
parentbd4bb369895e07ca6b4eed1439e8ca7a93ba4802 (diff)
downloadgohugo-theme-ed-d9611790b73a4b4623c2516e3dbf5e3523761f53.tar.gz
Add webmanifest
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config.toml19
1 files changed, 18 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 4fcc7f1..ae9d232 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -17,7 +17,7 @@ disableKinds = ['RSS']
[outputs]
# TODO:
# section = [ "HTML", "Atom" ]
- home = [ 'HTML', 'Atom', 'FEED', 'JSON', 'humanstxt' ]
+ home = [ 'HTML', 'Atom', 'FEED', 'JSON', 'MANIFEST', 'humanstxt' ]
# Atom feed.
# For more see: https://validator.w3.org/feed/docs/atom.html#whatIsAtom
@@ -60,6 +60,21 @@ disableKinds = ['RSS']
isHTML = false
noUgly = false
+# The .webmanifest extension is specified in the Media type registration
+# section of the specification (the response of the manifest file should
+# return Content-Type: application/manifest+json).
+#
+# For more see: https://w3c.github.io/manifest/#media-type-registration=
+[outputFormats.MANIFEST]
+ name = 'Manifest'
+ mediaType = 'application/manifest+json'
+ baseName = 'manifest'
+ rel = 'manifest'
+ isPlainText = true
+ isHTML = false
+ noUgly = false
+ notAlternative = true
+
# For more see: https://gohugo.io/templates/output-formats/
[outputFormats.humanstxt]
mediaType = 'text/plain'
@@ -75,6 +90,8 @@ disableKinds = ['RSS']
suffixes = ['xml']
[mediaTypes.'application/feed+json']
suffixes = ['json']
+ [mediaTypes.'application/manifest+json']
+ suffixes = ['webmanifest']
[author]
name = 'John Doe'