mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-28 19:12:10 +00:00
76a18c2541
- Add generator info to Atom feed. - Add generator version and commit hash to meta page, along with a link to the last CI job if available. - Use $JOB_URL to detect CI since that variable can be re-used to fetch the URL to the latest CI logs.
12 lines
485 B
HTML
12 lines
485 B
HTML
{{- $now := now -}}
|
|
{{- $buildCtx := "on my workstation" -}}
|
|
{{- with getenv "JOB_URL" -}}
|
|
{{- $buildCtx = `<a href="{{ . }}">on builds.sr.ht</a>` | safeHTML -}}
|
|
{{- end -}}
|
|
<p>
|
|
This site was last built on
|
|
<time datetime="{{ $now.Format "2006-01-02T15:04:05-07:00" | safeHTML }}">{{ $now.Format "2006-01-02 15:04:05-07:00" | safeHTML }}</time>
|
|
by
|
|
<a href="https://github.com/gohugoio/hugo/tree/{{ .Site.Hugo.CommitHash }}">Hugo {{ .Site.Hugo.Version }}</a>
|
|
{{ $buildCtx }}.
|
|
</p>
|