Added icons and meta

This commit is contained in:
Marcus Noble 2016-10-17 19:53:00 +01:00
parent 84df030f6b
commit eef23e6164
31 changed files with 69 additions and 4 deletions

4
app.js
View File

@ -18,6 +18,7 @@ const date = require('metalsmith-build-date');
const Handlebars = require('handlebars'); const Handlebars = require('handlebars');
const emoji = require('markdown-it-emoji'); const emoji = require('markdown-it-emoji');
const moment = require('moment'); const moment = require('moment');
const striptags = require('striptags');
const port = process.env.PORT || 8000; const port = process.env.PORT || 8000;
const oneDay = 86400000; const oneDay = 86400000;
@ -35,6 +36,9 @@ Handlebars.registerHelper('markdown', function(text) {
Handlebars.registerHelper('moment', function(date, format) { Handlebars.registerHelper('moment', function(date, format) {
return new moment(date).format(format); return new moment(date).format(format);
}); });
Handlebars.registerHelper("striptags", function(text){
return striptags(text);
});
Metalsmith(__dirname) Metalsmith(__dirname)

View File

@ -20,7 +20,8 @@
"metalsmith-pagination": "^1.4.0", "metalsmith-pagination": "^1.4.0",
"metalsmith-permalinks": "^0.5.0", "metalsmith-permalinks": "^0.5.0",
"metalsmith-sass": "^1.3.0", "metalsmith-sass": "^1.3.0",
"moment": "^2.13.0" "moment": "^2.13.0",
"striptags": "^2.1.1"
}, },
"engines": { "engines": {
"node": "6.0.0" "node": "6.0.0"

2
src/browserconfig.xml Normal file
View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig><msapplication><tile><square70x70logo src="/images/favico/ms-icon-70x70.png"/><square150x150logo src="/images/favico/ms-icon-150x150.png"/><square310x310logo src="/images/favico/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>

BIN
src/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

41
src/manifest.json Normal file
View File

@ -0,0 +1,41 @@
{
"name": "Marcus Noble - Blog",
"icons": [
{
"src": "\/images\/favico\/android-icon-36x36.png",
"sizes": "36x36",
"type": "image\/png",
"density": "0.75"
},
{
"src": "\/images\/favico\/android-icon-48x48.png",
"sizes": "48x48",
"type": "image\/png",
"density": "1.0"
},
{
"src": "\/images\/favico\/android-icon-72x72.png",
"sizes": "72x72",
"type": "image\/png",
"density": "1.5"
},
{
"src": "\/images\/favico\/android-icon-96x96.png",
"sizes": "96x96",
"type": "image\/png",
"density": "2.0"
},
{
"src": "\/images\/favico\/android-icon-144x144.png",
"sizes": "144x144",
"type": "image\/png",
"density": "3.0"
},
{
"src": "\/images\/favico\/android-icon-192x192.png",
"sizes": "192x192",
"type": "image\/png",
"density": "4.0"
}
]
}

View File

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
{{>head }} {{>head title=site.title summary=site.description}}
<body> <body>
{{> header }} {{> header }}

View File

@ -7,12 +7,29 @@
<meta property="og:url" content="{{ site.url}}/{{ path }}"/> <meta property="og:url" content="{{ site.url}}/{{ path }}"/>
<meta property="og:title" content="{{ title }}"/> <meta property="og:title" content="{{ title }}"/>
<meta property="og:description" content="{{ markdown summary }}"/> <meta property="og:description" content="{{ striptags (markdown summary) }}"/>
<meta property="og:site_name" content="{{ site.title }}"/> <meta property="og:site_name" content="{{ site.title }}"/>
<link rel="apple-touch-icon" sizes="57x57" href="/images/favico/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/images/favico/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/images/favico/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/images/favico/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/images/favico/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/images/favico/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/images/favico/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/images/favico/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/images/favico/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/images/favico/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favico/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/images/favico/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favico/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/images/favico/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/milligram/1.1.0/milligram.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/milligram/1.1.0/milligram.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/styles/zenburn.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/styles/zenburn.min.css">
<link rel="stylesheet" href="/css/main.css?{{moment date 'YYYYMMDDHHMM'}}"> <link rel="stylesheet" href="/css/main.css?{{moment date 'YYYYMMDDHHMM'}}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ site.url }}/feed.xml"> <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ site.url }}/feed.xml">
<link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" rel="icon" type="image/x-icon" />
</head> </head>