Conversation
…stuff: " - Added 'type: writeup' to all writeups .md - Added the ctf and writeup archetypes - Added the writeup layout
…useless for now and modified the index acordingly.
…inux for now). Updated term.html for the new structure. Updated the writeup archetype for the new structure.
Contributor
Author
|
I added some new changes which are useful for maintainability:
|
Contributor
Author
|
Testing steps for reviewers:
I did this steps myself, but it would be nice to have someone else look at it in case I missed something. |
Member
|
tried to test, but i get this error when building: ❯ hugo server
Watching for changes in /home/zenbassi/hex/dothidden/{archetypes,assets,content,layouts,static}
Watching for config changes in /home/zenbassi/hex/dothidden/config.yaml
Start building sites …
hugo v0.148.2+extended+withdeploy linux/amd64 BuildDate=unknown
Built in 247 ms
Error: error building site: render: failed to render pages: render of "/ctf" failed: "/home/zenbassi/hex/dothidden/layouts/_default/list.html:17:21": execute of template failed: template: list.html:17:21: executing "main" at <sort .Params.Tags>: error calling sort: sequence must be providedhugo version 0.148 It's not really uncommon for them to introduce breaking changes as far as I could see. I assume it works on your machine? @VladSteopoaie |
Contributor
|
Tested and all looks good to me. Thanks for the contribution. |
MxHonesty
approved these changes
Sep 4, 2025
Contributor
|
Also tested on latest hugo, seems to work fine |
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds some invisible refactoring to the website. The changes include:
hugo new CTFName/writeup.mdtohugo new --kind writeup CTFName/writeup.md(I will update the wiki once this PR is approved)type: writeupline to every ctf related file incontent/, this change will make sure that hugo will use the newly added writeup layoutThis PR is necessary because newly created writeups will automatically have the
type: writeupline so we don't have to add them manually in the future.