From 866ddf338e94e8770de213c67ab09eb106dc8f83 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Thu, 23 Mar 2023 11:31:44 +0100 Subject: [PATCH] Cleanup --- layouts/_default/index.html | 23 ++++------------------- static/style.css | 2 +- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/layouts/_default/index.html b/layouts/_default/index.html index 30da921..d91064e 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -1,29 +1,14 @@ {{ define "main" }} {{ .Content -}}
- {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "rambles") (eq (trim $.Site.Params.contentTypeName " ") "")) }} - {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "rambles" }} - - {{ $PageContext := . }} - {{ if .IsHome }} - {{ $PageContext = .Site }} - {{ end }} - - {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} - - {{ range first 5 .Paginator.Pages }} + {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "rambles") (eq (trim $.Site.Params.contentTypeName " ") "")) }} {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "rambles" }} {{ $PageContext := . }} {{ if .IsHome }} {{ $PageContext = .Site }} {{ end }} {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} + {{ range first 10 .Paginator.Pages }} - - - - {{ end }} + + {{ end }}

Read more

diff --git a/static/style.css b/static/style.css index a04fe68..0196edd 100644 --- a/static/style.css +++ b/static/style.css @@ -15,7 +15,7 @@ html{ background-color: var(--ansi00-hard); } body{ padding: 0; margin: 0; } -a:hover:active{ transform: translate(0, 3pt) ; background-color: var(--ansi03); } +a:hover:active{ background-color: var(--ansi03); } a{ color: var(--ansi11); } a:hover{ color: var(--ansi00-hard); background-color: var(--ansi11); text-decoration: none;} a:hover > code{ color: var(--ansi00-hard); background-color: var(--ansi11); text-decoration: none;}