fix notes index, enlarge pagination limit

This commit is contained in:
Wouter Groeneveld 2021-03-05 12:28:20 +01:00
parent c0e789bcb9
commit b1bb5e7997
3 changed files with 25 additions and 15 deletions

View File

@ -15,7 +15,7 @@ enableGitInfo = true
[params]
level = 35
favicon = "/img/avatar-icon.png"
pagination = 15
pagination = 30
# disabled to get rid of cloudflare cookies
MathJax = false

13
content/notes/_index.md Normal file
View File

@ -0,0 +1,13 @@
---
title: Half-Baked Ideas
type: archive
icontag: tech
---
> A half-baked idea a day keeps the doctor away. <span>Wouter</span>
These are fleeting, _half-baked_ thoughts, that may or may not get fully baked into fleshed out [blog posts](/post). The notes below are also syndicated to other platforms, such as <svg class='icon icon-text'><use xlink:href='#discuss'></use></svg>[Mastodon](https://chat.brainbaking.com/@wouter). Enjoy reading my ramblings!
Not finding what you're looking for? [Browse the archives](/archives).<br/>
Want to stay up to date? [Subscribe to the <svg class='icon icon-small' width='16' height='16'><use xlink:href='#news'></use></svg>Notes Feed](/notes/index.xml).<br/>
Interested more substantial thoughts? [Read the Freshly Baked blog](/post).

View File

@ -20,26 +20,23 @@
{{ . }}
</article>
{{ end }}
{{ end }}
{{ end }}
<div class="tootlist">
{{ range ($paginator.Pages).GroupByDate "2006" "desc" }}
<h2>{{ .Key }}</h2>
{{ if (not .Params.disableList) }}
<div class="tootlist">
{{ range ($paginator.Pages).GroupByDate "2006" "desc" }}
<h2>{{ .Key }}</h2>
{{ range .Pages.GroupByDate "January" }}
<h3>{{ .Key }}</h3>
{{ range .Pages.GroupByDate "January" }}
<h3>{{ .Key }}</h3>
{{ range .Pages.ByDate.Reverse }}
{{ partial "toot" . }}
{{ end }}
{{ range .Pages.ByDate.Reverse }}
{{ partial "toot" . }}
{{ end }}
{{ end }}
{{ end }}
</div>
{{ template "_internal/pagination.html" . }}
{{ end }}
</div>
{{ template "_internal/pagination.html" . }}
<footer>
<svg class='icon icon-text' width='24' height='24'><use xlink:href='#up'></use></svg><a href="#top">Top</a>