aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/footer.html4
-rw-r--r--templates/tag.html61
2 files changed, 44 insertions, 21 deletions
diff --git a/templates/footer.html b/templates/footer.html
index 445b639..6aff097 100644
--- a/templates/footer.html
+++ b/templates/footer.html
@@ -4,10 +4,10 @@
<div class="footer-lcsb"></div>
<div class="footer-text">
<div>
- The contents are available under the <a href="{root}license">Creative Commons Attribution-ShareAlike License (CC-BY-SA 4.0)</a>.
+ The contents are available under the <a href="{{root}}license">Creative Commons Attribution-ShareAlike License (CC-BY-SA 4.0)</a>.
</div>
<div>
- <a href="{root}privacy-policy">Privacy Policy</a> (Only necessary cookies accepted — <a href="#">change</a>)
+ <a href="{{root}}privacy-policy">Privacy Policy</a> (Only necessary cookies accepted — <a href="#">change</a>)
</div>
</div>
<div class="flex-fill"></div>
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>