From 82c1d6562815197990d2b7ade50099422de9952e Mon Sep 17 00:00:00 2001 From: Calin Tataru Date: Fri, 11 Oct 2019 16:24:36 +0100 Subject: [PATCH 1/2] More changes --- layouts/_default/single.html | 2 +- layouts/post/single.html | 2 +- static/css/main.css | 35 ++++++++++++++++++++++------------- 3 files changed, 24 insertions(+), 15 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index f790778..26717de 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -8,7 +8,7 @@
{{ .Description }}
{{ partial "tags" . }} -
{{ .Content }}
+
{{ .Content }}
diff --git a/layouts/post/single.html b/layouts/post/single.html index 15b53c9..833ced0 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -8,7 +8,7 @@
{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006") }}
-
{{ .Content }}
+
{{ .Content }}
{{ $related := first 3 (where (where (where .Site.Pages.ByDate.Reverse ".Type" "==" "post") ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }} diff --git a/static/css/main.css b/static/css/main.css index f9065d6..ac83b4d 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -20,13 +20,7 @@ img { max-width: 100%; } -/* Footer */ - -.copyright { - margin: 15px 0; -} - -/* Home page */ +/* Homepage */ .intro { transform: translateY(22vh); @@ -42,13 +36,22 @@ img { font-size: 3vmin; } -.intro > .profile { +/* Page content */ + +.content { + padding-top: 10px; + padding-botton: 10px; +} + +/* Profile picture */ + +.profile { width: 10vh; height: 10vh; border-radius: 50%; } -/* Apply accent colour to links */ +/* Colored links */ a:link, a:visited { color: var(--accent); @@ -62,7 +65,13 @@ a:hover { color: var(--accent) !important; } -/* Paginator at bottom of list view */ +/* Copyright message */ + +.copyright { + margin: 15px 0; +} + +/* Paginator */ .pages { padding: 15px 0; @@ -72,7 +81,7 @@ a:hover { padding: 0 15px; } -/* List item for posts and projects */ +/* List item for posts/projects */ .item { padding: 10px 0; @@ -82,14 +91,14 @@ a:hover { background-color: var(--accent); } -/* Navigation bar icons */ +/* Navigation icons */ .navbar-icon { font-size: 125%; display: inline-block !important; } -/* Coloured borders at top and bottom of the page */ +/* Colored borders at top/bottom of page */ .navbar.navbar-default { border-top: var(--border-width) solid var(--accent); From 296c9be5d234f936993cdbff1a4d1cbd64ad3bda Mon Sep 17 00:00:00 2001 From: Calin Tataru Date: Mon, 21 Oct 2019 21:12:07 +0100 Subject: [PATCH 2/2] Revert number of pages to 5 --- layouts/_default/list.html | 2 +- static/css/main.css | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index d2a1cc8..38aaf9b 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -4,7 +4,7 @@

{{ .Title }}

- {{ range (.Paginator 4).Pages }} {{ partial "list-item" . }} {{ end }} + {{ range (.Paginator 5).Pages }} {{ partial "list-item" . }} {{ end }} diff --git a/static/css/main.css b/static/css/main.css index ac83b4d..3da1763 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -39,8 +39,7 @@ img { /* Page content */ .content { - padding-top: 10px; - padding-botton: 10px; + padding-top: 20px; } /* Profile picture */