Skip to content

fix: Deprecates and windows filename restrictions #812

Merged
LukasWallrich merged 4 commits into
mainfrom
deprecatefix
Jun 24, 2026
Merged

fix: Deprecates and windows filename restrictions #812
LukasWallrich merged 4 commits into
mainfrom
deprecatefix

Conversation

@richarddushime

@richarddushime richarddushime commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Description

Trailing periods in tags — Four curated resource files had tags like "Statistics." or "Methodological Reform." with a period at the end. Hugo turns tags into URL paths, and Windows forbids folder/file names ending with a period. Removed the trailing periods from all four tags.

Deprecated _build front matter — Two files used _build: which Hugo removed in v0.145.0. Renamed to build: which is the current key.

Why it only breaks on Windows:

macOS and Linux filesystems allow directory names ending with ., so the site builds fine there. Windows (NTFS) silently strips or rejects trailing periods in paths, causing Hugo to error out. The fix is cross-platform safe — removing a trailing period from a tag doesn't affect anything on macOS/Linux either.

additionally the deprecation fixes:
.Site.LanguageCode → site.Language.Locale (deprecated Hugo v0.158.0)

Type of Change

  • Content/documentation update
  • Bug fix

Testing

Checklist

  • Self-reviewed my changes
  • Verified links and formatting are correct
  • No new warnings or errors

Notes

@richarddushime richarddushime requested a review from a team as a code owner June 24, 2026 17:00
@github-actions

Copy link
Copy Markdown
Contributor

👍 All image files/references (if any) are in webp format, in line with our policy.

@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

📝 Spell Check Results

Found 1 potential spelling issue(s) when checking 43 changed file(s):

📄 content/nowherelab/phd-survival-guide.md

Line Issue
157 Compleat ==> Complete

ℹ️ How to address these issues:

  1. Fix the typo: If it's a genuine typo, please correct it.
  2. Add to whitelist: If it's a valid word (e.g., a name, technical term), add it to .codespell-ignore.txt
  3. False positive: If this is a false positive, please report it in the PR comments.

🤖 This check was performed by codespell

@LukasWallrich

LukasWallrich commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Staging Deployment Status

This PR has been successfully deployed to staging as part of an aggregated deployment.

Deployed at: 2026-06-24 20:30:34 UTC
Staging URL: https://staging.forrt.org

The staging site shows the combined state of all compatible open PRs.

@richarddushime richarddushime changed the title fix: Deprecate _build and windows filename restrictions fix: Deprecates and windows filename restrictions Jun 24, 2026

@LukasWallrich LukasWallrich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Good to get this updated

@LukasWallrich LukasWallrich merged commit bdc1ab9 into main Jun 24, 2026
3 checks passed
@LukasWallrich LukasWallrich deleted the deprecatefix branch June 24, 2026 20:35
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

Successfully merging this pull request may close these issues.

2 participants