From bf0440828f57e2e3582909c9216d78e0378f04c4 Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Sun, 15 Jun 2025 14:00:33 -0400 Subject: [PATCH] Updates --- about/index.html | 2 +- books/index.html | 2 +- feed.xml | 197 ++++++++--------- index.html | 2 +- music/index.html | 2 +- now/index.html | 2 +- .../authority-consents-blind-spot/index.html | 2 +- posts/embracing-mysticism/index.html | 2 +- posts/finally-a-coherent-worldview/index.html | 2 +- posts/index.html | 2 +- posts/my-very-own-github-pages/index.html | 199 +++++++++--------- posts/needs-based-communication/index.html | 2 +- posts/site-design-updated/index.html | 2 +- .../index.html | 2 +- posts/thinking-machines/index.html | 2 +- posts/tools-of-the-trade/index.html | 2 +- recipes/amish-egg-noodles/index.html | 2 +- recipes/corn-casserole/index.html | 2 +- recipes/creamy-chicken-orzo/index.html | 2 +- recipes/index.html | 2 +- recipes/luther-salad/index.html | 2 +- recipes/pasta-rosatella/index.html | 2 +- recipes/perfect-homemade-brownies/index.html | 2 +- recipes/sloppy-joes/index.html | 2 +- recipes/spanish-style-rice/index.html | 2 +- search/index.html | 2 +- site.css | 138 +++++++++++- sitemap.xml | 4 +- unoffice-hours/index.html | 2 +- uses/index.html | 2 +- 30 files changed, 365 insertions(+), 225 deletions(-) diff --git a/about/index.html b/about/index.html index d32e0ef..44a4702 100644 --- a/about/index.html +++ b/about/index.html @@ -6,7 +6,7 @@ name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" /> - + - + - + - + - + - + - + - + - + - +

In my home directory I defined two hook scripts:

~/webhooks/update-pages.sh

-

-#!/bin/bash
-# parameter 1 is repo name, parameter 2 is clone url
-[[ "$1" == *"/"* ]] && exit 1;
-[[ "$1" == *".."* ]] && exit 1;
-[[ "$1" == *"*"* ]] && exit 1;
-if [ -d "/var/www/$1" ]; then
-	git clone -b gh-pages --single-branch "$2" "$1" || exit 1;
-	exit;
-fi;
-cd "/var/www/$1";
-git fetch origin gh-pages;
-git reset --hard origin/gh-pages;
-exit;
+      
#!/bin/bash
+# parameter 1 is repo name, parameter 2 is clone url
+[[ "$1" == *"/"* ]] && exit 1;
+[[ "$1" == *".."* ]] && exit 1;
+[[ "$1" == *"*"* ]] && exit 1;
+if [ -d "/var/www/$1" ]; then
+	git clone -b gh-pages --single-branch "$2" "$1" || exit 1;
+	exit;
+fi;
+cd "/var/www/$1";
+git fetch origin gh-pages;
+git reset --hard origin/gh-pages;
+exit;
 

~/webhooks/remove-pages.sh

-
#!/bin/bash
-# parameter 1 is repo name
-[[ "$1" == *"/"* ]] && exit 1;
-[[ "$1" == *".."* ]] && exit 1;
-[[ "$1" == *"*"* ]] && exit 1;
-[ -d "/var/www/$1" ] || exit 1;
-cd "/var/www";
-rm -rf "/var/www/$1";
+      
#!/bin/bash
+# parameter 1 is repo name
+[[ "$1" == *"/"* ]] && exit 1;
+[[ "$1" == *".."* ]] && exit 1;
+[[ "$1" == *"*"* ]] && exit 1;
+[ -d "/var/www/$1" ] || exit 1;
+cd "/var/www";
+rm -rf "/var/www/$1";
 

To trigger these hooks I am using webhook which is in the @@ -270,80 +273,82 @@ rm -rf "/var/www/$1"; referencing your username and script paths.

/etc/webhook.conf

-
[
-	{
-		"id": "update-pages",
-		"execute-command": "su joshua /home/joshua/webhooks/update-pages.sh",
-		"command-working-directory": "/var/www",
-		"pass-arguments-to-command":
-		[
-			{
-				"source": "payload",
-				"name": "repository.name"
-			},
-		],
-		"trigger-rule":
-		{
-			"and":
-			[
-				{
-					"match":
-					{
-						"type": "payload-hmac-sha256",
-						"secret": "(omitted)",
-						"parameter":
-						{
-							"source": "header",
-							"name": "X-Forgejo-Signature"
-						}
-					}
-				},
-				{
-					"match":
-					{
-						"type": "value",
-						"value": "refs/heads/gh-pages",
-						"parameter":
-						{
-							"source": "payload",
-							"name": "ref"
-						}
-					}
-				}
-			]
-		}
-	},
-	{
-		"id": "remove-pages",
-		"execute-command": "su joshua /home/joshua/webhooks/remove-pages.sh",
-		"command-working-directory": "/var/www",
-		"pass-arguments-to-command":
-		[
-			{
-				"source": "payload",
-				"name": "repository.name"
-			},
-		],
-		"trigger-rule":
-		{
-			"and":
-			[
-				{
-					"match":
-					{
-						"type": "payload-hmac-sha256",
-						"secret": "(omitted)",
-						"parameter":
-						{
-							"source": "header",
-							"name": "X-Forgejo-Signature"
-						}
-					}
-				}
-			]
-		}
-	}
-]
+      
[
+	{
+		"id": "update-pages",
+		"execute-command": "su joshua /home/joshua/webhooks/update-pages.sh",
+		"command-working-directory": "/var/www",
+		"pass-arguments-to-command":
+		[
+			{
+				"source": "payload",
+				"name": "repository.name"
+			},
+		],
+		"trigger-rule":
+		{
+			"and":
+			[
+				{
+					"match":
+					{
+						"type": "payload-hmac-sha256",
+						"secret": "(omitted)",
+						"parameter":
+						{
+							"source": "header",
+							"name": "X-Forgejo-Signature"
+						}
+					}
+				},
+				{
+					"match":
+					{
+						"type": "value",
+						"value": "refs/heads/gh-pages",
+						"parameter":
+						{
+							"source": "payload",
+							"name": "ref"
+						}
+					}
+				}
+			]
+		}
+	},
+	{
+		"id": "remove-pages",
+		"execute-command": "su joshua /home/joshua/webhooks/remove-pages.sh",
+		"command-working-directory": "/var/www",
+		"pass-arguments-to-command":
+		[
+			{
+				"source": "payload",
+				"name": "repository.name"
+			},
+		],
+		"trigger-rule":
+		{
+			"and":
+			[
+				{
+					"match":
+					{
+						"type": "payload-hmac-sha256",
+						"secret": "(omitted)",
+						"parameter":
+						{
+							"source": "header",
+							"name": "X-Forgejo-Signature"
+						}
+					}
+				}
+			]
+		}
+	}
+]
 

Forgejo diff --git a/posts/needs-based-communication/index.html b/posts/needs-based-communication/index.html index 578428c..8bb7515 100644 --- a/posts/needs-based-communication/index.html +++ b/posts/needs-based-communication/index.html @@ -6,7 +6,7 @@ name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" /> - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + code { - display: inline-block; +p > code, +pre { font-family: "Commit Mono", monospace; background-color: var(--c-text-background-light); padding: 0.1em; - margin: -0.1em; border-radius: 0.5em; } +p > code { + margin: -0.1em; + display: inline-block; +} body #isso-thread { margin-top: 4rem; @@ -601,7 +604,8 @@ body .isso-input-wrapper label { body .isso-input-wrapper input, input[type="text"], body .isso-textarea, -body .isso-preview { +body .isso-preview, +pre { color: inherit; font-size: 1rem; background-color: transparent; @@ -718,3 +722,129 @@ body .isso-post-action { .pagefind-ui__result-excerpt { margin: 0.5rem 0; } + +/** + * GHColors theme by Avi Aryan (http://aviaryan.in) + * Inspired by Github syntax coloring + */ + +code[class*="language-"], +pre[class*="language-"] { + color: #393a34; + direction: ltr; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + font-size: 0.9em; + line-height: 1.2em; + + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; +} + +pre > code[class*="language-"] { + font-size: 1em; +} + +pre[class*="language-"]::-moz-selection, +pre[class*="language-"] ::-moz-selection, +code[class*="language-"]::-moz-selection, +code[class*="language-"] ::-moz-selection { + background: #b3d4fc; +} + +pre[class*="language-"]::selection, +pre[class*="language-"] ::selection, +code[class*="language-"]::selection, +code[class*="language-"] ::selection { + background: #b3d4fc; +} + +/* Code blocks */ +pre[class*="language-"] { + padding: 1em; + margin: 0.5em 0; + overflow: auto; + border: 1px solid #dddddd; + background-color: white; +} + +/* Inline code */ +:not(pre) > code[class*="language-"] { + padding: 0.2em; + padding-top: 1px; + padding-bottom: 1px; + background: #f8f8f8; + border: 1px solid #dddddd; +} + +.token.comment, +.token.prolog, +.token.doctype, +.token.cdata { + color: #999988; + font-style: italic; +} + +.token.namespace { + opacity: 0.7; +} + +.token.string, +.token.attr-value { + color: #e3116c; +} + +.token.punctuation, +.token.operator { + color: #393a34; /* no highlight */ +} + +.token.entity, +.token.url, +.token.symbol, +.token.number, +.token.boolean, +.token.variable, +.token.constant, +.token.property, +.token.regex, +.token.inserted { + color: #36acaa; +} + +.token.atrule, +.token.keyword, +.token.attr-name, +.language-autohotkey .token.selector { + color: #00a4db; +} + +.token.function, +.token.deleted, +.language-autohotkey .token.tag { + color: #9a050f; +} + +.token.tag, +.token.selector, +.language-autohotkey .token.keyword { + color: #00009f; +} + +.token.important, +.token.function, +.token.bold { + font-weight: bold; +} + +.token.italic { + font-style: italic; +} diff --git a/sitemap.xml b/sitemap.xml index 45960bb..a60dbb2 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -176,7 +176,7 @@ - /site.css?v=b0813e810319 + /site.css?v=122d2bbcc39b 2025-06-06T04:44:47.546Z @@ -228,7 +228,7 @@ /feed.xml - 2025-06-15T17:26:28.478Z + 2025-06-15T18:00:31.327Z diff --git a/unoffice-hours/index.html b/unoffice-hours/index.html index 78bc714..289a700 100644 --- a/unoffice-hours/index.html +++ b/unoffice-hours/index.html @@ -6,7 +6,7 @@ name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" /> - + - +