about summary refs log tree commit diff stats
path: root/layouts/_default
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/_default
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/_default')
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html4
2 files changed, 4 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 9bbcb38..b3b1c25 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -5,7 +5,7 @@
 			<ul class="posts">
 				{{ range .Data.Pages }}
 				<li itemscope itemtype="http://schema.org/BlogPosting">
-					<a class="post-title" itemprop="url" href="{{ .RelPermalink }}"><span itemprop="name">{{ .Title }}<span></a>
+					<a class="post-title u-url" itemprop="url" href="{{ .Permalink | replaceRE "/$" "" }}"><span itemprop="name">{{ .Title }}<span></a>
 					<time class="post-date" itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time>
 				</li>
 				{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 034cb26..26df731 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -3,7 +3,9 @@
 		<main class="content container" role="main">
 			<article class="post">
 				<header>
-					<h1 class="post-title p-name" itemprop="name">{{ .Title }}</h1>
+					<a class="u-url" href="{{ .Permalink | replaceRE "/$" "" }}">
+						<h1 class="post-title p-name" itemprop="name">{{ .Title }}</h1>
+					</a>
 					<time class="post-date dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}" itemprop="datePublished">{{ .Date.Format "Monday, 2 January 2006" }}</time>
 				</header>
 				<main class="post-content e-content" itemprop="articleBody">