Skip to content

Commit

Permalink
feat(amsf): basic Chrome Web App manifest support
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Jan 16, 2017
1 parent f8ec113 commit 28e5d67
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _app/_includes/themes/curtana/includes/top.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@
<!-- Define a description for better SEO result -->
<meta name="description" content="{{ amsf_site_desc | strip }}">

<!-- Cheome Web App theme color -->
<meta name="theme-color" content="{{ amsf_theme_color | strip }}">

<!-- Feed URL -->
<link rel="alternate" href="{{ amsf_feed_url }}" type="application/atom+xml">

<!-- Site icons -->
{{ amsf_favicons }}

<!-- Chrome Web App manifest -->
<link rel="manifest" href="{{ '/manifest.json' | prepend: site.base }}">

<!-- Main CSS -->
<link rel="stylesheet" href="{{ '/css/app.css?assets-inline' | prepend: amsf_theme_assets }}">

Expand Down
16 changes: 16 additions & 0 deletions _app/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
16 changes: 16 additions & 0 deletions _config.init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28e5d67

Please sign in to comment.