diff --git a/.gitignore b/.gitignore
index f39d48f..df127fe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,3 @@
/.astro/
-/.env
-/.ssh/
/dist/
node_modules/
diff --git a/Makefile b/Makefile
index 992d47f..a06a06f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,8 @@
-revision := $(shell git rev-parse HEAD | head -c 8)
-fullRevision := $(shell git rev-parse HEAD)
-revcount := $(shell git rev-list --count HEAD)
-
-all: env build deploy
+all: build deploy
build:
- npm run build
-
-force-build:
npm run force-build
deploy:
- #rsync -vaAExh --delete dist/ aries:/www/hosted/bashelton.com/public_html/sundays/
- rsync -e "ssh -i .ssh/deploy_ecdsa" -vaAExh --delete dist/ justus@aries:/www/hosted/itsjustus.faith/public_html/
-
-env:
- echo "REVISION='$(revision)'" > .env
- echo "FULL_REVISION='$(fullRevision)'" >> .env
- echo "REV_COUNT='$(revcount)'" >> .env
+ rsync -vaAExh --delete dist/ aries:/www/hosted/bashelton.com/public_html/sundays/
diff --git a/astro.config.mjs b/astro.config.mjs
index 0c54eb0..d1d9d90 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -1,5 +1,5 @@
// @ts-check
-import { defineConfig, envField } from 'astro/config';
+import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import tailwindcss from "@tailwindcss/vite";
import remarkToc from 'remark-toc';
@@ -8,13 +8,12 @@ import { ScriptureLinks } from './src/utils/rehype';
import icon from 'astro-icon';
-import sitemap from "@astrojs/sitemap";
-
// https://astro.build/config
export default defineConfig({
+ base: "/sundays",
trailingSlash: "always",
- site: "https://itsjustus.faith",
- integrations: [mdx(), icon(), sitemap()],
+ site: "https://bashelton.com",
+ integrations: [mdx(), icon()],
markdown: {
processor: unified({
remarkPlugins: [remarkToc],
@@ -28,11 +27,4 @@ export default defineConfig({
host: true,
port: 8080,
},
- env: {
- schema: {
- REVISION: envField.string({context: "server", access: "public", optional: true, default: "DEV"}),
- FULL_REVISION: envField.string({context: "server", access: "public", optional: true, default: "DEV"}),
- REV_COUNT: envField.number({context: "server", access: "public", optional: true, default: 0})
- }
- }
});
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index 7f152f5..8add3ed 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,16 +10,10 @@
"dependencies": {
"@astrojs/markdown-remark": "^7.3.5",
"@astrojs/mdx": "^8.1.2",
- "@astrojs/rss": "^4.0.20",
- "@astrojs/sitemap": "^3.7.7",
- "@fontsource/atkinson-hyperlegible": "^5.3.0",
- "@fontsource/lexend": "^5.3.0",
- "@fontsource/opendyslexic": "^5.3.0",
"@tailwindcss/vite": "^4.3.0",
"astro": "^7.4.5",
"astro-icon": "^1.1.5",
"remark-toc": "^9.0.0",
- "sanitize-html": "^2.18.2",
"tailwindcss": "^4.3.0"
},
"engines": {
@@ -358,27 +352,6 @@
"node": ">=22.23.4"
}
},
- "node_modules/@astrojs/rss": {
- "version": "4.0.20",
- "resolved": "https://registry.npmjs.org/@astrojs/rss/-/rss-4.0.20.tgz",
- "integrity": "sha512-sCVmRCW0JabcHFx0K7KI/FTik9RRDpJUimOtJgW1YC0A6sHCIk572PcUkadVlm50IRtu8zWSvZ8ik/4rvilyEg==",
- "license": "MIT",
- "dependencies": {
- "fast-xml-parser": "^5.12.1",
- "piccolore": "^0.1.3",
- "zod": "^4.6.7"
- }
- },
- "node_modules/@astrojs/sitemap": {
- "version": "3.7.7",
- "resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.7.7.tgz",
- "integrity": "sha512-77P0VjOBTMG1wi0IfpauhoC6R05EBgPtST6V/5SBeml+UrZyn1Lip49exxIvmKSGtA+YNkmipjsezdb46fdpfQ==",
- "license": "MIT",
- "dependencies": {
- "sitemap": "^10.0.0",
- "zod": "^4.6.7"
- }
- },
"node_modules/@astrojs/telemetry": {
"version": "3.4.2",
"resolved": "https://registry.npmjs.org/@astrojs/telemetry/-/telemetry-3.4.2.tgz",
@@ -676,33 +649,6 @@
"tslib": "^2.4.0"
}
},
- "node_modules/@fontsource/atkinson-hyperlegible": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/@fontsource/atkinson-hyperlegible/-/atkinson-hyperlegible-5.3.0.tgz",
- "integrity": "sha512-Sp8Ve8+rQmENY2Lv02VH7sLpntzTTvnncnJMTbRE7DX6TLxGraN4ykZfzaUWIoCFmaomwkvNiqmlPkrKBuDoSA==",
- "license": "OFL-1.1",
- "funding": {
- "url": "https://github.com/sponsors/ayuhito"
- }
- },
- "node_modules/@fontsource/lexend": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/@fontsource/lexend/-/lexend-5.3.0.tgz",
- "integrity": "sha512-4igbsooynC6xwfagkAW6eo9JMrw8ALFGkWn1YChYmYchufMJSPgWihD+cy5ruX5YX/gDk/gllcl1Oj7q6KUZmw==",
- "license": "OFL-1.1",
- "funding": {
- "url": "https://github.com/sponsors/ayuhito"
- }
- },
- "node_modules/@fontsource/opendyslexic": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/@fontsource/opendyslexic/-/opendyslexic-5.3.0.tgz",
- "integrity": "sha512-BVYIW/ghc1U2iAghhYTN+GFWiZ3lnCy8Jf2KkZC23aHQHBNcMqKT718zckfqVxRx4qsXJmIMPWvczirRuhmtsg==",
- "license": "OFL-1.1",
- "funding": {
- "url": "https://github.com/sponsors/ayuhito"
- }
- },
"node_modules/@iconify/tools": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/@iconify/tools/-/tools-4.2.0.tgz",
@@ -1459,18 +1405,6 @@
"@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.4"
}
},
- "node_modules/@nodable/entities": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-3.1.0.tgz",
- "integrity": "sha512-LsS/DjHr+uDM647Gru/cA8+J3a3HfhttwCKLyuoyN7yXTFCxKBtSgMQBvrW9yNPa2/zDRUNuGPaH5QUFoa4arQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/nodable"
- }
- ],
- "license": "MIT"
- },
"node_modules/@oslojs/encoding": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@oslojs/encoding/-/encoding-1.1.0.tgz",
@@ -2197,19 +2131,11 @@
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.2.0.tgz",
"integrity": "sha512-5IviulTZeRNp2vAJ514cc/HUlY5nZ9fCbq9DMyC52BrhFZACo3nI0R7qBxhQmo/d27NFe96ur/b7Wwxklda+kg==",
"license": "MIT",
+ "optional": true,
"dependencies": {
"undici-types": "~8.3.0"
}
},
- "node_modules/@types/sax": {
- "version": "1.2.7",
- "resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.7.tgz",
- "integrity": "sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==",
- "license": "MIT",
- "dependencies": {
- "@types/node": "*"
- }
- },
"node_modules/@types/ungap__structured-clone": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@types/ungap__structured-clone/-/ungap__structured-clone-1.2.0.tgz",
@@ -2296,18 +2222,6 @@
"url": "https://github.com/sponsors/jonschlinkert"
}
},
- "node_modules/anynum": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/anynum/-/anynum-1.0.1.tgz",
- "integrity": "sha512-N6//FLET/tXYNM/F6ABca1oH6fWB+KlTt909Le28WMDBk8oaT4vY17DCrwg2MvmuqUKt3Ni4N5dGJ/EoBgcO6A==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/NaturalIntelligence"
- }
- ],
- "license": "MIT"
- },
"node_modules/aria-query": {
"version": "5.3.2",
"resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz",
@@ -2759,12 +2673,6 @@
"integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==",
"license": "CC0-1.0"
},
- "node_modules/dayjs": {
- "version": "1.11.23",
- "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.23.tgz",
- "integrity": "sha512-QDTCU0M0MxR3hQfnlDJfwekQiaanm1ubOD231u73WBckQ/fsamwRLiE2GBz6D3a/xF1NgfiDLJjXBa1hYOYTtQ==",
- "license": "MIT"
- },
"node_modules/debug": {
"version": "4.4.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
@@ -3182,45 +3090,6 @@
"fast-string-width": "^3.0.2"
}
},
- "node_modules/fast-xml-builder": {
- "version": "1.3.2",
- "resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.3.2.tgz",
- "integrity": "sha512-OX91VSlShLPDgRZV7tk/YQ4l8tT75QziF5Ixg8g4PFbCVPjuTWwN+yQfAxLJ0dufJpprdOd6HlM74Jhd39TcBQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/NaturalIntelligence"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "path-expression-matcher": "^1.6.2",
- "xml-naming": "^0.3.0"
- }
- },
- "node_modules/fast-xml-parser": {
- "version": "5.12.1",
- "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.12.1.tgz",
- "integrity": "sha512-wR8dO/fx+z8C5exuem1e7BKOWvjsuzvjS/tvA/Xu3Z1zQqJGcXrPzXbcAiaMgp2KjreEROcTkmnnisrcmJ2hYQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/NaturalIntelligence"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "@nodable/entities": "^3.1.0",
- "fast-xml-builder": "^1.3.2",
- "is-unsafe": "^2.0.3",
- "path-expression-matcher": "^1.6.2",
- "strnum": "^2.5.1",
- "xml-naming": "^0.3.0"
- },
- "bin": {
- "fxparser": "src/cli/cli.js"
- }
- },
"node_modules/fd-slicer": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
@@ -3751,27 +3620,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/is-plain-object": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.1.0.tgz",
- "integrity": "sha512-bUi/yjmtKYcRVUtWRGr0UA6xEFh2I6zWUwMrUXB3s7bmYCaZ8a+0ZsTRkrawh/mzlSD1Y0Ph8bp/U+TvBpWDNw==",
- "license": "MIT",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/is-unsafe": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/is-unsafe/-/is-unsafe-2.0.3.tgz",
- "integrity": "sha512-ZBllczCCO267vgdFb6Tq3pv+LhHaCiGMdr+ZsuL+OopruAg7S+3ZDs1vD0RPC0uSrkjzbraxaGjtX1YBxjPeFQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/NaturalIntelligence"
- }
- ],
- "license": "MIT"
- },
"node_modules/jiti": {
"version": "2.7.0",
"resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",
@@ -3793,15 +3641,6 @@
"integrity": "sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==",
"license": "MIT"
},
- "node_modules/launder": {
- "version": "1.7.2",
- "resolved": "https://registry.npmjs.org/launder/-/launder-1.7.2.tgz",
- "integrity": "sha512-DLg3HPnHUfBi5/MxMLmJD12dmlMpFEC2HgMW6vkZ/9JR0RU00kXoRGvDxAvFmdO0o610OA77i4FgNTLucmhDVg==",
- "license": "MIT",
- "dependencies": {
- "dayjs": "^1.11.23"
- }
- },
"node_modules/lightningcss": {
"version": "1.32.0",
"resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",
@@ -5488,12 +5327,6 @@
"url": "https://github.com/sponsors/wooorm"
}
},
- "node_modules/parse-srcset": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/parse-srcset/-/parse-srcset-1.0.2.tgz",
- "integrity": "sha512-/2qh0lav6CmI15FzA3i/2Bzk2zCgQhGMkvhOhKNcBVQ1ldgpbfiNTVslmooUmWJcADi1f1kIeynbDRVzNlfR6Q==",
- "license": "MIT"
- },
"node_modules/parse5": {
"version": "7.3.0",
"resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",
@@ -5531,21 +5364,6 @@
"url": "https://github.com/inikulin/parse5?sponsor=1"
}
},
- "node_modules/path-expression-matcher": {
- "version": "1.6.2",
- "resolved": "https://registry.npmjs.org/path-expression-matcher/-/path-expression-matcher-1.6.2.tgz",
- "integrity": "sha512-enSlaiat05iasnzmgNxRj8reFdj3puY2QpNgP1aPIaVfT6nn9ICuPoFlKHk8EN22HcwewshO+mN2DGbkCEOtqQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/NaturalIntelligence"
- }
- ],
- "license": "MIT",
- "engines": {
- "node": ">=14.0.0"
- }
- },
"node_modules/pathe": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
@@ -6048,148 +5866,6 @@
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
"license": "MIT"
},
- "node_modules/sanitize-html": {
- "version": "2.18.2",
- "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-2.18.2.tgz",
- "integrity": "sha512-LTQVNHBeKB5qIae9x2J2Fw68ORnES++8vzYaG7DFT8P4GVCJFeHffHnRUzf5Mrxfx+4GweIvMRqkBPHHodaVNg==",
- "license": "MIT",
- "dependencies": {
- "escape-string-regexp": "^4.0.0",
- "htmlparser2": "^12.0.0",
- "is-plain-object": "^5.1.0",
- "launder": "^1.7.2",
- "parse-srcset": "^1.0.2",
- "postcss": "^8.5.27"
- },
- "engines": {
- "node": ">=22.12.0"
- }
- },
- "node_modules/sanitize-html/node_modules/dom-serializer": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-3.2.0.tgz",
- "integrity": "sha512-qSwy2wBIDAEcElArdIvo2TIarfWJuyKrtmNFPQ43l3ADeEdvXxTcmjFKb+Xw+1ryolATMQLCsecVnypTnFeHKg==",
- "license": "MIT",
- "dependencies": {
- "domelementtype": "^3.0.0",
- "domhandler": "^6.0.0",
- "entities": "^9.0.0"
- },
- "engines": {
- "node": ">=20.19.0"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
- }
- },
- "node_modules/sanitize-html/node_modules/dom-serializer/node_modules/entities": {
- "version": "9.0.0",
- "resolved": "https://registry.npmjs.org/entities/-/entities-9.0.0.tgz",
- "integrity": "sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==",
- "license": "BSD-2-Clause",
- "engines": {
- "node": ">=20.19.0"
- },
- "funding": {
- "url": "https://github.com/fb55/entities?sponsor=1"
- }
- },
- "node_modules/sanitize-html/node_modules/domelementtype": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-3.0.0.tgz",
- "integrity": "sha512-umCQid3jKbDmVjx8jGaW7uUykm4DEUeyV21hPxNMo2nV955DhUThwqyOIDtreepP31hl84X7G5U9ZfsWvIB3Pg==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/fb55"
- }
- ],
- "license": "BSD-2-Clause",
- "engines": {
- "node": ">=20.19.0"
- }
- },
- "node_modules/sanitize-html/node_modules/domhandler": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-6.0.1.tgz",
- "integrity": "sha512-gYzvtM72ZtxQO0T048kd6HWSbbGCNOUwcnfQ01cqIJ4X2IYKFFHZ5mKvrQETcFXxsRObZulDaKmy//R7TPtsBg==",
- "license": "BSD-2-Clause",
- "dependencies": {
- "domelementtype": "^3.0.0"
- },
- "engines": {
- "node": ">=20.19.0"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/fb55/domhandler?sponsor=1"
- }
- },
- "node_modules/sanitize-html/node_modules/domutils": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/domutils/-/domutils-4.1.2.tgz",
- "integrity": "sha512-oSgrKh9KaGyxAsJSThQksmgAExC1H+pns6jiR63KYshmOIO96L5mt77RwcjsVT9SyRH/AyjLOVqORK49HQ+XAg==",
- "license": "BSD-2-Clause",
- "dependencies": {
- "dom-serializer": "^3.2.0",
- "domelementtype": "^3.0.0",
- "domhandler": "^6.0.0"
- },
- "engines": {
- "node": ">=20.19.0"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/fb55/domutils?sponsor=1"
- }
- },
- "node_modules/sanitize-html/node_modules/entities": {
- "version": "8.1.0",
- "resolved": "https://registry.npmjs.org/entities/-/entities-8.1.0.tgz",
- "integrity": "sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==",
- "license": "BSD-2-Clause",
- "engines": {
- "node": ">=20.19.0"
- },
- "funding": {
- "url": "https://github.com/fb55/entities?sponsor=1"
- }
- },
- "node_modules/sanitize-html/node_modules/escape-string-regexp": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
- "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
- "license": "MIT",
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/sanitize-html/node_modules/htmlparser2": {
- "version": "12.0.0",
- "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-12.0.0.tgz",
- "integrity": "sha512-Tz7u1i95/g2x2jz81+x0FBVhBhY5aRTvD3tXXdFaljuNdzDLJ8UGNRrTcj2cgQvAg3iW/h77Fz15nLW0L0CrZw==",
- "funding": [
- "https://github.com/fb55/htmlparser2?sponsor=1",
- {
- "type": "github",
- "url": "https://github.com/sponsors/fb55"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "domelementtype": "^3.0.0",
- "domhandler": "^6.0.0",
- "domutils": "^4.0.2",
- "entities": "^8.0.0"
- },
- "engines": {
- "node": ">=20.19.0"
- }
- },
"node_modules/satteri": {
"version": "0.10.5",
"resolved": "https://registry.npmjs.org/satteri/-/satteri-0.10.5.tgz",
@@ -6310,24 +5986,6 @@
"integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==",
"license": "MIT"
},
- "node_modules/sitemap": {
- "version": "10.0.0",
- "resolved": "https://registry.npmjs.org/sitemap/-/sitemap-10.0.0.tgz",
- "integrity": "sha512-KSjl4H4KBEnGX5KXgzInPAycdOFhwLar0EmksDcYn6NqW2O+zLiMGeV2THE6tpuv3LCVdv+6xsSo2SWLGaBDKw==",
- "license": "MIT",
- "dependencies": {
- "@types/node": "^22.0.0 || ^24.0.0 || ^26.0.0",
- "@types/sax": "^1.2.1",
- "sax": "^1.4.1"
- },
- "bin": {
- "sitemap": "dist/cli.js"
- },
- "engines": {
- "node": ">=22.22.1",
- "npm": ">=10.8.2"
- }
- },
"node_modules/smol-toml": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.9.1.tgz",
@@ -6388,21 +6046,6 @@
"url": "https://github.com/sponsors/wooorm"
}
},
- "node_modules/strnum": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/strnum/-/strnum-2.5.1.tgz",
- "integrity": "sha512-UM4nTLWzQiDBseVxUGxN0wJzIk0UU89Qi7pKXz9qISo+lhviJikTuikBsK/oFRlpvYHvSdz0TVoLyQ+sEpYwxA==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/NaturalIntelligence"
- }
- ],
- "license": "MIT",
- "dependencies": {
- "anynum": "^1.0.1"
- }
- },
"node_modules/style-to-js": {
"version": "1.1.21",
"resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.21.tgz",
@@ -6613,7 +6256,8 @@
"version": "8.3.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz",
"integrity": "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==",
- "license": "MIT"
+ "license": "MIT",
+ "optional": true
},
"node_modules/unified": {
"version": "11.0.5",
@@ -7336,21 +6980,6 @@
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
"license": "ISC"
},
- "node_modules/xml-naming": {
- "version": "0.3.1",
- "resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.3.1.tgz",
- "integrity": "sha512-EJ9yNAfjrIz2z7chbVlj4CD3HkPxXNPD6U6LzhKEfIFlRmEHtl7CN6C0qdPGL4hplTuj2wePPgIZN8aklE/2Og==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/NaturalIntelligence"
- }
- ],
- "license": "MIT",
- "engines": {
- "node": ">=16.0.0"
- }
- },
"node_modules/xxhash-wasm": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-1.1.0.tgz",
diff --git a/package.json b/package.json
index 130595b..8489cea 100644
--- a/package.json
+++ b/package.json
@@ -15,16 +15,10 @@
"dependencies": {
"@astrojs/markdown-remark": "^7.3.5",
"@astrojs/mdx": "^8.1.2",
- "@astrojs/rss": "^4.0.20",
- "@astrojs/sitemap": "^3.7.7",
- "@fontsource/atkinson-hyperlegible": "^5.3.0",
- "@fontsource/lexend": "^5.3.0",
- "@fontsource/opendyslexic": "^5.3.0",
"@tailwindcss/vite": "^4.3.0",
"astro": "^7.4.5",
"astro-icon": "^1.1.5",
"remark-toc": "^9.0.0",
- "sanitize-html": "^2.18.2",
"tailwindcss": "^4.3.0"
}
}
diff --git a/public/images/headers/jesus-cradling-the-lost-sheep-source.jpg b/public/images/headers/jesus-cradling-the-lost-sheep-source.jpg
deleted file mode 100644
index 0ff1803..0000000
Binary files a/public/images/headers/jesus-cradling-the-lost-sheep-source.jpg and /dev/null differ
diff --git a/public/images/headers/jesus-cradling-the-lost-sheep.jpg b/public/images/headers/jesus-cradling-the-lost-sheep.jpg
deleted file mode 100644
index ef5f75c..0000000
Binary files a/public/images/headers/jesus-cradling-the-lost-sheep.jpg and /dev/null differ
diff --git a/public/resources/js/main.js b/public/resources/js/main.js
new file mode 100644
index 0000000..72c0838
--- /dev/null
+++ b/public/resources/js/main.js
@@ -0,0 +1,4 @@
+
+// Import local modules
+import '@modules/mobile-nav'
+import '@modules/lazyload'
diff --git a/public/resources/js/modules/lazyload/index.js b/public/resources/js/modules/lazyload/index.js
new file mode 100644
index 0000000..7d72b99
--- /dev/null
+++ b/public/resources/js/modules/lazyload/index.js
@@ -0,0 +1,55 @@
+import $$ from '@utilities/selectors'
+import { exists } from '@utilities/helpers'
+
+const Lazyload = function Lazyload()
+{
+
+ // lazyload our images
+ const images = $$.wrapper.querySelectorAll('[data-src]')
+
+ if ( exists(images) )
+ {
+
+ // options
+ const options = {
+ threshold: 0.5
+ }
+
+ const preloadImage = (img) => {
+
+ // find and store the image's data-load attribute
+ const src = img.dataset.src
+
+ img.src = src
+
+ // add a class of loaded
+ // we can then use this as a hook for fade-in animations etc
+ img.classList.add('loaded')
+ img.removeAttribute('data-src')
+
+ }
+
+ const lazyLoad = new IntersectionObserver((entries, lazyLoad) => {
+
+ entries.forEach(entry => {
+
+ if (entry.isIntersecting) {
+
+ preloadImage(entry.target)
+ lazyLoad.unobserve(entry.target)
+
+ }
+
+ })
+
+ }, options)
+
+ images.forEach(image => {
+ lazyLoad.observe(image)
+ })
+
+ }
+
+}()
+
+export default Lazyload
diff --git a/public/resources/js/modules/mobile-nav/index.js b/public/resources/js/modules/mobile-nav/index.js
new file mode 100644
index 0000000..17268ce
--- /dev/null
+++ b/public/resources/js/modules/mobile-nav/index.js
@@ -0,0 +1,27 @@
+import $$ from '@utilities/selectors'
+
+const MobileNav = function MobileNav()
+{
+
+ $$.mobileNavToggle.addEventListener('click', function() {
+
+ this.classList.toggle('expanded')
+ $$.mobileNav.classList.toggle('menu-visible')
+
+ // set aria-expanded attribute on menu toggle button
+ if ( this.getAttribute('aria-expanded') === 'false' )
+ {
+
+ this.setAttribute('aria-expanded', 'true')
+
+ } else {
+
+ this.setAttribute('aria-expanded', 'false')
+
+ }
+
+ })
+
+}()
+
+export default MobileNav
diff --git a/public/resources/js/utilities/helpers/index.js b/public/resources/js/utilities/helpers/index.js
new file mode 100644
index 0000000..8755de9
--- /dev/null
+++ b/public/resources/js/utilities/helpers/index.js
@@ -0,0 +1,39 @@
+import $$ from '@utilities/selectors'
+
+/**
+ * @description Test if the body id is something
+ * @param {string}
+ * @return {bool}
+ *
+ */
+
+const page = function(name) {
+
+ if (!name) {
+ return $$.body.getAttribute('id')
+ }
+
+ return ($$.body.getAttribute('id') == name)
+
+}
+
+
+/**
+ * @description Check if element exists the page
+ * @param {string} Element selector
+ * @param {string} Minimum number of elements
+ * @return {bool}
+ */
+
+const exists = function(el, limit) {
+
+ return (el.length > 0)
+
+}
+
+export {
+ page,
+ exists
+}
+
+
diff --git a/public/resources/js/utilities/selectors/index.js b/public/resources/js/utilities/selectors/index.js
new file mode 100644
index 0000000..d074a9c
--- /dev/null
+++ b/public/resources/js/utilities/selectors/index.js
@@ -0,0 +1,30 @@
+
+const $$ = {
+
+ body : document.querySelector('body'),
+
+ wrapper : document.getElementById('wrapper'),
+
+ header : document.getElementById('header'),
+
+ nav : document.getElementById('nav'),
+
+ hero : document.getElementById('hero'),
+
+ main : document.getElementById('main'),
+
+ containerCentre : document.getElementById('container-centre'),
+
+ containerRight : document.getElementById('container-right'),
+
+ preFooter : document.getElementById('pre-footer'),
+
+ footer : document.getElementById('footer'),
+
+ mobileNav : document.getElementById('mobile-nav'),
+
+ mobileNavToggle : document.getElementById('mobile-nav-toggle')
+
+}
+
+export default $$
diff --git a/src/icons/circle-half.svg b/src/assets/circle-half.svg
similarity index 100%
rename from src/icons/circle-half.svg
rename to src/assets/circle-half.svg
diff --git a/src/components/Footer.astro b/src/components/Footer.astro
index ad4136b..c4ed05c 100644
--- a/src/components/Footer.astro
+++ b/src/components/Footer.astro
@@ -1,15 +1,12 @@
---
import "../styles/global.css";
import Icon from '../assets/circle-half.svg';
-
-const rev = import.meta.env.REVISION;
-const revURL = `https://code.destrealm.net/justus/notes/src/commit/${import.meta.env.FULL_REVISION}`;
-const revCount = import.meta.env.REV_COUNT;
---
\ No newline at end of file
diff --git a/src/components/Header.astro b/src/components/Header.astro
index 7f45fbb..8a062ae 100644
--- a/src/components/Header.astro
+++ b/src/components/Header.astro
@@ -1,60 +1,6 @@
---
import "../styles/global.css";
-import Menu from './Menu.astro';
-
-import { Icon } from 'astro-icon/components';
-
-import { urlfrag } from '../utils/path';
const base = import.meta.env.BASE_URL;
---
-
- Just Us Notes
-
-