summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_shared/build.py5
-rw-r--r--_shared/favicon.svg1
-rw-r--r--hooks/post-receive10
-rw-r--r--mail.gumx.cc/list/index.html2
4 files changed, 12 insertions, 6 deletions
diff --git a/_shared/build.py b/_shared/build.py
index fcf53d4..7d27f41 100644
--- a/_shared/build.py
+++ b/_shared/build.py
@@ -4,16 +4,13 @@ import json
import os
import sys
-FAVICON = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNDAiIGhlaWdodD0iMTQwIiBzdHJva2U9IiMwMDAiPjxwYXRoIHN0cm9rZS13aWR0aD0iMTIyIiBzdHJva2UtZGFzaGFycmF5PSIyLDM4IiBkPSJtOSw3MGgxMjJNNzAsOXYxMjIiLz48cGF0aCBzdHJva2Utd2lkdGg9IjMzIiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Im03MCwzMGgwbTQwLDQwaDBtLTgwLDQwdjBtNDAsMGgwbTQwLDBoMCIvPjwvc3ZnPg=="
-
-
def render(title, breadcrumb, style, extra_css, body, footer):
css = style + ("\n" + extra_css if extra_css.strip() else "")
return f"""<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
-<link rel="icon" type="image/svg+xml" href="{FAVICON}">
+<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>{title}</title>
<style>
diff --git a/_shared/favicon.svg b/_shared/favicon.svg
new file mode 100644
index 0000000..4f9ab68
--- /dev/null
+++ b/_shared/favicon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140" stroke="#000"><path stroke-width="122" stroke-dasharray="2,38" d="m9,70h122M70,9v122"/><path stroke-width="33" stroke-linecap="round" d="m70,30h0m40,40h0m-80,40v0m40,0h0m40,0h0"/></svg>
diff --git a/hooks/post-receive b/hooks/post-receive
index fe4f5f6..25ae829 100644
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -22,7 +22,14 @@ for SITE in irc.gumx.cc vpn.gumx.cc mail.gumx.cc pgp.gumx.cc wk.fo twt.gumx.cc f
;;
demo.gumx.cc)
# no-style-please/ is managed by zola-no-style-please repo; demos.json is a source file
- rsync -rlptD --delete --exclude='/fonts' --exclude='/no-style-please/' --exclude='/demos.json' "$SITE/" "$WEBROOT/"
+ # /ccc/ and /styles/ are managed by ccc repo hook — do not delete
+ rsync -rlptD --delete \
+ --exclude='/fonts' \
+ --exclude='/no-style-please/' \
+ --exclude='/demos.json' \
+ --exclude='/ccc/' \
+ --exclude='/styles/' \
+ "$SITE/" "$WEBROOT/"
;;
*)
rsync -rlptD --delete --exclude='/fonts' "$SITE/" "$WEBROOT/"
@@ -30,6 +37,7 @@ for SITE in irc.gumx.cc vpn.gumx.cc mail.gumx.cc pgp.gumx.cc wk.fo twt.gumx.cc f
esac
mkdir -p "$WEBROOT/fonts"
rsync -rlptD fonts/ "$WEBROOT/fonts/"
+ cp _shared/favicon.svg "$WEBROOT/favicon.svg"
cp _shared/404.html "$WEBROOT/404.html"
fi
done
diff --git a/mail.gumx.cc/list/index.html b/mail.gumx.cc/list/index.html
index 34bf568..65421d2 100644
--- a/mail.gumx.cc/list/index.html
+++ b/mail.gumx.cc/list/index.html
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
-<link rel="icon" type="image/svg+xml" href="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNDAiIGhlaWdodD0iMTQwIiBzdHJva2U9IiMwMDAiPjxwYXRoIHN0cm9rZS13aWR0aD0iMTIyIiBzdHJva2UtZGFzaGFycmF5PSIyLDM4IiBkPSJtOSw3MGgxMjJNNzAsOXYxMjIiLz48cGF0aCBzdHJva2Utd2lkdGg9IjMzIiBzdHJva2UtbGluZWNhcD0icm91bmQiIGQ9Im03MCwzMGgwbTQwLDQwaDBtLTgwLDQwdjBtNDAsMGgwbTQwLDBoMCIvPjwvc3ZnPg==">
+<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>mail.gumx.cc / list</title>
<style>