Do not only use ugly URLs; have support for relative or ugly

This commit is contained in:
Tony Blyler 2016-11-03 21:14:36 -04:00
parent ddcf6a28d0
commit b781218f4e
4 changed files with 16 additions and 17 deletions
layouts/post

View file

@ -2,7 +2,7 @@
<article class="post">
<header>
<h1>
<a href="{{ .Permalink }}">{{ .Title }} {{ if .Draft }}:: DRAFT{{end}}</a>
<a href="{{ .RelPermalink }}">{{ .Title }} {{ if .Draft }}:: DRAFT{{end}}</a>
</h1>
<span class="post-meta">
{{ .Date.Format "Mon, Jan 2, 2006" }} - Read in {{ .ReadingTime }} Min
@ -10,7 +10,7 @@
</header>
<div class="summary">
{{ .Summary }}
<a href="{{ .Permalink }}">Read more...</a>
<a href="{{ .RelPermalink }}">Read more...</a>
</div>
</article>
</div>