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

github.com/vaga/hugo-theme-m10c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Schulz <chad.awesome@gmail.com>2022-10-06 21:07:37 +0300
committerGitHub <noreply@github.com>2022-10-06 21:07:37 +0300
commit53ae06456a38be1cbd982c118d415abee66800f8 (patch)
treee447e912f85555949dd89c5dd52a231fd7254fc2
parent135066d7866100c78a081d9f7a4eb549ed2c4c01 (diff)
update site title, so pages have a single h1 element
-rw-r--r--assets/css/components/_app.scss8
-rw-r--r--layouts/_default/baseof.html2
2 files changed, 9 insertions, 1 deletions
diff --git a/assets/css/components/_app.scss b/assets/css/components/_app.scss
index 643f3ce..35cd1ef 100644
--- a/assets/css/components/_app.scss
+++ b/assets/css/components/_app.scss
@@ -24,6 +24,14 @@
}
}
+.app-header-title {
+ color: $lightest-color;
+ display: block;
+ font-size: 2em;
+ margin: 0.67em 0;
+ font-weight: bold;
+}
+
@media (min-width: 940px) {
.app-header {
position: fixed;
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 9201a44..7ed1318 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -19,7 +19,7 @@
<body>
<header class="app-header">
<a href="{{ .Site.BaseURL }}"><img class="app-header-avatar" src="{{ .Site.Params.avatar | default "avatar.jpg" | relURL }}" alt="{{ .Site.Params.author | default "John Doe" }}" /></a>
- <h1>{{ .Site.Title }}</h1>
+ <span class="app-header-title">{{ .Site.Title }}</span>
{{- with .Site.Menus.main }}
<nav class="app-header-menu">
{{- range $key, $item := . }}