move year posts inside year dir, fix aria label on forms, fix pagination where filter
This commit is contained in:
parent
db76f45272
commit
9f1daf5867
|
@ -11,13 +11,13 @@ Not finding what you're looking for? Try browsing the archives:
|
|||
### By search
|
||||
|
||||
<form method="get" action="/search" class="search-form">
|
||||
<input id="zoekentxt" placeholder="e.g. 'philosophy'" name="q" type="text" style="width: 56%" />
|
||||
<input id="zoekentxt" aria-label="Search terms" placeholder="e.g. 'philosophy'" name="q" type="text" style="width: 56%" />
|
||||
<button type="submit" class="button" style="width: 36%">Search!</button>
|
||||
</form>
|
||||
|
||||
### By year
|
||||
|
||||
- [2020](/post/2020) ... when I started paying attention to webdesign again
|
||||
- [2020](/post/2020) ... when Hugo 0.7 was released and I started paying attention to webdesign
|
||||
- [2019](/post/2019) ... when I started taking computing education blogging seriously
|
||||
- [2018](/post/2018) ... when my PhD work started and I tried writing essays in Dutch
|
||||
- [2017](/post/2017) ... when self-improvement meta-posts started popping up more often
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
{{ $year := index .Params 0 }}
|
||||
|
||||
Not finding what you're looking for? <a href="/tags">Browse the archives</a>.
|
||||
|
||||
<div class="list">
|
||||
<h2>{{ $year }}</h2>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<article>
|
||||
<form method="get" action="" class="search-form">
|
||||
<input id="zoekentxt" placeholder="philosophy" name="q" type="text" style="width: 56%" />
|
||||
<input id="zoekentxt" placeholder="philosophy" aria-label="Search terms" name="q" type="text" style="width: 56%" />
|
||||
<button type="submit" class="button" style="width: 36%">Search!</button>
|
||||
</form>
|
||||
</article>
|
||||
|
|
|
@ -12,7 +12,9 @@
|
|||
</header>
|
||||
{{ end }}
|
||||
|
||||
{{ if eq .Paginator.PageNumber 1 }}
|
||||
{{ $paginator := .Paginate (where .Data.Pages ".Params.category" "ne" "archive") }}
|
||||
|
||||
{{ if eq $paginator.PageNumber 1 }}
|
||||
<hr/>
|
||||
{{ with .Content }}
|
||||
<article>
|
||||
|
@ -23,17 +25,16 @@
|
|||
|
||||
|
||||
{{ if (not .Params.disableList) }}
|
||||
<div class="list">
|
||||
<div class="list">
|
||||
{{ range ($paginator.Pages).GroupByDate "2006" "desc" }}
|
||||
<h2>{{ .Key }}</h2>
|
||||
|
||||
{{ range (where .Paginator.Pages ".Params.category" "ne" "archive").GroupByDate "2006" "desc" }}
|
||||
<h2>{{ .Key }}</h2>
|
||||
|
||||
{{ range .Pages.GroupByDate "Jan" }}
|
||||
<h3>{{ .Key }}</h3>
|
||||
{{ partial "list-ul" . }}
|
||||
{{ range .Pages.GroupByDate "Jan" }}
|
||||
<h3>{{ .Key }}</h3>
|
||||
{{ partial "list-ul" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
|
|
Loading…
Reference in New Issue