Joshua Vaage
Twitter Github

Jekyll-manifest.json

For Jekyll sites. Output a manifest.json file from values set in the _config.yml file. Read Installable Web Apps for use case.

Github Repo
  $ git clone http://github.com/whaleen/Jekyll-manifest.json
  

config.yml

# Manifest settings
manifest_name: Web App Full Name
manifest_short_name: Short Name
manifest_lang: en
manifest_background_color: white
manifest_short_name:
manifest_display: standalone

manifest.json

Create manifest.json in the root directory containing liquid tags to pull values from the config.yml file:

---
permalink: manifest.json
---

{
  "lang": "{{ site.manifest_lang }}",
  "background_color": "#{{ site.manifest_background_color }}",
  "name": "{{ site.manifest_name }}",
  "short_name": "{{ site.manifest_short_name }}",
  "display": "{{ site.manifest_display}}",
  "icons": [
    {
      "src": "img/144X144-icon.png",
      "sizes": "144x144",
      "type": "image/png"
    }
  ]
}