From f5c6b310c196b42546b4f6301a029605c360cf22 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Mon, 26 Sep 2022 19:31:12 +0200 Subject: [PATCH] Some cleaning and mobile support --- layouts/_default/index.html | 3 +-- static/style.css | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/_default/index.html b/layouts/_default/index.html index 3ea491e..237bcac 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -1,6 +1,6 @@ {{ 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" }} @@ -10,7 +10,6 @@ {{ end }} {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} -
{{ range .Paginator.Pages }} diff --git a/static/style.css b/static/style.css index ef238e0..ebf805f 100644 --- a/static/style.css +++ b/static/style.css @@ -2,7 +2,7 @@ @import "gruvbox.css"; :root{ - scrollbar-color: var(--ansi00-soft) var(--ansi00-hard); + scrollbar-color: var(--ansi08) transparent; } :target{background-color: var(--ansi00-soft);} ::selection{ @@ -76,8 +76,9 @@ header{text-transform: capitalize; text-align:center;border-bottom:2pt solid; fo -moz-animation: gay 8s ease-in-out infinite; -webkit-animation: gay 8s ease-in-out infinite; } -table{color: var(--ansi07); margin-bottom: .5em; } +.posts{ overflow-x: auto; } .post-meta{ width: 100%; background-color: var(--ansi00); border-radius: 1em; padding:.5em;} +table{color: var(--ansi07); margin-bottom: .5em;} .post-meta a{text-decoration: none;} .post-tags a{ color:inherit;} .post-tags a:hover{text-decoration:none; color:var(--ansi15); background:inherit;}