We are actually using caddy these days master
authorJoann Mõndresku <joann@cernodile.com>
Sat, 11 May 2024 09:39:01 +0000 (12:39 +0300)
committerJoann Mõndresku <joann@cernodile.com>
Sat, 11 May 2024 09:39:01 +0000 (12:39 +0300)
layouts/_default/list.html
layouts/index.html
layouts/partials/footer.html
static/bquest.css

index d45fa5f2d72274369fc15019157ffb2cd1e785d3..badd94c890a7abfcaae4b72a3185201b91d8c0ff 100644 (file)
@@ -1,8 +1,20 @@
 {{ partial "header.html" . -}}
 {{ partial "header.html" . -}}
+<p><a href="/">&lt;-- Back</a></p>
 <h2>{{.Site.Title}} &ndash; Articles for {{.Title}}</h2>
 <ul>
 <h2>{{.Site.Title}} &ndash; Articles for {{.Title}}</h2>
 <ul>
-{{- range.Pages }}
+{{ $paginator := .Paginator }}
+{{- range .Paginator.Pages }}
        <li><a href="{{ .RelPermalink }}">{{ .Date.Format "02/01/2006" }} {{.Title}}</a></li>
 {{ end -}}
 </ul>
        <li><a href="{{ .RelPermalink }}">{{ .Date.Format "02/01/2006" }} {{.Title}}</a></li>
 {{ end -}}
 </ul>
+
+{{ if gt .Paginator.TotalPages 1 }}
+<p class="cern-blue">
+{{ if .Paginator.HasPrev }}<a href="{{ .Paginator.Prev.URL }}">&lt;</a>{{ end }}
+{{ range .Paginator.Pagers }}
+       {{if ne $paginator . }}<a href="{{ .URL }}">{{.PageNumber}}</a>{{ else }}{{.PageNumber}}{{ end }}
+{{ end }}
+{{ if .Paginator.HasNext }}<a href="{{ .Paginator.Next.URL }}">&gt;</a>{{ end }}
+</p>
+{{ end }}
 {{ partial "footer.html" .}}
 {{ partial "footer.html" .}}
index 04952714d7195837faee2f850c05b6ab6372152e..4714a0577edb977d36dc4dbcc8ab96f69c5f8327 100644 (file)
@@ -8,7 +8,7 @@
 &gt; Accept */*<br>
 &gt;<br><br></p>
 <p>&lt; HTTP/1.1 200 OK<br>
 &gt; Accept */*<br>
 &gt;<br><br></p>
 <p>&lt; HTTP/1.1 200 OK<br>
-&lt; Server: nginx<br>
+&lt; Server: Caddy<br>
 &lt; Date: Right now o'clock<br>
 &lt; Content-Type: base/based<br>
 &lt; Last-Modified: Doesn't need to be modified, is perfect as-is.<br>
 &lt; Date: Right now o'clock<br>
 &lt; Content-Type: base/based<br>
 &lt; Last-Modified: Doesn't need to be modified, is perfect as-is.<br>
index 26e9c5943673748196afffd6e6d31e330deecf48..59dc5dafd1198b0de8e8aa94b6e6901dbdc91a76 100644 (file)
@@ -1,2 +1,2 @@
 <p class="cern-blue"><br><br>Join us at Matrix: {{ .Site.Params.Matrix }}</p>
 <p class="cern-blue"><br><br>Join us at Matrix: {{ .Site.Params.Matrix }}</p>
-<p class="cern-blue">&copy; 2021 - 2022 {{ .Site.Title }} | Powered by <a href="https://gohugo.io">Hugo</a> | <a href="{{ .Site.Params.Donate }}">Donate</a> | <a href="index.xml">Atom RSS</a></p>
+<p class="cern-blue">&copy; 2021 - 2024 {{ .Site.Title }} | Powered by <a href="https://gohugo.io">Hugo</a> | <a href="{{ .Site.Params.Donate }}">Donate</a> | <a href="index.xml">Atom RSS</a></p>
index f640d124d4664f3bcf653252350862ba74e26ed2..78cd5f13fe49d5d6d50ef5e053add1183d4e14fe 100644 (file)
@@ -1 +1 @@
-body,html{background:#000;color:#fff;max-width:1024px;margin:1em auto;padding:0 0.5em;font-family:monospace;font-size:large;}.cern-blue{color:#397ef6;}a,a:visited{color:#fff;}p{margin:0;padding:0}#post p{margin:12px 0;margin:revert;text-align:justify;}#post a,#post a:visited{color:#00b7ff;}pre code {display:block;padding:1em 1em 1em 1em;overflow-x:auto;}code{border:1px solid #ffb300;border-radius:5px;color:#19ca24;background:#202020;display:inline-block;}
+body,html{background:#000;color:#fff;max-width:1024px;margin:1em auto;padding:0 0.5em;font-family:monospace;font-size:large;}.cern-blue{color:#397ef6 !important;}a,a:visited{color:#fff;}p{margin:0;padding:0}#post p{margin:12px 0;margin:revert;text-align:justify;}#post a,#post a:visited{color:#00b7ff;}pre code {display:block;padding:1em 1em 1em 1em;overflow-x:auto;}code{border:1px solid #ffb300;border-radius:5px;color:#19ca24;background:#202020;display:inline-block;}