eudicots / Cactus

Static site generator for designers. Uses Python and Django templates.
BSD 3-Clause "New" or "Revised" License
3.46k stars 314 forks source link

Urls in sites without locale being prefixed by 'en-us' #271

Closed 153957 closed 6 years ago

153957 commented 6 years ago

Since e270050af35dfd5f0631f89864ea4696c9fb0c4e all urls created by {% url ... %} tags are prefixed by a locale, however, I am not using locales. This commit sets the default to 'en-us' (.get("locale", "en-us")) which breaks my sites.

Simply settings the locale to a blank string in the config does not work. How can I disable locale while building a site?

I think the url tag should only use locales if they have been configured..

@m-thielen

153957 commented 6 years ago

Fixed by #272