summaryrefslogtreecommitdiff
path: root/src/html
diff options
context:
space:
mode:
Diffstat (limited to 'src/html')
-rwxr-xr-xsrc/html26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/html b/src/html
index 4ddd02e..444e690 100755
--- a/src/html
+++ b/src/html
@@ -97,6 +97,22 @@ if [ -n "${author:-}" ]; then
fi
+publickey_html=
+if [ -n "${publickey:-}" ] && [ -n "${publickey_url:-}" ]; then
+ publickey_html="$(cat <<EOF
+ <li>
+ <picture>
+ <source srcset="$lockicon_url_prefix/dark.svg" media="(prefers-color-scheme: dark)" />
+ <img src="$lockicon_url_prefix/light.svg" class="icon" alt="An outlined icon of a lock" />
+ </picture>
+ <a href="$publickey_url">$publickey</a>
+ </li>
+EOF
+)"
+fi
+
+
+
headlinks() {
if [ -z "${header_links:-}" ]; then
return
@@ -165,7 +181,7 @@ body() {
footer() {
comments
- cat <<EOF
+ cat <<EOF | sed '/^$/d'
</article>
</main>
<footer>
@@ -178,13 +194,7 @@ footer() {
</picture>
<a href="mailto:$email">$email</a>
</li>
- <li>
- <picture>
- <source srcset="$lockicon_url_prefix/dark.svg" media="(prefers-color-scheme: dark)" />
- <img src="$lockicon_url_prefix/light.svg" class="icon" alt="An outlined icon of a lock" />
- </picture>
- <a href="$publickey_url">$publickey</a>
- </li>
+$publickey_html
</ul>
<p id="license">
The content for this site is licensed under