Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/papercss-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2019-02-26 23:58:16 +0300
committerZachary Betz <zwbetz@gmail.com>2019-02-26 23:58:16 +0300
commit7ab6197b5742851d0a138abe5720d3ce768f7b54 (patch)
tree9a654c5a13f857cc1f1bb81fd67492b5b6036fdf
parent031dea3482e3767de453dd69bf24ba0cc94c410b (diff)
Post title margin
-rw-r--r--assets/css/custom.css3
-rw-r--r--layouts/post/single.html2
2 files changed, 4 insertions, 1 deletions
diff --git a/assets/css/custom.css b/assets/css/custom.css
index 5a96ebc..f67bb34 100644
--- a/assets/css/custom.css
+++ b/assets/css/custom.css
@@ -14,4 +14,7 @@ nav a:visited {
}
blockquote {
font-style: italic;
+}
+.post-title {
+ margin-bottom: 0.1em;
} \ No newline at end of file
diff --git a/layouts/post/single.html b/layouts/post/single.html
index 2022bd0..c5476fb 100644
--- a/layouts/post/single.html
+++ b/layouts/post/single.html
@@ -1,6 +1,6 @@
{{ define "main" }}
-<h1>{{ .Title }}</h1>
+<h1 class="post-title">{{ .Title }}</h1>
{{ $dateFormat := $.Site.Params.dateFormat | default "Jan 2, 2006" }}
<strong>Publish date: </strong>{{ .PublishDate.Format $dateFormat }}
<br>