aboutsummaryrefslogtreecommitdiff
path: root/templates/tag.html
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-06-18 17:02:51 +0200
committerMirek Kratochvil <exa.exa@gmail.com>2023-06-18 17:02:51 +0200
commit4a7dcc2dbe64a59c54003802f1d7f0ae898761e4 (patch)
tree1bc77c7d96cd4899ae231b5fb082f1383035c0ff /templates/tag.html
parent3b13dd83533b5136dba7a8ff334b1d3081d8205d (diff)
downloadreploy-4a7dcc2dbe64a59c54003802f1d7f0ae898761e4.tar.gz
reploy-4a7dcc2dbe64a59c54003802f1d7f0ae898761e4.tar.bz2
split tags and ehtags, separate listings from hierarchical views
Diffstat (limited to 'templates/tag.html')
-rw-r--r--templates/tag.html61
1 files changed, 42 insertions, 19 deletions
diff --git a/templates/tag.html b/templates/tag.html
index b617996..f17e669 100644
--- a/templates/tag.html
+++ b/templates/tag.html
@@ -4,32 +4,55 @@
<body>
{{> header.html}}
<h1>
-{{?htag}}
- Category:
- {{#htag}}
- <a class="cards-tagpiece" href="{{href}}">
- {{^tag}}all{{/tag}}
- {{?tag}}» {{tag}}{{/tag}}
- </a>
- {{/htag}}
+Cards in category:
+{{#htag}}
+<a class="cards-tagpiece" href="{{href}}">
+ {{^tag}}all{{/tag}}
+ {{?tag}}» {{tag}}{{/tag}}
+</a>
{{/htag}}
-{{^htag}}All cards{{/htag}}
</h1>
-{{?subtags}}<h2>Sub-categories</h2>
- <ul class="cards-subcategories">
- {{#subtags}}
- <li><a href="{{href}}">{{#tags}} » {{.}} {{/tags}}</a></li>
- {{/subtags}}
- </ul>
-{{/subtags}}
+<p>See the <a href="{{listhref}}">complete listing of all pages in this category</a>.</p>
+<ul class="cards-list">
{{?pages}}
- <h2>Cards</h2>
- <ul class="cards-list">
{{#pages}}
<li><a href="{{href}}">{{meta.title}}</a></li>
{{/pages}}
- </ul>
{{/pages}}
+{{?subtags}}
+ {{#subtags}}
+ <li>
+ <a href="{{href}}">{{#tags}} » {{.}} {{/tags}}</a>
+ <ul>
+ {{?pages}}
+ {{#pages}}
+ <li><a href="{{href}}">{{meta.title}}</a></li>
+ {{/pages}}
+ {{/pages}}
+ {{?subtags}}
+ {{#subtags}}
+ <li>
+ <a href="{{href}}">{{#tags}} » {{.}} {{/tags}}</a>
+ <ul>
+ {{?pages}}
+ {{#pages}}
+ <li><a href="{{href}}">{{meta.title}}</a></li>
+ {{/pages}}
+ {{/pages}}
+ {{?subtags}}
+ {{#subtags}}
+ <li><a href="{{href}}">{{#tags}} » {{.}} {{/tags}}</a> (click to expand)</li>
+ {{/subtags}}
+ {{/subtags}}
+ </ul>
+ </li>
+ {{/subtags}}
+ {{/subtags}}
+ </ul>
+ </li>
+ {{/subtags}}
+{{/subtags}}
+</ul>
{{> footer.html}}
</body>
</html>