about summary refs log tree commit diff stats
path: root/layouts/partials
diff options
context:
space:
mode:
authorAlan Pearce2014-07-29 20:38:33 +0100
committerAlan Pearce2014-07-29 20:38:33 +0100
commit84bd86f43144a71009487691ce0222078365ff30 (patch)
treebf4dff1f4cac1be6e41d8377f9a6c2aeee7ffa5c /layouts/partials
parent92805f7a704d1f98b02d6ddea87ef5ef0486ff89 (diff)
downloadhyde-84bd86f43144a71009487691ce0222078365ff30.tar.lz
hyde-84bd86f43144a71009487691ce0222078365ff30.tar.zst
hyde-84bd86f43144a71009487691ce0222078365ff30.zip
Don't use h1 for site title outside of homepage
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/sidebar.html7
1 files changed, 6 insertions, 1 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>