Skip to content

Conversation

@dvdksn
Copy link
Contributor

@dvdksn dvdksn commented Sep 10, 2024

Closes #20818

With the recent change in moving content to the /manuals section, and
manipulating content permalinks to use /:sections[1:]/:slugorfilename,
source filenames with dots in them did not receive a .html extension in
the site output directory. This seems to be a quirk (bug?) with the
:slugorfilename permalink token in Hugo.

To work around this, I have removed the dots in markdown filenames and
replaced them with dashes.

Related issues

@netlify
Copy link

netlify bot commented Sep 10, 2024

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 94e01d9
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/66e00513ca70d80008669b03
😎 Deploy Preview https://deploy-preview-20820--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@github-actions github-actions bot added the hugo Updates related to hugo label Sep 10, 2024
@dvdksn dvdksn changed the title hugo: remove dots with dashes in content filenames hugo: replace dots with dashes in content filenames Sep 10, 2024
@dvdksn dvdksn requested a review from a team September 10, 2024 08:35
With the recent change in moving content to the /manuals section, and
manipulating content permalinks to use `/:sections[1:]/:slugorfilename`,
source filenames with dots in them did not receive a .html extension in
the site output directory. This seems to be a quirk (bug?) with the
`:slugorfilename` permalink token in Hugo.

To work around this, I have removed the dots in markdown filenames and
replaced them with dashes.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
@dvdksn dvdksn merged commit e37bfcb into docker:main Sep 10, 2024
@dvdksn dvdksn deleted the dot-filenames branch September 10, 2024 09:50
@mariushosting
Copy link

When can we expect the links to be available and online? @dvdksn

@dvdksn
Copy link
Contributor Author

dvdksn commented Sep 10, 2024

@mariushosting it's live now!

@mariushosting
Copy link

@mariushosting it's live now!

Thank you, David, for your promptness in addressing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hugo Updates related to hugo status/review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[404]: /engine/release-notes/26.1/

3 participants