Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed gulp-favicons implementation #1

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
www/lib
www/media/icons
.tmp
15 changes: 11 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
var gulp = require('gulp');
var favicons = require('gulp-favicons');
var del = require('del');

gulp.task('default', ['favicons']);
gulp.task('copy', function () {
return gulp.src('www/index.html')
.pipe(gulp.dest('.tmp/'));
})

gulp.task('favicons', function() {
gulp.src('www/index.html')
gulp.task('favicons', ['copy'], function() {
return gulp.src('.tmp/index.html')
.pipe(favicons({
files: {
src: 'www/media/img/noise.png',
dest: 'media/icons/'
}
}))
.pipe(gulp.dest('./'));
});

gulp.task('default', ['favicons'], function () {
del('.tmp');
});
87 changes: 87 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<!doctype html>
<html>
<head>
<title>John Karahalis</title>
<meta charset="utf-8">
<meta name="description" content="Personal website of John Karahalis, software developer, project manager and user experience enthusiast from Mozilla.">
<link rel="stylesheet" type="text/css" href="media/css/main.css">
<link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link rel="apple-touch-icon" sizes="57x57" href="media/icons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="media/icons/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="media/icons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="media/icons/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="media/icons/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="media/icons/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="media/icons/apple-touch-icon-144x144.png">
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 1)" href="media/icons/apple-touch-startup-image-1024x748.png">
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)" href="media/icons/apple-touch-startup-image-1536x2008.png">
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2)" href="media/icons/apple-touch-startup-image-2048x1496.png">
<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 1)" href="media/icons/apple-touch-startup-image-320x460.png">
<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)" href="media/icons/apple-touch-startup-image-640x1096.png">
<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2)" href="media/icons/apple-touch-startup-image-640x920.png">
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 1)" href="media/icons/apple-touch-startup-image-768x1004.png">
<link rel="icon" type="image/png" href="media/icons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="media/icons/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="media/icons/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="media/icons/android-chrome-manifest.json">
<link rel="shortcut icon" href="media/icons/favicon.ico">
<link rel="yandex-tableau-widget" href="media/icons/yandex-browser-manifest.json">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="media/icons/mstile-144x144.png">
<meta name="msapplication-config" content="media/icons/browserconfig.xml"></head>
<body>
<div id="wrap">
<div id="introduction">
<h1>John Karahalis</h1>
<p>
I am a software developer, a project manager and a user experience
enthusiast. I work at <a href="https://www.mozilla.org">Mozilla</a>.
</p>
</div>
<div id="sites">
<ul>
<li id="blog">
<a href="http://blog.openjck.com">
<h2>Blog</h2>
</a>
</li>
<li id="github">
<a href="https://github.com/openjck">
<h2>GitHub</h2>
</a>
</li>
<li id="twitter">
<a href="https://twitter.com/openjck">
<h2>Twitter</h2>
</a>
</li>
<li id="linkedin">
<a href="http://www.linkedin.com/in/johnkarahalis/">
<h2>LinkedIn</h2>
</a>
</li>
<li id="email">
<a href="mailto:john.karahalis@gmail.com">
<h2>Email</h2>
</a>
</li>
</ul>
</div>
</div>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://stats.openjck.com/";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
_paq.push(["setSiteId", "1"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->
</body>
</html>
27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "openjck.com",
"version": "1.0.0",
"description": "Personal website of John Karahalis, software developer, project manager and user experience enthusiast from Mozilla.",
"main": "gulpfile.js",
"directories": {
"doc": "doc"
},
"scripts": {
"test": "gulp"
},
"repository": {
"type": "git",
"url": "https://github.com/openjck/openjck.com.git"
},
"author": "John Karahalis",
"license": "ISC",
"bugs": {
"url": "https://github.com/openjck/openjck.com/issues"
},
"homepage": "https://github.com/openjck/openjck.com",
"devDependencies": {
"del": "^1.1.1",
"gulp": "^3.8.10",
"gulp-favicons": "*"
}
}
27 changes: 5 additions & 22 deletions www/index.html
Original file line number Diff line number Diff line change
@@ -1,72 +1,57 @@
<!doctype html>
<html>

<head>
<title>John Karahalis</title>
<meta charset="utf-8" />
<meta name="description" content="Personal website of John Karahalis, software developer, project manager and user experience enthusiast from Mozilla." />
<link rel="stylesheet" type="text/css" href="media/css/main.css" />
<meta charset="utf-8">
<meta name="description" content="Personal website of John Karahalis, software developer, project manager and user experience enthusiast from Mozilla.">
<link rel="stylesheet" type="text/css" href="media/css/main.css">
<link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet">
</head>

<link rel="favicons" href="../www/media/img/noise.png" />
</head>
<body>

<div id="wrap">

<div id="introduction">
<h1>John Karahalis</h1>
<p>
I am a software developer, a project manager and a user experience
enthusiast. I work at <a href="https://www.mozilla.org">Mozilla</a>.
</p>
</div>

<div id="sites">

<ul>

<li id="blog">
<a href="http://blog.openjck.com">
<h2>Blog</h2>
</a>
</li>

<li id="github">
<a href="https://github.com/openjck">
<h2>GitHub</h2>
</a>
</li>

<li id="twitter">
<a href="https://twitter.com/openjck">
<h2>Twitter</h2>
</a>
</li>

<li id="linkedin">
<a href="http://www.linkedin.com/in/johnkarahalis/">
<h2>LinkedIn</h2>
</a>
</li>

<li id="email">
<a href="mailto:john.karahalis@gmail.com">
<h2>Email</h2>
</a>
</li>

</ul>

</div>

</div>

<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);

(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://stats.openjck.com/";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
Expand All @@ -76,7 +61,5 @@ <h2>Email</h2>
})();
</script>
<!-- End Piwik Code -->

</body>

</html>