alanorth/hugo-theme-bootstrap4-blog

Pretty URL's

Closed this issue · 1 comments

Is there a way to configure this theme to not add .html to the end of all the post links for example

http://localhost:1313/blog/test.html

a prettier URL would be:

http://localhost:1313/blog/test
or
http://localhost:1313/blog/test/

Hmm, seems like a general Hugo configuration issue. My blog uses this theme and the URLs are "pretty":

I suspect you need a [permalinks] section in your configuration like:

[permalinks]                                                                                                                                                                                                                                                                                                                  
  post = "/:year/:month/:slug/"                                                                                                                                                                                                                                                                                               
  page = "/:slug/"