diff options
| author | Volpeon <git@volpeon.ink> | 2020-12-28 21:34:30 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2020-12-28 21:34:30 +0100 |
| commit | 5ab5e6a4781c53aade17a9a98e123762691205c6 (patch) | |
| tree | c8a1eed27676e2118a8a44270a9ffa82e9e98b13 /templates | |
| parent | Export pages grouped by year as array instead of object (diff) | |
| download | volpeon.ink-5ab5e6a4781c53aade17a9a98e123762691205c6.tar.gz volpeon.ink-5ab5e6a4781c53aade17a9a98e123762691205c6.tar.bz2 volpeon.ink-5ab5e6a4781c53aade17a9a98e123762691205c6.zip | |
Handle blog entry categories
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 1 | ||||
| -rw-r--r-- | templates/categoryRef.html | 7 | ||||
| -rw-r--r-- | templates/pagelistByYear.html | 4 |
3 files changed, 11 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html index 8d10d13..330e759 100644 --- a/templates/base.html +++ b/templates/base.html | |||
| @@ -49,6 +49,7 @@ ${pageHeader()} | |||
| 49 | $body$ | 49 | $body$ |
| 50 | 50 | ||
| 51 | $if(isblog)$ | 51 | $if(isblog)$ |
| 52 | ${categoryRef()} | ||
| 52 | ${pagelistByYear()} | 53 | ${pagelistByYear()} |
| 53 | $endif$ | 54 | $endif$ |
| 54 | </div> | 55 | </div> |
diff --git a/templates/categoryRef.html b/templates/categoryRef.html new file mode 100644 index 0000000..9a363cf --- /dev/null +++ b/templates/categoryRef.html | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | $if(categories)$ | ||
| 2 | <ul class="c-hlist"> | ||
| 3 | $for(categories)$ | ||
| 4 | <li class="c-hlist__item"><strong>$it.key/uppercase$</strong>: $it.value$</li> | ||
| 5 | $endfor$ | ||
| 6 | </ul> | ||
| 7 | $endif$ | ||
diff --git a/templates/pagelistByYear.html b/templates/pagelistByYear.html index 972bacc..20ce6c4 100644 --- a/templates/pagelistByYear.html +++ b/templates/pagelistByYear.html | |||
| @@ -1,9 +1,11 @@ | |||
| 1 | $for(pages)$ | 1 | $for(pages)$ |
| 2 | $for(it.by_year)$ | 2 | $for(it.by_year)$ |
| 3 | $-- <hr class="c-spacer" /> | ||
| 4 | $-- <h2>$it.key$</h2> | ||
| 3 | <ul class="s-refs"> | 5 | <ul class="s-refs"> |
| 4 | $for(it.value)$ | 6 | $for(it.value)$ |
| 5 | <li> | 7 | <li> |
| 6 | <a href="$it.url_rel$">$it.date$ - $it.title$</a> | 8 | <a href="$it.url_rel$">$it.category/uppercase$ $it.date$ - $it.title$</a> |
| 7 | </li> | 9 | </li> |
| 8 | $endfor$ | 10 | $endfor$ |
| 9 | </ul> | 11 | </ul> |
