gohugoio / hugoBasicExample

MIT License
281 stars 281 forks source link

Remove SymLink Add Aliases #26

Closed onedrawingperday closed 5 years ago

onedrawingperday commented 5 years ago

This PR reverts commit 6ad74b6 and instead adds the following under content/post/_index.md:

aliases = ["posts","articles"]

Basically the symlink from #24 duplicated all posts in theme demos, so it needs to be removed.

Aliases on the other hand thanks to the Netlify Redirect Output Format defined in the gohugoio theme over here and here become 301 redirects, so they hopefully offer a solution to the issue of the various themes using different sections in their demos that I described in https://github.com/gohugoio/hugoBasicExample/pull/24

Once this PR gets merged a manual build of the Hugo Themes website will need to be triggered, so that we can see if the 301 redirects work as intended.

cc: @digitalcraftsman