Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
Fix issue where date pages were skipped if no tags exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
ducksoupdev committed Feb 26, 2015
1 parent 0b7d76a commit b8ce8e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gulp/lib/compile-dates.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
return;
}

if (!fileData.tags || !fileData.date || !fileData.template) {
if (!fileData.date || !fileData.template) {
return;
}

Expand All @@ -58,7 +58,7 @@
posts.push(metaData);
}

if (fileData.tags) {
if (fileData.date) {
var dateMonth = fileData.date.substr(0, 7); //2014-12
if (datePosts[dateMonth]) {
datePosts[dateMonth].push(metaData);
Expand Down

0 comments on commit b8ce8e8

Please sign in to comment.