From b991eb810ac1d43f82b7d6d9638cf731be14e49e Mon Sep 17 00:00:00 2001 From: vimux Date: Sat, 28 Apr 2018 10:58:53 +0300 Subject: [PATCH] Generate Web App Manifest as custom output format --- README.md | 10 ++++++++++ static/manifest.json => layouts/index.manifest.json | 3 +++ 2 files changed, 13 insertions(+) rename static/manifest.json => layouts/index.manifest.json (74%) diff --git a/README.md b/README.md index ff56ef2..b7239fb 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,16 @@ opengraph = true # Enable OpenGraph if true twitter_cards = true # Enable Twitter Cards if true cardsPerRow = 2 # Possible values: 1, 2, 3 #dateFormat = "2006-01-02" # change the format of dates + +[outputFormats] + [outputFormats.MANIFEST] + mediaType = "application/json" + baseName = "manifest" + isPlainText = true + notAlternative = true + +[outputs] + home = ["HTML", "MANIFEST"] ``` ## Contributing diff --git a/static/manifest.json b/layouts/index.manifest.json similarity index 74% rename from static/manifest.json rename to layouts/index.manifest.json index 304f337..e5d06e3 100644 --- a/static/manifest.json +++ b/layouts/index.manifest.json @@ -1,4 +1,7 @@ { + "name": "{{ .Site.Title }}", + "short_name": "{{ .Site.Title }}", + "display": "browser", "background_color": "#2a2a2a", "theme_color": "#1b1b1b", "icons": [