diff options
Diffstat (limited to '_plugins')
-rw-r--r-- | _plugins/linter.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/_plugins/linter.rb b/_plugins/linter.rb index 50be99f..919a8bb 100644 --- a/_plugins/linter.rb +++ b/_plugins/linter.rb @@ -50,7 +50,7 @@ module Jekyll end COLLECTION_LAYOUTS = { - 'page' => 'page', + 'page' => 'default', 'slides' => 'slides', 'articles' => 'post', 'pastebins' => 'post', @@ -64,8 +64,8 @@ module Jekyll lang = assert_field document, 'lang' ref = assert_field document, 'ref' layout = assert_field document, 'layout' - date = document.date.strftime('%Y-%m-%d') unless layout == 'page' - slug = layout == 'page' ? ref : assert_field(document, 'slug') + date = document.date.strftime('%Y-%m-%d') unless layout == 'default' + slug = layout == 'default' ? ref : assert_field(document, 'slug') extension = name == 'slides' ? 'slides' : 'md' unless LANGS.member? lang @@ -84,7 +84,7 @@ module Jekyll end end - unless layout == 'page' then + unless layout == 'default' then path = "_#{name}/#{date}-#{slug}.#{extension}" unless path == document.relative_path then raise "date/filename mismatch:\ndate+slug: #{path}\nfilename: #{document.relative_path}" |