-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
site: make footer show last updated #530
site: make footer show last updated #530
Conversation
Little JS snippet to actually show something like: · Page last updated [3 days ago](link to commit). Instead of: · Build from commit [abcdef](link to commit). Written in ES6 syntax (https://caniuse.com/#search=es6). Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
6b6a285
to
cca0e5f
Compare
site/layouts/partials/footer.html
Outdated
`href="https://github.com/kubernetes-sigs/krew/commit/${commitHash}">` + | ||
`${text}</a>.`; | ||
}; | ||
writeLastMod({{- .Lastmod.Unix -}}, '{{- .GitInfo.Hash -}}'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be indented one more level?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Works like a charm! |
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahmetb, corneliusweig The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
Little JS snippet to actually show something like:
Instead of:
Written in ES6 syntax (https://caniuse.com/#search=es6).