about summary refs log tree commit diff stats
path: root/layouts/partials
diff options
context:
space:
mode:
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>