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

Why is so much effort devoted to covering the case where a default locale is not set? #84

Open
gopz opened this issue May 30, 2024 · 0 comments

Comments

@gopz
Copy link

gopz commented May 30, 2024

Is your feature request related to a problem? Please describe.

I'm just curious why so much of the html is devoted to covering the case where there's no default locale set. Just force people to set a default locale? I'm not too familiar with this sort of thing but it seems a little cumbersome to change the code in two places just so that it won't fail if there's not default locale.

Describe the solution you'd like

Delete all the if/thens dealing with no default locale ({% if site.locale and site.locale != "" and site.locale != nil %})

Describe alternatives you've considered

Leaving it the way it is, it's not hurting much

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

No branches or pull requests

1 participant