aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-06-18 17:03:30 +0200
committerMirek Kratochvil <exa.exa@gmail.com>2023-06-18 17:03:30 +0200
commit6deeb8be82a01e69065014e3920248ab07651319 (patch)
tree32eb6a99e51a9e504204b51e94d8cbc1d59f7d89
parent4a7dcc2dbe64a59c54003802f1d7f0ae898761e4 (diff)
downloadreploy-6deeb8be82a01e69065014e3920248ab07651319.tar.gz
reploy-6deeb8be82a01e69065014e3920248ab07651319.tar.bz2
add the list template
-rw-r--r--templates/list.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/list.html b/templates/list.html
new file mode 100644
index 0000000..df04ffe
--- /dev/null
+++ b/templates/list.html
@@ -0,0 +1,35 @@
+<!doctype html5>
+<html>
+{{> head.html}}
+<body>
+{{> header.html}}
+<h1>
+{{?htag}}
+ Category listing:
+ {{#htag}}
+ <a class="cards-tagpiece" href="{{href}}">
+ {{^tag}}all{{/tag}}
+ {{?tag}}» {{tag}}{{/tag}}
+ </a>
+ {{/htag}}
+{{/htag}}
+</h1>
+<p>See the <a href="{{taghref}}">hierarchical view of this category</a>.</p>
+{{?subtags}}<h3>Sub-categories</h3>
+ <ul class="cards-subcategories">
+ {{#subtags}}
+ <li><a href="{{href}}">{{#tags}} » {{.}} {{/tags}}</a></li>
+ {{/subtags}}
+ </ul>
+{{/subtags}}
+{{?pages}}
+ <h3>Cards</h3>
+ <ul class="cards-list">
+ {{#pages}}
+ <li><a href="{{href}}">{{meta.title}}</a></li>
+ {{/pages}}
+ </ul>
+{{/pages}}
+{{> footer.html}}
+</body>
+</html>