about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-07-29 20:38:33 +0100
committerAlan Pearce2014-07-29 20:38:33 +0100
commit84bd86f43144a71009487691ce0222078365ff30 (patch)
treebf4dff1f4cac1be6e41d8377f9a6c2aeee7ffa5c
parent92805f7a704d1f98b02d6ddea87ef5ef0486ff89 (diff)
downloadhyde-84bd86f43144a71009487691ce0222078365ff30.tar.lz
hyde-84bd86f43144a71009487691ce0222078365ff30.tar.zst
hyde-84bd86f43144a71009487691ce0222078365ff30.zip
Don't use h1 for site title outside of homepage
-rw-r--r--layouts/partials/sidebar.html7
-rw-r--r--static/css/hyde.css6
2 files changed, 11 insertions, 2 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index d736472..8c211bd 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -1,6 +1,11 @@
 		<aside class="sidebar container">
 			<header class="sidebar-about" itemprop="author" itemscope itemtype="http://schema.org/Person">
-				<h1 itemprop="name">{{ .Site.Title }}</h1>
+				{{ if eq .Title .Site.Title }}
+				<h1 class="site-title" itemprop="name">{{ .Site.Title }}</h1>
+				{{ else }}
+				<span class="site-title" itemprop="name">{{ .Site.Title }}</span>
+				{{ end }}
+
 				<p class="lead">
 					{{ with .Site.Params.Description }} {{.}} {{ else }}An elegant open source and mobile first theme for <a href="http://hugo.spf13.com">hugo</a> made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for Jekyll.{{end}}
 				</p>
diff --git a/static/css/hyde.css b/static/css/hyde.css
index f6c51ee..1e90233 100644
--- a/static/css/hyde.css
+++ b/static/css/hyde.css
@@ -76,11 +76,15 @@ html {
 }
 
 /* About section */
-.sidebar-about h1 {
+.site-title {
   color: #fff;
   margin-top: 0;
   font-family: "Abril Fatface", serif;
   font-size: 3.25rem;
+  font-weight: bold;
+  line-height: 1.25;
+  margin-bottom: 0.5rem;
+  display: block;
 }
 
 .contact-head {