From 28e5d6753e57dc7038662e7fca5c9fd1df9a7116 Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Mon, 16 Jan 2017 18:09:51 +0800 Subject: [PATCH] feat(amsf): basic Chrome Web App manifest support --- _app/_includes/themes/curtana/includes/top.html | 6 ++++++ _app/manifest.json | 16 ++++++++++++++++ _config.init.yml | 16 ++++++++++++++++ _config.yml | 16 ++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 _app/manifest.json diff --git a/_app/_includes/themes/curtana/includes/top.html b/_app/_includes/themes/curtana/includes/top.html index 3aebe3ab8..e48eb5c9d 100644 --- a/_app/_includes/themes/curtana/includes/top.html +++ b/_app/_includes/themes/curtana/includes/top.html @@ -11,12 +11,18 @@ + + + {{ amsf_favicons }} + + + diff --git a/_app/manifest.json b/_app/manifest.json new file mode 100644 index 000000000..46f100894 --- /dev/null +++ b/_app/manifest.json @@ -0,0 +1,16 @@ +--- +--- + +{ + "name": {{ site.name | jsonify }}, + "short_name": {{ site.name | jsonify }}, + "icons": [ + { + "src": {{ "/favicon.png" | prepend: site.base | jsonify }}, + "sizes": "192x192", + "type": "image/png" + } + ], + "start_url": {{ site.base | jsonify }}, + "display": "standalone" +} diff --git a/_config.init.yml b/_config.init.yml index b25a9d41c..a9bb7981e 100644 --- a/_config.init.yml +++ b/_config.init.yml @@ -81,6 +81,22 @@ dev: false # Default: Almace Scaffolding name: Almace Scaffolding +# Site short name +# +# Currently only used by Chrome Web App manifest, can be anything you like. +# You can also just use your `name` for `name_short` if it is short enough +# +# For example: +# - name: Almace Scaffolding +# - name_short: AMSF +# +# or: +# - name: Sparanoid Group +# - name_short: Sparanoid +# +# Default: AMSF +name_short: AMSF + # Site description # # Will be used in the document meta and Atom feed subtitle diff --git a/_config.yml b/_config.yml index 23e80ea22..2fffc8a36 100644 --- a/_config.yml +++ b/_config.yml @@ -81,6 +81,22 @@ dev: false # Default: Almace Scaffolding name: Almace Scaffolding +# Site short name +# +# Currently only used by Chrome Web App manifest, can be anything you like. +# You can also just use your `name` for `name_short` if it is short enough +# +# For example: +# - name: Almace Scaffolding +# - name_short: AMSF +# +# or: +# - name: Sparanoid Group +# - name_short: Sparanoid +# +# Default: AMSF +name_short: AMSF + # Site description # # Will be used in the document meta and Atom feed subtitle