diff options
author | Alan Pearce | 2017-06-10 14:21:47 +0200 |
---|---|---|
committer | Alan Pearce | 2017-06-10 14:21:47 +0200 |
commit | f3b3cc3312db39b418cdd53d0399edc744d52c88 (patch) | |
tree | 38741a5bca61d291bfe5839a51e9b556a6ee00c3 /layouts/_default | |
parent | d54d42df7e23d4254f76467a2142cf843d1f4a5a (diff) | |
download | hyde-f3b3cc3312db39b418cdd53d0399edc744d52c88.tar.lz hyde-f3b3cc3312db39b418cdd53d0399edc744d52c88.tar.zst hyde-f3b3cc3312db39b418cdd53d0399edc744d52c88.zip |
Remove trailing slash in post URLs
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/list.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index a9f903c..948a5e6 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" itemprop="url" href="{{ .RelPermalink | 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 }} |