Add 'hidden' node attribute
This commit is contained in:
parent
77d08036c6
commit
ad3f9687c6
3 changed files with 5 additions and 2 deletions
|
|
@ -35,7 +35,7 @@
|
|||
{% if nodes and config.index_node_list %}
|
||||
<ul>
|
||||
{% for node in nodes | slice(end=config.index_node_count) %}
|
||||
{% if node.id != root_node.id %}
|
||||
{% if node.id != root_node.id and not node.hidden %}
|
||||
<li><a href="/node/{{node.id}}">{{node.title}}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
{% if nodes %}
|
||||
<h2>All nodes</h2>
|
||||
<ul>
|
||||
{% for node in nodes %}
|
||||
{% for node in nodes | filter(attribute="hidden", value=false)%}
|
||||
<li>
|
||||
<a href="/node/{{node.id}}">{{node.title}}</a>
|
||||
{% if node.connections or config.tree_node_text %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue