diff --git a/gulpfile.js b/gulpfile.js index e39938d..782a77d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -72,6 +72,10 @@ gulp.task('build', ['lint:sass'], () => { .src('src/sass/*.sass') .pipe(sass({ outputStyle: 'compressed' })) .pipe(gulp.dest(output + '/css')) + + gulp + .src('src/favicons/**') + .pipe(gulp.dest(output)) }) gulp.task('watch', () => { diff --git a/src/favicons/android-chrome-192x192.png b/src/favicons/android-chrome-192x192.png new file mode 100644 index 0000000..7951832 Binary files /dev/null and b/src/favicons/android-chrome-192x192.png differ diff --git a/src/favicons/android-chrome-512x512.png b/src/favicons/android-chrome-512x512.png new file mode 100644 index 0000000..dad9f2b Binary files /dev/null and b/src/favicons/android-chrome-512x512.png differ diff --git a/src/favicons/apple-touch-icon.png b/src/favicons/apple-touch-icon.png new file mode 100644 index 0000000..d367242 Binary files /dev/null and b/src/favicons/apple-touch-icon.png differ diff --git a/src/favicons/browserconfig.xml b/src/favicons/browserconfig.xml new file mode 100644 index 0000000..70ccdb4 --- /dev/null +++ b/src/favicons/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #282a36 + + + diff --git a/src/favicons/favicon-16x16.png b/src/favicons/favicon-16x16.png new file mode 100644 index 0000000..729d998 Binary files /dev/null and b/src/favicons/favicon-16x16.png differ diff --git a/src/favicons/favicon-32x32.png b/src/favicons/favicon-32x32.png new file mode 100644 index 0000000..20a495d Binary files /dev/null and b/src/favicons/favicon-32x32.png differ diff --git a/src/favicons/favicon.ico b/src/favicons/favicon.ico new file mode 100644 index 0000000..56b3890 Binary files /dev/null and b/src/favicons/favicon.ico differ diff --git a/src/favicons/mstile-150x150.png b/src/favicons/mstile-150x150.png new file mode 100644 index 0000000..27974c6 Binary files /dev/null and b/src/favicons/mstile-150x150.png differ diff --git a/src/favicons/safari-pinned-tab.svg b/src/favicons/safari-pinned-tab.svg new file mode 100644 index 0000000..a1a5aaf --- /dev/null +++ b/src/favicons/safari-pinned-tab.svg @@ -0,0 +1,26 @@ + + + + +Created by potrace 1.11, written by Peter Selinger 2001-2013 + + + + + diff --git a/src/favicons/site.webmanifest b/src/favicons/site.webmanifest new file mode 100644 index 0000000..88be999 --- /dev/null +++ b/src/favicons/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "Tildes Issue Log", + "short_name": "Tildes Issue Log", + "icons": [ + { + "src": "/favicons/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/favicons/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#282a36", + "background_color": "#282a36", + "display": "standalone" +} diff --git a/src/index.pug b/src/index.pug index 0c4db93..61bd333 100644 --- a/src/index.pug +++ b/src/index.pug @@ -7,6 +7,17 @@ html(lang="en") link(rel="stylesheet", href="css/index.css") //- TODO: add Roboto Condensed in src/fonts and import from there link(rel="stylesheet", href="https://fonts.googleapis.com/css?family=Roboto+Condensed") + //- NOTE: favicons are under "src/favicons" but in "public/" for build + link(rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png") + link(rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png") + link(rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png") + link(rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png") + link(rel="manifest" href="site.webmanifest") + link(rel="mask-icon" href="safari-pinned-tab.svg" color="#282a36") + link(rel="shortcut icon" href="favicon.ico") + meta(name="msapplication-TileColor" content="#282a36") + meta(name="msapplication-config" content="browserconfig.xml") + meta(name="theme-color" content="#282a36") body div(id="wrapper") diff --git a/src/posts/june-2018.pug b/src/posts/june-2018.pug index 26728d2..2813a05 100644 --- a/src/posts/june-2018.pug +++ b/src/posts/june-2018.pug @@ -7,6 +7,17 @@ html(lang="en") link(rel="stylesheet", href="../css/post.css") //- TODO: add Roboto Condensed in src/fonts and import from there link(rel="stylesheet", href="https://fonts.googleapis.com/css?family=Roboto+Condensed") + //- NOTE: favicons are under "src/favicons" but in "public/" for build + link(rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png") + link(rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png") + link(rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png") + link(rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png") + link(rel="manifest" href="../site.webmanifest") + link(rel="mask-icon" href="../safari-pinned-tab.svg" color="#282a36") + link(rel="shortcut icon" href="../favicon.ico") + meta(name="msapplication-TileColor" content="#282a36") + meta(name="msapplication-config" content="../browserconfig.xml") + meta(name="theme-color" content="#282a36") body div(id="wrapper") diff --git a/src/posts/may-2018.pug b/src/posts/may-2018.pug index e75ea84..dd835f7 100644 --- a/src/posts/may-2018.pug +++ b/src/posts/may-2018.pug @@ -7,6 +7,17 @@ html(lang="en") link(rel="stylesheet", href="../css/post.css") //- TODO: add Roboto Condensed in src/fonts and import from there link(rel="stylesheet", href="https://fonts.googleapis.com/css?family=Roboto+Condensed") + //- NOTE: favicons are under "src/favicons" but in "public/" for build + link(rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png") + link(rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png") + link(rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png") + link(rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png") + link(rel="manifest" href="../site.webmanifest") + link(rel="mask-icon" href="../safari-pinned-tab.svg" color="#282a36") + link(rel="shortcut icon" href="../favicon.ico") + meta(name="msapplication-TileColor" content="#282a36") + meta(name="msapplication-config" content="../browserconfig.xml") + meta(name="theme-color" content="#282a36") body div(id="wrapper") diff --git a/src/posts/template.pug b/src/posts/template.pug index bfcbe8f..019f0be 100644 --- a/src/posts/template.pug +++ b/src/posts/template.pug @@ -7,6 +7,17 @@ html(lang="en") link(rel="stylesheet", href="../css/post.css") //- TODO: add Roboto Condensed in src/fonts and import from there link(rel="stylesheet", href="https://fonts.googleapis.com/css?family=Roboto+Condensed") + //- NOTE: favicons are under "src/favicons" but in "public/" for build + link(rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png") + link(rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png") + link(rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png") + link(rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png") + link(rel="manifest" href="../site.webmanifest") + link(rel="mask-icon" href="../safari-pinned-tab.svg" color="#282a36") + link(rel="shortcut icon" href="../favicon.ico") + meta(name="msapplication-TileColor" content="#282a36") + meta(name="msapplication-config" content="../browserconfig.xml") + meta(name="theme-color" content="#282a36") body div(id="wrapper")