You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several theme authors are using /contents/posts for their content files while others /content/post to serve their content files. Typically these post types are hardcoded in list templates.
When the hugoBasicExample was enforced I made these changes to the Themes Site Build Script so that a different config is used if Type posts is found and a different ignoreFiles parameter is used that serves the symlinks under /posts/ and ignores the contents of /post/
At the moment as reported in linked issue above demos have duplicate content in taxonomies when they should not.
Also tried refactoring and splitting the content in two different directories i.e. /content/ and /contentPosts/ so that the first is the default one (and serves the post Type) whereas the second content directory is set in the Build Script if Type posts is detected.
Again I was unable to resolve this. The contentDir parameter seems ignored on my end in Hugo v.0.57.2
The text was updated successfully, but these errors were encountered:
I still do not know why I encountered this behavior of contentDir and ignoreFiles. I think that is was due to the way config overwrites happen in Hugo.
In any case I am done investigating and this will be one issue less on my notifications list.
Due to the rendering of duplicate content reported in issue gohugoio/hugoBasicExample#52
I have been investigating the use of
ignoreFiles
andcontentDir
because the hugoBasicExample serves content that it shouldn't.The following parameter used to work up until Hugo v.0.56.3 but not anymore.
Also a little bit of background about the above.
Several theme authors are using
/contents/posts
for their content files while others/content/post
to serve their content files. Typically these post types are hardcoded in list templates.When the hugoBasicExample was enforced I made these changes to the Themes Site Build Script so that a different config is used if
Type posts
is found and a differentignoreFiles
parameter is used that serves the symlinks under/posts/
and ignores the contents of/post/
At the moment as reported in linked issue above demos have duplicate content in taxonomies when they should not.
Also tried refactoring and splitting the content in two different directories i.e.
/content/
and/contentPosts/
so that the first is the default one (and serves thepost Type
) whereas the second content directory is set in the Build Script ifType posts
is detected.Again I was unable to resolve this. The
contentDir
parameter seems ignored on my end in Hugo v.0.57.2The text was updated successfully, but these errors were encountered: