roperzh/tinyce-hugo-theme

Lists don't work with base url not pointing to root

Opened this issue · 0 comments

layouts/_default/list.html contains

             <h1 class="post-title">
              <a href="{{ .Site.BaseURL }}{{ .RelPermalink }}">{{ .Title }}</a>
             </h1>

This should probably be

             <h1 class="post-title">
              <a href="{{ .RelPermalink }}">{{ .Title }}</a>
             </h1>

Because both Site.BaseURL and RelPermalink contain directories. E.g.
Site.BaseURL = http://www.example.org/mysubdir
RelPermalink = /mysubdir/posts/mygreatpost/

It currently works fine if the baseurl does not contain a directory