Skip to content

Change .Site.LanguageCode to .Site.Language.Locale - #712

Merged
agriyakhetarpal merged 4 commits into
scientific-python:mainfrom
kreczko:kreczko-issue-711
Sep 3, 2026
Merged

Change .Site.LanguageCode to .Site.Language.Locale#712
agriyakhetarpal merged 4 commits into
scientific-python:mainfrom
kreczko:kreczko-issue-711

Conversation

@kreczko

@kreczko kreczko commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

This PR fixes #711 by replacing the deprecated .Site.LanguageCode to with .Site.Language.Locale (see hugo docs)

@netlify

netlify Bot commented Jul 23, 2026

Copy link
Copy Markdown

Deploy Preview for scientific-python-hugo-theme ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 86b803c
🔍 Latest deploy log https://app.netlify.com/projects/scientific-python-hugo-theme/deploys/6a993511973ef10008b848c3
😎 Deploy Preview https://deploy-preview-712--scientific-python-hugo-theme.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 94
Accessibility: 97
Best Practices: 100
SEO: 91
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@kreczko

kreczko commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Note: Current deploy uses hugo 0.152, while the requirement for this change is at least 0.158 (latest is 0.164)

@agriyakhetarpal

Copy link
Copy Markdown
Member

Thanks @kreczko! Could you please bump the Hugo version to Hugo 0.158.0?

@agriyakhetarpal

Copy link
Copy Markdown
Member

Hmm, looks like there are more errors...

@kreczko

kreczko commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Hmm, looks like there are more errors...

Yes, the next blocker is actually kaushalmodi/hugo-atom-feed#22
global author setting has been removed, hugo-atom-feed needs an update to get it from params instead (just like in exampleSite/config.yaml)

@agriyakhetarpal

Copy link
Copy Markdown
Member

Right, https://github.com/kaushalmodi/hugo-atom-feed is unmaintained, just like I was talking about with @stefanv in #692.

@agriyakhetarpal

Copy link
Copy Markdown
Member

(Closed in error, wrong button – sorry about that!)

@kreczko

kreczko commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Right, https://github.com/kaushalmodi/hugo-atom-feed is unmaintained, just like I was talking about with @stefanv in #692.

That's going to be a blocker going forward. I guess merging into scipy-theme is not a bad idea (but add origin in comment) - a fork for a single file seems indeed overkill ;).

@stefanv

stefanv commented Aug 4, 2026

Copy link
Copy Markdown
Member

Ideally, we make a PR to the original source; meanwhile, we can vendor.

@agriyakhetarpal

Copy link
Copy Markdown
Member

Ideally, we make a PR to the original source; meanwhile, we can vendor.

We cannot vendor it due to licensing concerns, unfortunately, @stefanv – as I describe in #714, which I just opened with all the details. This PR will have to remain blocked in the meantime.

Thanks for the contribution, @kreczko, nevertheless! I hope we can come around to it and merge it soon enough!

@agriyakhetarpal

Copy link
Copy Markdown
Member

@kreczko, is this PR ready to go in now?

@agriyakhetarpal
agriyakhetarpal marked this pull request as ready for review September 3, 2026 08:53
@kreczko

kreczko commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

@kreczko, is this PR ready to go in now?

Yes, now that #715 is merged, this is ready.

@agriyakhetarpal

Copy link
Copy Markdown
Member

Thanks, @kreczko!

@agriyakhetarpal agriyakhetarpal changed the title Fix #711: change .Site.LanguageCode to .Site.Language.Locale Change .Site.LanguageCode to .Site.Language.Locale Sep 3, 2026
@agriyakhetarpal
agriyakhetarpal merged commit 96aa659 into scientific-python:main Sep 3, 2026
6 of 7 checks passed
@stefanv stefanv added this to the 0.23 milestone Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.Site.LanguageCode was deprecated in Hugo v0.158.0

3 participants