Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Refactor detection of Type Posts #703

Merged
merged 1 commit into from
Aug 27, 2019
Merged

Refactor detection of Type Posts #703

merged 1 commit into from
Aug 27, 2019

Conversation

onedrawingperday
Copy link
Contributor

@onedrawingperday onedrawingperday commented Aug 27, 2019

This Pull Request is a follow-up of gohugoio/hugoBasicExample@f3f9fec

I refactored the detection of "Type" "posts" in the Build Script for non whitelisted themes, so that now whenever that string is detected in the layouts folder of a theme then the Type changes to post because that is the only Type currently served from the hugoBasicExample.

This simplification will make maintenance easier. Sometimes it's better to use an one line command in shell rather than having all sorts of workarounds in Hugo.

cc: @digitalcraftsman

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants