Permalink
Browse files

v1.3.7. Fixed ignore/ignored/skip/published/draft flag.

  • Loading branch information...
balupton committed Oct 17, 2011
1 parent a9cb5f2 commit 1b2060b36eee3d6bae055a7f7386e018e3cc225f
Showing with 9 additions and 1 deletion.
  1. +8 −0 lib/docpad.coffee
  2. +1 −1 package.json
View
@@ -501,6 +501,13 @@ class Docpad
)
document.load (err) ->
return nextFile err if err
+
+ # Ignored?
+ if document.ignore or document.ignored or document.skip or document.published is false or document.draft is true
+ logger.log 'info', 'Skipped manually ignored document:', document.relativePath
+ return nextFile()
+
+ # Save Document
document.save()
nextFile err
@@ -621,6 +628,7 @@ class Docpad
documents.forEach (document) ->
# Generate path
fileFullPath = "#{outPath}/#{document.url}" #relativeBase+'.html'
+
# Ensure path
util.ensurePath path.dirname(fileFullPath), (err) ->
# Error
View
@@ -1,6 +1,6 @@
{
"name": "docpad",
- "version": "1.3.6",
+ "version": "1.3.7",
"description": "DocPad (like Jekyll) is a static website generator, unlike Jekyll it's written in CoffeeScript+Node.js instead of Ruby, and also allows the template engine complete access to the document model. This means you have unlimited power as a CMS and the simplicity of a notepad.",
"homepage": "https://github.com/balupton/docpad",
"keywords": [

0 comments on commit 1b2060b

Please sign in to comment.