1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 12:52:10 +00:00

Meta: refine link to build environment

- Link to workstation info when building locally.
- More clearly link to build log when building in CI.
This commit is contained in:
Rohan Kumar 2024-03-25 01:55:00 -04:00
parent 2232766a09
commit 75db0fe0fa
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -1,12 +1,12 @@
{{- $now := now -}} {{- $now := now -}}
{{- $buildCtx := "on my workstation" -}} {{- $buildCtx := `on <a href="../about/uses/#hardware">my workstation</a>` -}}
{{- with getenv "JOB_URL" -}} {{- with getenv "JOB_URL" -}}
{{- $buildCtx = printf `<a href="%s">on builds.sr.ht</a>` . | safeHTML -}} {{- $buildCtx = printf `on builds.sr.ht. <a href="%s">See build log</a>` -}}
{{- end -}} {{- end -}}
<p> <p>
This site was last built on This site was last built on
<time datetime="{{ $now.UTC.Format "2006-01-02T15:04:05-07:00" | safeHTML }}">{{ $now.UTC.Format "2006-01-02 15:04:05-07:00" | safeHTML }}</time> <time datetime="{{ $now.UTC.Format "2006-01-02T15:04:05-07:00" | safeHTML }}">{{ $now.UTC.Format "2006-01-02 15:04:05-07:00" | safeHTML }}</time>
by by
<a href="https://github.com/gohugoio/hugo/tree/{{ .Site.Hugo.CommitHash }}">Hugo {{ .Site.Hugo.Version }}</a> <a href="https://github.com/gohugoio/hugo/tree/{{ .Site.Hugo.CommitHash }}">Hugo {{ .Site.Hugo.Version }}</a>
{{ $buildCtx }}. {{ $buildCtx | safeHTML}}.
</p> </p>