Hugo-generated footer modification commit hash incorrect #9
Labels
No Label
WIP
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
WIP
bug
docs done
docs needed
duplicate
enhancement
feature
gemini
invalid
legal-ish
needs help
onionz
proposal
question
resolved
security
spam
todo
upstream-related
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: dotya.ml/homepage#9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Footer commit hash is incorrectly generated by the
hugo --gc=true --minify
step in .drone.yml.The image above displays a hash linking to a commit, which is no longer relevant as the latest that modified the subject page.
It's a template code-generated hash so any page using it is affected.
As each build is run in a separate container using Drone, I'd start by removing the garbage collector thing (
--gc=true
) 🙈Example of a correct (as of now) hash
this might actually be a
hugo
bug.running
hugo
multiple times in a row outputs correct hash inconsistently to thepublic/
folder files (which it should do either never or always)this issue was only observable on non-posts (such as the about and contact pages), a post page shows the hash just fine so it is safe to assume the issue is not with Hugo but our usage of the hash outside of posts.
ref: https://dotya.ml/posts/dnscrypt/