about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-07-12 21:12:47 +0100
committerAlan Pearce2014-07-12 21:12:47 +0100
commit9bd89b4835e36a88438930e24de7ea06bda7ad7e (patch)
treea9445f381ef77f1159bd0c0f033b93767117dbc9
parent2c8a5016b0310da24689eae27d404d6c13727161 (diff)
downloadhyde-9bd89b4835e36a88438930e24de7ea06bda7ad7e.tar.lz
hyde-9bd89b4835e36a88438930e24de7ea06bda7ad7e.tar.zst
hyde-9bd89b4835e36a88438930e24de7ea06bda7ad7e.zip
Switch to relative permalinks where possible
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/index.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 72b23be..e80155e 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -4,7 +4,7 @@
 			<ul class="posts">
 				{{ range .Data.Pages }}
 				<li>
-					<a href="{{ .Permalink }}">{{ .Title }}</a>
+					<a href="{{ .RelPermalink }}">{{ .Title }}</a>
 					<time class="pull-right post-list" datetime="{{ .Date.Format "2006-01-02 15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time>
 					<p class="summary">{{ .Summary }}</p>
 				</li>
diff --git a/layouts/index.html b/layouts/index.html
index 135644b..867eb66 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -16,7 +16,7 @@
 				<ul>
 					{{ range .Data.Pages }}
 					<li>
-						<a class="post-title" href="{{ .Permalink }}">{{ .Title }}</a>
+						<a class="post-title" href="{{ .RelPermalink }}">{{ .Title }}</a>
 						<time class="post-date">{{ .Date.Format "Monday, 2 January 2006" }}</time>
 					</li>
 					{{ end }}