aboutsummaryrefslogtreecommitdiff
path: root/templates/tag.html
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-06-06 20:23:32 +0200
committerMirek Kratochvil <exa.exa@gmail.com>2023-06-07 00:01:14 +0200
commitaef05617b7c0634e896a0f686ef90bbd6a06fd39 (patch)
tree6f307a6987e96bd38f1b6c03e6f826c39ee3a931 /templates/tag.html
parent86c711821b650873b91031b113163f9c9d7dfc67 (diff)
downloadreploy-aef05617b7c0634e896a0f686ef90bbd6a06fd39.tar.gz
reploy-aef05617b7c0634e896a0f686ef90bbd6a06fd39.tar.bz2
render tag pages
Diffstat (limited to 'templates/tag.html')
-rw-r--r--templates/tag.html28
1 files changed, 24 insertions, 4 deletions
diff --git a/templates/tag.html b/templates/tag.html
index c706469..ccb3e84 100644
--- a/templates/tag.html
+++ b/templates/tag.html
@@ -2,12 +2,32 @@
<html>
{{> head.html}}
<body>
-<h2>{{?tag}}Tag: {{tagpath}}{{/tag}}{{^tag}}All pages{{/tag}}</h2>
-Path: (root){{#tag}} / #{{.}}{{/tag}}
-<ul>
+<h1>
+{{?htag}}
+ Category:
+ {{#htag}}
+ <a class="cards-tagpiece" href="{{href}}">
+ {{^tag}}all{{/tag}}
+ {{?tag}}» {{tag}}{{/tag}}
+ </a>
+ {{/htag}}
+{{/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}}
+{{?pages}}
+<h2>Cards</h2>
+<ul class="cards-list">
{{#pages}}
-<li>{{#anchor}}{{name}}{{/anchor}}</li>
+<li><a href="{{href}}">{{meta.title}}</a></li>
{{/pages}}
</ul>
+{{/pages}}
</body>
</html>