diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 6 | ||||
-rw-r--r-- | templates/categoriesByCount.html | 7 | ||||
-rw-r--r-- | templates/categoriesById.html (renamed from templates/categoryRef.html) | 4 |
3 files changed, 11 insertions, 6 deletions
diff --git a/templates/base.html b/templates/base.html index 4b8ea1e..48d7c72 100644 --- a/templates/base.html +++ b/templates/base.html | |||
@@ -52,10 +52,8 @@ ${pageHeader()} | |||
52 | $body$ | 52 | $body$ |
53 | 53 | ||
54 | $if(section.is_blog)$ | 54 | $if(section.is_blog)$ |
55 | $if(pages.not_empty)$ | 55 | ${categoriesById()} |
56 | ${categoryRef()} | 56 | ${pagelistByYear()} |
57 | ${pagelistByYear()} | ||
58 | $endif$ | ||
59 | $endif$ | 57 | $endif$ |
60 | </div> | 58 | </div> |
61 | </main> | 59 | </main> |
diff --git a/templates/categoriesByCount.html b/templates/categoriesByCount.html new file mode 100644 index 0000000..871e3db --- /dev/null +++ b/templates/categoriesByCount.html | |||
@@ -0,0 +1,7 @@ | |||
1 | $if(categories.by_count)$ | ||
2 | <ul class="c-hlist"> | ||
3 | $for(categories.by_count)$ | ||
4 | <li class="c-hlist__item"><strong>$it.key/uppercase$</strong>: $it.value.name$ ($it.value.count$)</li> | ||
5 | $endfor$ | ||
6 | </ul> | ||
7 | $endif$ | ||
diff --git a/templates/categoryRef.html b/templates/categoriesById.html index 58dc5fe..1f4f433 100644 --- a/templates/categoryRef.html +++ b/templates/categoriesById.html | |||
@@ -1,6 +1,6 @@ | |||
1 | $if(categories)$ | 1 | $if(categories.by_id)$ |
2 | <ul class="c-hlist"> | 2 | <ul class="c-hlist"> |
3 | $for(categories)$ | 3 | $for(categories.by_id)$ |
4 | <li class="c-hlist__item"><strong>$it.key/uppercase$</strong>: $it.value.name$ ($it.value.count$)</li> | 4 | <li class="c-hlist__item"><strong>$it.key/uppercase$</strong>: $it.value.name$ ($it.value.count$)</li> |
5 | $endfor$ | 5 | $endfor$ |
6 | </ul> | 6 | </ul> |