diff options
author | breadcat | 2024-01-10 16:17:47 +0000 |
---|---|---|
committer | breadcat | 2024-01-10 16:17:47 +0000 |
commit | 0ee4bd3ded721ba2657a42468bc701e84125ddcc (patch) | |
tree | 9b4c40cf03b619af3747532b486adb94f94ec1ab /themes/Brine/layouts | |
parent | 2399a0cd6c1a1cc0c5b112c16cd540d72497f122 (diff) | |
download | blog.minskio.co.uk-0ee4bd3ded721ba2657a42468bc701e84125ddcc.tar.gz blog.minskio.co.uk-0ee4bd3ded721ba2657a42468bc701e84125ddcc.tar.bz2 blog.minskio.co.uk-0ee4bd3ded721ba2657a42468bc701e84125ddcc.zip |
Add counts to
Diffstat (limited to 'themes/Brine/layouts')
-rw-r--r-- | themes/Brine/layouts/_default/baseof.html | 1 | ||||
-rw-r--r-- | themes/Brine/layouts/_default/dreams.html | 4 | ||||
-rw-r--r-- | themes/Brine/layouts/_default/memoirs.html | 16 |
3 files changed, 15 insertions, 6 deletions
diff --git a/themes/Brine/layouts/_default/baseof.html b/themes/Brine/layouts/_default/baseof.html index 5cbc739..6eb5a84 100644 --- a/themes/Brine/layouts/_default/baseof.html +++ b/themes/Brine/layouts/_default/baseof.html @@ -22,6 +22,7 @@ pre>code{display:block;padding:20px;white-space:pre-wrap;font-size:75%;max-width:80ch} a,h1,li,p{max-width:70ch} blockquote{color:#333;border-left:7px solid #fc9;padding:0 14px;margin:0} + summary>span{color:#999} td,th{text-align:left;padding-right:10px} p.pagination>a{padding:5px} @media(min-width:1100px){ diff --git a/themes/Brine/layouts/_default/dreams.html b/themes/Brine/layouts/_default/dreams.html index dc60178..7e94a84 100644 --- a/themes/Brine/layouts/_default/dreams.html +++ b/themes/Brine/layouts/_default/dreams.html @@ -1,13 +1,13 @@ {{ define "main" }} <h1>{{ .Title }}</h1> {{ .Content }} <details> - <summary>Dated</summary> + <summary>Dated <span>({{ .Site.Taxonomies.dream.dated | len}})</span></summary> <ul>{{ range sort .Site.Taxonomies.dream.dated ".Page.RelPermalink" "desc" }} <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }} </ul> </details> <details> - <summary>Archive</summary> + <summary>Archive <span>({{ .Site.Taxonomies.dream.undated | len}})</span></summary> <ul>{{ range sort .Site.Taxonomies.dream.undated ".Page.RelPermalink" "desc" }} <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }} </ul> diff --git a/themes/Brine/layouts/_default/memoirs.html b/themes/Brine/layouts/_default/memoirs.html index 6b6fb86..fe6c711 100644 --- a/themes/Brine/layouts/_default/memoirs.html +++ b/themes/Brine/layouts/_default/memoirs.html @@ -1,28 +1,36 @@ {{ define "main" }} <h1>{{ .Title }}</h1> {{ .Content }} + + <details> + <summary>Working <span>({{ .Site.Taxonomies.memoir.working | len}})</span></summary> + <ul>{{ range sort .Site.Taxonomies.memoir.working ".Page.RelPermalink" "desc" }} + <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }} + </ul> + </details> + <details> - <summary>College</summary> + <summary>College <span>({{ .Site.Taxonomies.memoir.college | len}})</span></summary> <ul>{{ range sort .Site.Taxonomies.memoir.college ".Page.RelPermalink" "desc" }} <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }} </ul> </details> <details> - <summary>Sixth Form</summary> + <summary>High School/Sixth Form <span>({{ .Site.Taxonomies.memoir.sixthform | len}})</span></summary> <ul>{{ range sort .Site.Taxonomies.memoir.sixthform ".Page.RelPermalink" "desc" }} <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }} </ul> </details> <details> - <summary>Junior School</summary> + <summary>Junior School <span>({{ .Site.Taxonomies.memoir.juniorschool | len}})</span></summary> <ul>{{ range sort .Site.Taxonomies.memoir.juniorschool ".Page.RelPermalink" "desc" }} <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }} </ul> </details> <details> - <summary>Nursery</summary> + <summary>Nursery <span>({{ .Site.Taxonomies.memoir.nursery | len}})</span></summary> <ul>{{ range sort .Site.Taxonomies.memoir.nursery ".Page.RelPermalink" "desc" }} <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a></li>{{ end }} </ul> |