mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +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:
parent
2232766a09
commit
75db0fe0fa
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue