Adding build date to a comment in the header

This commit is contained in:
Jeff Avallone 2014-12-23 20:23:37 -05:00
parent 11cf4c74dc
commit 4b38bd6edd
2 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,7 @@ gulp.task('markup', ['compass'], function() {
return gulp.src(config.globs.html, { base: './src' }) return gulp.src(config.globs.html, { base: './src' })
.pipe(errorHandler()) .pipe(errorHandler())
.pipe(wrap({ src: config.templateFile }, { .pipe(wrap({ src: config.templateFile }, {
date: new Date().toISOString(),
title: function() { title: function() {
var root = path.join(this.file.cwd, this.file.base), var root = path.join(this.file.cwd, this.file.base),
file = path.relative(root, this.file.history[0]); file = path.relative(root, this.file.history[0]);

View File

@ -13,6 +13,7 @@
<link rel="author" href="humans.txt" /> <link rel="author" href="humans.txt" />
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Bangers" /> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Bangers" />
<link rel="stylesheet" href="/css/main.css" /> <link rel="stylesheet" href="/css/main.css" />
<!-- Built: ${date} -->
</head> </head>
<body> <body>
<script type="text/css" id="svg-styles">${svgStyles}</script> <script type="text/css" id="svg-styles">${svgStyles}</script>