aboutsummaryrefslogtreecommitdiff
path: root/templates
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
parent86c711821b650873b91031b113163f9c9d7dfc67 (diff)
downloadreploy-aef05617b7c0634e896a0f686ef90bbd6a06fd39.tar.gz
reploy-aef05617b7c0634e896a0f686ef90bbd6a06fd39.tar.bz2
render tag pages
Diffstat (limited to 'templates')
-rw-r--r--templates/head.html10
-rw-r--r--templates/tag.html28
2 files changed, 33 insertions, 5 deletions
diff --git a/templates/head.html b/templates/head.html
index 1bc1509..c267616 100644
--- a/templates/head.html
+++ b/templates/head.html
@@ -1 +1,9 @@
-<title>{{title}}</title>
+<head>
+ <meta charset="UTF-8" />
+ <title>
+ {{?title}}{{title}}{{/title}}
+ {{?htag}}
+ All cards {{#htag}} » {{tag}}{{/htag}}
+ {{/htag}}
+ </title>
+</head>
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>