From 9ee3ade085b73e474e1af4eb4e679fe1f6bb0f44 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 10 Sep 2018 19:30:27 +0100 Subject: [PATCH] CSS: Make header margins more consistent again See #681 See #571 --- demo.sh | 2 +- layouts/_default/list.html | 2 +- layouts/partials/css/academic.css | 1 + layouts/section/post.html | 2 +- layouts/section/publication.html | 2 +- layouts/section/talk.html | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/demo.sh b/demo.sh index 17b4f212..82141a72 100755 --- a/demo.sh +++ b/demo.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash cd exampleSite -hugo -t academic --themesDir ../.. -p 1315 --i18n-warnings server +hugo -t "hugo-academic-v3" --themesDir ../.. -p 1315 --i18n-warnings --ignoreCache server diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 4f006a78..4de5d501 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -10,7 +10,7 @@ {{ partial "header_image.html" . }}
- {{ with .Title }}

{{ . }}

{{ end }} + {{ with .Title }}

{{ . }}

{{ end }} {{ with .Content }}
{{ . }}
diff --git a/layouts/partials/css/academic.css b/layouts/partials/css/academic.css index a0228e0e..e1675124 100644 --- a/layouts/partials/css/academic.css +++ b/layouts/partials/css/academic.css @@ -85,6 +85,7 @@ ul, ol, dl { h1, h2, h3, h4, h5, h6 { font-family: '{{ .Get "heading_font" }}', sans-serif; font-weight: 400; + margin-top: 1rem; margin-bottom: .5rem; line-height: 1.25; color: #313131; diff --git a/layouts/section/post.html b/layouts/section/post.html index 9f0c7b49..614f37e5 100644 --- a/layouts/section/post.html +++ b/layouts/section/post.html @@ -5,7 +5,7 @@
-

{{ .Title | default (i18n "posts") }}

+

{{ .Title | default (i18n "posts") }}

{{ with .Content }}
{{ . }}
diff --git a/layouts/section/publication.html b/layouts/section/publication.html index fa368670..cda35aed 100644 --- a/layouts/section/publication.html +++ b/layouts/section/publication.html @@ -4,7 +4,7 @@ {{ partial "header_image.html" . }}
-
+

{{ .Title | default (i18n "publications") }}

diff --git a/layouts/section/talk.html b/layouts/section/talk.html index 673a91d8..ffd1c185 100644 --- a/layouts/section/talk.html +++ b/layouts/section/talk.html @@ -4,7 +4,7 @@ {{ partial "header_image.html" . }}
-
+

{{ .Title | default (i18n "talks") }}