Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set default layout for taxonomies #277

merged 1 commit into from Feb 6, 2020


Copy link

Fity commented Jan 14, 2020

This PR adds a default layout for taxonomies.

Before this PR, when we add a new taxonomy(like "collection"), we will get an empty page at domain/collections which is really confusing and awkward.

With this PR, we will get a default layout just like Category and the leading title will be taxonomy itself.

This PR also sets the default i18n content of the taxonomy to the content itself. So that we don't need to update all the i18n files every time we add a new taxonomy.

I'm new to hugo and wonder if there's a better way to do this.

@xianmin xianmin merged commit 7fa1a5f into xianmin:master Feb 6, 2020

This comment has been minimized.

Copy link

xianmin commented Feb 6, 2020

I'm sorry it took me so long to respond. Thanks for your PR! 😄

@Fity Fity deleted the Fity:fix-taxonomies branch Feb 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.