about summary refs log tree commit diff stats
path: root/layouts/partials
diff options
context:
space:
mode:
authorAlan Pearce2017-06-23 13:22:08 +0200
committerAlan Pearce2017-06-23 13:22:08 +0200
commit57a032d9f3665033484471fd1e355e3b3caff641 (patch)
treec7b622c9a9ab5ab7ac8d9092543b615d1a6550fd /layouts/partials
parent80ecb4689b15c3260d83f57dafb81bd73bd32942 (diff)
parent987cab567c5fc9bed00bf11b8693b44d40564e5e (diff)
downloadhyde-57a032d9f3665033484471fd1e355e3b3caff641.tar.lz
hyde-57a032d9f3665033484471fd1e355e3b3caff641.tar.zst
hyde-57a032d9f3665033484471fd1e355e3b3caff641.zip
Merge remote-tracking branch 'alanpearce/master'
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/head.html2
-rw-r--r--layouts/partials/sidebar.html8
2 files changed, 8 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 4c79ead..59304c2 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -14,5 +14,5 @@
 		<link rel="stylesheet" href="/css/syntax.css">
 		<link rel="stylesheet" href="/css/hyde.css">
 		<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}">
-		<link href="{{ .Permalink }}" rel="canonical">
+		<link href="{{ if .IsPage }}{{ .Permalink | replaceRE "/$" "" }}{{ else }}{{ .Permalink }}{{ end }}" rel="canonical">
 	</head>
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 5b23f00..d4f8e2d 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -1,12 +1,18 @@
 		<aside class="sidebar container">
 			<header class="sidebar-about h-card vcard p-author" itemprop="author" itemscope itemtype="http://schema.org/Person">
+				{{ if (isset .Site.Author "image") }}
+				<a class="u-url u-uid" href="{{ .Site.BaseURL }}">
+					<img class="u-photo" src="{{ .Site.Author.image }}" width=128 height=128 />
+				</a>
+				{{ end }}
+
 				{{ if eq .Title .Site.Title }}
 				<h1 class="site-title u-name fn" itemprop="name">{{ .Site.Title }}</h1>
 				{{ else }}
 				<span class="site-title u-name fn" itemprop="name">{{ .Site.Title }}</span>
 				{{ end }}
 
-				<p class="lead">
+				<p class="lead p-note">
 					{{ 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>