Skip to content
Output a manifest.json file from _config.yml settings in a Jekyll project.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
.gitignore
README.md
_config.yml
manifest.json

README.md

jekyll-manifest.json

Output manifest.json to the _site directory of a Jekyll installation.

Add the following to the config.yml file:

manifest_name: Web App Full Name
manifest_short_name: Short Name # Appears in "Add to home screen" dialogues and may have other importance also
manifest_lang: en
manifest_background_color: white
manifest_short_name:
manifest_display: standalone

Create manifest.yml file 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"
    }
  ]
}

Resources:

You can’t perform that action at this time.