gethugothemes / bigspring-light-hugo

Bigspring is a Hugo startup theme. It has a clean, minimal, fresh UI.
https://gethugothemes.com/products/bigspring/?utm_source=bigspring_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
204 stars 304 forks source link

Cached partial for header.html breaks language drop down #50

Closed christxph closed 3 years ago

christxph commented 3 years ago

The language drop-down always contains the current URL and the corresponding URLs for other languages. This means that header.html needs to be rebuilt for every page. This works fine during development but in production builds partialCached is used, which means that header.html gets built once and then used on all pages which causes the drop-down to point to the same URL on all pages.

So L27: https://github.com/themefisher/bigspring-light/blob/2ac514278034bedfb863f8d4073308f5be65bcdd/layouts/_default/baseof.html#L25-L31

should be changed to:

{{ partial "header.html" . }}
somratpro commented 3 years ago

Hello @christxph,

Thanks for your concern. I already fixed this issue. You can download the latest code for a better experience.

Did you know, we have a premium version of the Bigspring, which has a lot of premium features. You can check it out from here https://gethugothemes.com/products/bigspring/