diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index 75e133f4791632ca084fda0b433c99510fc1221a..cfa243db2272540ab55df978d0b6382371b0a030 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -23,6 +23,8 @@ tag = "tags" suffixes = ["js", "mjs"] [mediaTypes."application/activity+json"] suffixes = ["ajson"] +[mediaTypes."application/json"] +suffixes = ["json"] [outputFormats] [outputFormats.ACTIVITY] @@ -33,9 +35,13 @@ baseName = "activity" mediaType = "application/activity+json" notAlternative = true baseName = "outbox" +[outputFormats.MANIFEST] +mediaType = "application/json" +notAlternative = true +baseName = "manifest" [outputs] -home = ["HTML", "RSS", "ACTIVITY", "ACTIVITY_OUTBOX"] +home = ["HTML", "RSS", "ACTIVITY", "ACTIVITY_OUTBOX", "MANIFEST"] section = ["HTML", "RSS"] page = ["HTML"] diff --git a/static/manifest.json b/layouts/index.manifest.json similarity index 58% rename from static/manifest.json rename to layouts/index.manifest.json index 45735a011c78e5e83319e5e7670aae11cb8a4724..94facd592f673702d3056e28de550cf9f21c43c1 100644 --- a/static/manifest.json +++ b/layouts/index.manifest.json @@ -1,7 +1,7 @@ { - "name": "FLEAR - Free & Libre Engineers for Amateur Radio", - "short_name": "FLEAR", - "description": "The website of FLEAR, Free & Libre Engineers for Amateur Radio.", + "name": `{{ .Site.Params.siteName }} - {{ .Site.Params.siteTagLine }}`, + "short_name": {{ .Site.Params.siteName }}, + "description": {{ .Site.Params.siteDescription }}, "start_url": "/?homescreen=1", "theme_color": "#000000", "background_color": "#000000",