1
0
Fork 0
mirror of https://github.com/fmap/muflax65ngodyewp.onion synced 2024-06-02 06:46:50 +02:00

hide :wip in categories

This commit is contained in:
muflax 2012-02-04 21:18:01 +01:00
parent 21fdb6181f
commit 8f38e2a615
2 changed files with 6 additions and 1 deletions

View file

@ -13,7 +13,8 @@ cat_index = @site.printed_items.find{|i| i.path.match(cat_match) and i[:is_categ
<% items = @site.printed_items.select do |i|
i.path.match cat_match and
not i[:is_category]
not i[:is_category] and
not i.draft? # hide drafts, but make them reachable
end %>
<!-- print items in nice list -->

View file

@ -14,6 +14,10 @@ class Nanoc3::Item
def name
identifier.split("/").last
end
def draft?
self[:techne] == :wip
end
end
def category name