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:
parent
21fdb6181f
commit
8f38e2a615
|
@ -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 -->
|
||||
|
|
|
@ -14,6 +14,10 @@ class Nanoc3::Item
|
|||
def name
|
||||
identifier.split("/").last
|
||||
end
|
||||
|
||||
def draft?
|
||||
self[:techne] == :wip
|
||||
end
|
||||
end
|
||||
|
||||
def category name
|
||||
|
|
Loading…
Reference in a new issue