eshlox / simplicity

Hugo theme.
MIT License
50 stars 16 forks source link

Subdirectory website #2

Closed sysmso closed 6 years ago

sysmso commented 6 years ago

Hi,

I have a problem with your theme in my website which is in a domain subdirectory (www.example.com/hugo/) : the url are not handling properly, there is a / before all links. For example in the tags list :

`

Tags

<ul>
    <li>
      <a href="/tags/foreman">
        <span class="hash">#</span>foreman
      </a>
      <sup>1</sup>
    </li>`

The resulting link is www.example.com/tags/foreman instead of www.example.com/hugo/tags/foreman

How can i change this behaviour ?

Thanks for your help

eshlox commented 6 years ago

Hi,

Try to set canonifyURLs in the config file, example:

baseURL = "https://example.org/hugo/"
canonifyURLs = true

Let me know if it works for you. ;-)

sysmso commented 6 years ago

Ok it works with canonifyURLs thank you !