Initial import of Hugo site to Forgejo
This commit is contained in:
commit
cb1ba0317f
1259 changed files with 236349 additions and 0 deletions
9
layouts/shortcodes/sig.html.bak
Normal file
9
layouts/shortcodes/sig.html.bak
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{{- /* Usage: {{< sig >}} or {{< sig "name.asc" >}}. Reads from .Page.File.Dir */ -}}
|
||||
{{- $name := .Get 0 | default "signature.asc" -}}
|
||||
{{- $dir := .Page.File.Dir -}}
|
||||
{{- $sig := readFile (print $dir $name) | htmlEscape -}}
|
||||
<details class="signature">
|
||||
<summary>OpenPGP signature (.asc)</summary>
|
||||
<pre style="font-size:0.85em; overflow-x:auto; padding:0.75rem;">{{$sig}}</pre>
|
||||
</details>
|
||||
<p><em>Verify:</em> <code>gpg --verify {{ $name }} {{ .Page.File.Path }}</code></p>
|
||||
Loading…
Add table
Add a link
Reference in a new issue