From d091db2327ae7f7ba0f7dc57e10d668455ef63f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joann=20M=C3=B5ndresku?= Date: Sun, 25 Sep 2022 23:14:04 +0300 Subject: [PATCH 1/3] paginators v1 --- layouts/_default/list.html | 14 +++++++++++++- static/bquest.css | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index d45fa5f..badd94c 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,8 +1,20 @@ {{ partial "header.html" . -}} +

<-- Back

{{.Site.Title}} – Articles for {{.Title}}

+ +{{ if gt .Paginator.TotalPages 1 }} +

+{{ if .Paginator.HasPrev }}<{{ end }} +{{ range .Paginator.Pagers }} + {{if ne $paginator . }}{{.PageNumber}}{{ else }}{{.PageNumber}}{{ end }} +{{ end }} +{{ if .Paginator.HasNext }}>{{ end }} +

+{{ end }} {{ partial "footer.html" .}} diff --git a/static/bquest.css b/static/bquest.css index f640d12..78cd5f1 100644 --- a/static/bquest.css +++ b/static/bquest.css @@ -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;} -- 2.25.1 From fcfe04e4ce492abf0bd4277d35f2d16527ed59d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joann=20M=C3=B5ndresku?= Date: Sat, 11 May 2024 12:35:19 +0300 Subject: [PATCH 2/3] we're in 2024, we should act like it! --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 26e9c59..59dc5da 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,2 +1,2 @@



Join us at Matrix: {{ .Site.Params.Matrix }}

-

© 2021 - 2022 {{ .Site.Title }} | Powered by Hugo | Donate | Atom RSS

+

© 2021 - 2024 {{ .Site.Title }} | Powered by Hugo | Donate | Atom RSS

-- 2.25.1 From 9cf3685f990b2d136386af98cebb1599a000be68 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joann=20M=C3=B5ndresku?= Date: Sat, 11 May 2024 12:39:01 +0300 Subject: [PATCH 3/3] We are actually using caddy these days --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index 0495271..4714a05 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -8,7 +8,7 @@ > Accept */*
>

< HTTP/1.1 200 OK
-< Server: nginx
+< Server: Caddy
< Date: Right now o'clock
< Content-Type: base/based
< Last-Modified: Doesn't need to be modified, is perfect as-is.
-- 2.25.1