calintat / minimal

Personal blog theme powered by Hugo
https://themes.gohugo.io/minimal/
MIT License
404 stars 222 forks source link

Disqus does not load if post folder is renamed #102

Open ddubson opened 4 years ago

ddubson commented 4 years ago

if the configuration for where you would store all of the blog posts, by default post folder, is renamed to another folder name (e.g. 'posts' or what ever else) and updated in config.toml to reflect the new posts folder location, seems to break Disqus integration.

I believe it stems from the post folder in layouts defines a single.html which includes Disqus, however if you modify your own site to anything but post, Disqus no longer works since the single.html template is no longer used.

acim commented 3 years ago

You don't need to rename it, you can just add this:

[permalinks]
  post = "/blog/:slug"

in your config.toml before [params.]