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

github.com/gevhaz/hugo-theme-notrack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon <gevhaz@tutanota.com>2020-05-23 17:26:17 +0300
committerSimon <gevhaz@tutanota.com>2020-05-23 17:26:17 +0300
commit5114e703b5b46b961ad8bc081c0dcd58feb001f0 (patch)
tree47e7f83a444c1356fd02d948cddf9cc95946676f
parent913c0960e26b729b817d56af7f0ac3b711c524b7 (diff)
Show page title at top of page
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html1
-rw-r--r--layouts/post/list.html2
-rw-r--r--static/css/styles.css5
-rw-r--r--static/css/styles.scss6
5 files changed, 14 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 3a70de4..46aaf27 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,6 +1,8 @@
{{ define "main" }}
<main>
+<h1 class="page-title">{{ .Title }}</h1>
+
{{- if .Pages -}}
{{- $pages := (where .Pages ".Draft" false) -}}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index d01017d..09bcb89 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,5 +1,6 @@
{{ define "main" }}
<main>
+ <h1 class="page-title">{{ .Title }}</h1>
{{ .Content }}
</main>
{{ end }}
diff --git a/layouts/post/list.html b/layouts/post/list.html
index a8f8914..37ae993 100644
--- a/layouts/post/list.html
+++ b/layouts/post/list.html
@@ -1,6 +1,8 @@
{{ define "main" }}
<main>
+ <h1 class="page-title">{{ .Title }}</h1>
+
{{ if default true .Site.Params.showTaxonomyLinks }}
<div class="taxonomy-links">
<ul>
diff --git a/static/css/styles.css b/static/css/styles.css
index c4adfcf..16e007e 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -88,6 +88,9 @@ figcaption {
figcaption h4 {
margin: 0.3em 0; }
+.page-title {
+ text-align: center; }
+
nav {
display: flex;
justify-content: flex-end;
@@ -202,7 +205,7 @@ nav li:hover {
.blog-post-title {
margin-bottom: 0.2em;
padding-bottom: 0;
- font-size: 2em; }
+ font-size: 1.5em; }
.blog-post-title a {
color: #333;
font-family: FreeSans, sans-serif; }
diff --git a/static/css/styles.scss b/static/css/styles.scss
index d585761..a3a23d6 100644
--- a/static/css/styles.scss
+++ b/static/css/styles.scss
@@ -154,6 +154,10 @@ figcaption {
}
}
+.page-title {
+ text-align: center;
+}
+
// NAVBAR
nav {
@@ -297,7 +301,7 @@ nav li:hover {
.blog-post-title {
margin-bottom: 0.2em;
padding-bottom: 0;
- font-size: 2em;
+ font-size: 1.5em;
a {
color: $heading-gray;