Skip to content

Commit

Permalink
[v1.7] add manifest & icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Huxpro committed Oct 3, 2016
1 parent 2498dcf commit 209a8e7
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
10 changes: 8 additions & 2 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@
<meta name="description" content="{{ site.description }}">
<meta name="keywords" content="{{ site.keyword }}">
<meta name="theme-color" content="{{ site.chrome-tab-theme-color }}">
<link rel="shortcut icon" href="{{ site.baseurl }}/img/favicon.ico">


<title>{% if page.title %}{{ page.title }} - {{ site.SEOTitle }}{% else %}{{ site.SEOTitle }}{% endif %}</title>

<!-- Web App Manifest -->
<link rel="manifest" href="{{ site.baseurl }}/pwa/manifest.json">

<!-- Favicon -->
<link rel="shortcut icon" href="{{ site.baseurl }}/img/favicon.ico">

<!-- Canonical URL -->
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">

<!-- Bootstrap Core CSS -->
Expand Down
Binary file added pwa/icons/128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pwa/icons/512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions pwa/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Hux Blog",
"short_name": "Hux Blog",
"description": "About an engineer & designer who loves web.",
"icons": [{
"src": "icons/128.png",
"sizes": "128x128",
"type": "image/png"
}, {
"src": "icons/512.png",
"sizes": "512x512",
"type": "image/png"
}],
"background_color": "#fff",
"theme_color": "#000",
"start_url": "/",
"display": "standalone",
"orientation": "portrait"
}

0 comments on commit 209a8e7

Please sign in to comment.