mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
Compare commits
2 commits
add67b2e0c
...
9ae8d87908
Author | SHA1 | Date | |
---|---|---|---|
|
9ae8d87908 | ||
|
76a18c2541 |
5 changed files with 20 additions and 1 deletions
|
@ -124,6 +124,10 @@ disableKinds = ["taxonomy", "term"]
|
||||||
about = ["HTML", "atom", "RSS"]
|
about = ["HTML", "atom", "RSS"]
|
||||||
meta = ["HTML", "atom", "RSS"]
|
meta = ["HTML", "atom", "RSS"]
|
||||||
|
|
||||||
|
[security]
|
||||||
|
[security.funcs]
|
||||||
|
getenv = ['^JOB_URL$']
|
||||||
|
|
||||||
# https://github.com/nekr0z/static-webmentions
|
# https://github.com/nekr0z/static-webmentions
|
||||||
[webmentions]
|
[webmentions]
|
||||||
newDir = "public"
|
newDir = "public"
|
||||||
|
|
|
@ -5,6 +5,8 @@ outputs:
|
||||||
- html
|
- html
|
||||||
description: "About this site. How it's built, why it's built that way, privacy, accessibility, mirrors, etc."
|
description: "About this site. How it's built, why it's built that way, privacy, accessibility, mirrors, etc."
|
||||||
---
|
---
|
||||||
|
{{<build-info>}}
|
||||||
|
|
||||||
How I run this site
|
How I run this site
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,7 @@
|
||||||
<admin:errorReportsTo rdf:resource="mailto:{{ .Site.Author.email }}" />
|
<admin:errorReportsTo rdf:resource="mailto:{{ .Site.Author.email }}" />
|
||||||
<link rel="license" type="application/rdf+xml" href="https://creativecommons.org/licenses/by-sa/4.0/rdf" />
|
<link rel="license" type="application/rdf+xml" href="https://creativecommons.org/licenses/by-sa/4.0/rdf" />
|
||||||
<updated>{{ now.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
<updated>{{ now.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||||
|
<generator uri="https://gohugo.io/" version="{{ .Site.Hugo.Version }}">Hugo {{ .Site.Hugo.Version }}</generator>
|
||||||
<id>{{ .Permalink }}</id>
|
<id>{{ .Permalink }}</id>
|
||||||
{{ range $pages -}}
|
{{ range $pages -}}
|
||||||
{{- if not .Params.Private -}}
|
{{- if not .Params.Private -}}
|
||||||
|
|
12
layouts/shortcodes/build-info.html
Normal file
12
layouts/shortcodes/build-info.html
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{{- $now := now -}}
|
||||||
|
{{- $buildCtx := "on my workstation" -}}
|
||||||
|
{{- with getenv "JOB_URL" -}}
|
||||||
|
{{- $buildCtx = printf `<a href="%s">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>
|
|
@ -49,7 +49,7 @@ trap check_cached_webmentions EXIT
|
||||||
# Grab my long-lived key (password). We will use this to authenticate.
|
# Grab my long-lived key (password). We will use this to authenticate.
|
||||||
key() {
|
key() {
|
||||||
set +u
|
set +u
|
||||||
if [ -n "$BUILD_SUBMITTER" ]; then
|
if [ -n "$JOB_URL" ]; then
|
||||||
cat ~/.webmentiond-key
|
cat ~/.webmentiond-key
|
||||||
else
|
else
|
||||||
pash show webmentiond-ci-key
|
pash show webmentiond-ci-key
|
||||||
|
|
Loading…
Reference in a new issue