Compare commits

..
Author SHA1 Message Date
0d978c6589
Publish notes. 2026-12-05 22:40:31 -07:00
aeb7cd5d00
Updated tomorrow's notes. 2026-12-05 22:34:18 -07:00
b85b284a7a
Fix favicons. 2026-12-05 22:33:53 -07:00
ed003faed5
Show unpublished articles only if development mode is not enabled. 2026-12-05 22:16:29 -07:00
2ece6a8f59
Edits. 2026-12-05 22:14:02 -07:00
4e87a649ac
Fix title ref. 2026-12-05 17:06:24 -07:00
1a46b6e693
Fix meta values from site migration. 2026-12-05 17:06:03 -07:00
8a416e9d1d
Added placeholder notes for tomorrow. 2026-12-05 16:46:17 -07:00
e5da7e6491
Added robots.txt and rss.xml generation. 2026-12-05 16:45:50 -07:00
296b0bde79
Added RSS and sitemap support.
Presently this is pulling down the wrong favicon.
2026-12-05 16:45:26 -07:00
754c6da52f
Borrow <a> styles for <span> in footer. 2026-12-05 16:45:12 -07:00
706fe886b6
Change anchor tags to <span> 2026-12-05 16:44:50 -07:00
1391568fd5
Update domain. 2026-12-05 13:57:16 -07:00
dc2d609981
Change deploy location and account. 2026-12-05 13:56:55 -07:00
f5c3d17220
Ignore deploy keys. 2026-12-05 13:56:38 -07:00
ff6e27809e
Missing icon. 2026-12-05 13:35:56 -07:00
bcb108220f
Truncate verses. 2026-12-03 23:15:52 -07:00
8af24718b3
Separate build/force-build in Makefile. 2026-12-03 22:08:31 -07:00
2bbac3f313
Change upstream repo URL. 2026-12-03 22:07:54 -07:00
1176986fcb
Style possible icons for scripture on index pages. 2026-12-03 21:44:43 -07:00
b34caf5c9a
Tweak selection on high contrast themes. 2026-12-03 21:44:20 -07:00
40e1c4e45e
Style index and note page scripture.
Close button on accessibility settings is ignoring styling.
2026-12-03 20:22:31 -07:00
b08bfdc779
Expand schema. 2026-12-03 20:22:10 -07:00
50bb6dc93a
Rename sub_heading -> subtitle and add scripture as separate field. 2026-12-03 20:21:51 -07:00
1d0f25a3b4
Rename sub_heading -> subtitle. 2026-12-03 20:21:14 -07:00
8a9d3eb772
Move close button inside <form> 2026-12-03 20:21:00 -07:00
3cf46c58cc
Rework the entirety of all notes' metadata. 2026-12-03 20:19:54 -07:00
26a43e64cd
Move mouse over arrow indicator to all styles. 2026-12-03 15:12:22 -07:00
22067e5d47
Hide header when clicking on a footnote. 2026-12-03 14:07:33 -07:00
71b8e3576c
Content dates to 2025. 2026-12-02 19:09:54 -07:00
e491abcd0e
Pagination buttons changed; truncate "previous" 2026-12-02 19:08:57 -07:00
22d58259d4
Remove icon. 2026-12-02 19:08:45 -07:00
18dbbc3774
Move button SVG into the icon store. 2026-12-02 19:08:27 -07:00
0664067bd6
Move dark/light/system theme button into header menu. 2026-12-02 19:07:43 -07:00
3ba519cf17
Remove last vestiges of Eleventy. 2026-12-02 18:31:23 -07:00
7da90092ad
Add sticky header + autohide. 2026-12-02 18:25:32 -07:00
4d8f83a63c
Fix FOUC. Again. 2026-11-29 19:27:16 -07:00
54f3c40e7d
Styles fixes for high-contrast mode. 2026-11-29 18:07:44 -07:00
6edaf54349
Move high contrast CSS into its own file.
Tweaked dialog for HC mode.
2026-11-29 15:43:31 -07:00
78b9b005cd
Minor edits. 2026-11-29 15:32:05 -07:00
2b62c37f85
Move tailwind classes into global.css. 2026-11-29 15:31:42 -07:00
8616080b26
Style tweaks, mostly for high contrast mode. 2026-11-29 15:31:22 -07:00
1e315e09d1
Final edits and additions for tonight. 2026-11-28 21:51:56 -07:00
b9dc716c08
WIP. 2026-11-28 19:26:48 -07:00
f1006f626e
Edits/updates. 2026-11-28 18:15:29 -07:00
b0a8eda3d7
Edits. 2026-11-28 16:16:33 -07:00
f2898ac338
Added notes and header image(s) for tomorrow. 2026-11-28 15:33:31 -07:00
f532b3577e
Remove text-decoration from SOURCES. 2026-11-28 14:22:45 -07:00
f3c42f9014
Fix FOUC. 2026-11-28 09:44:28 -07:00
3ca011568d
Fixed dark mode in high contrast. 2026-11-27 23:29:46 -07:00
41e0f6c204
WIP high contrast dark mode.
I can't seem to find where I'm removing the "dark" class, however.
2026-11-27 23:27:53 -07:00
90c2c38f4e
High contrast mode tweaks (including index). 2026-11-27 22:57:36 -07:00
40ace895d4
Card style tweaks. Removed underlines, mostly. 2026-11-27 22:46:52 -07:00
82d3518443
Restore dark mode if selected. 2026-11-27 18:42:15 -07:00
4a4f1f0cc0
Move theme to a separate file. 2026-11-27 17:42:43 -07:00
7de41b6892
Fixed high contrast selection status. 2026-11-26 20:19:19 -07:00
c78d20d241
Added study-notes class to content pages.
This needs to be renamed to make its purpose more clear or the actual
mechanism for applying accessibility styles should be revisited.
2026-11-26 16:26:21 -07:00
0e7b5a195b
Added TOC. 2026-11-26 16:22:15 -07:00
0d72a03529
Link "By Book" and "By Date." 2026-11-26 16:20:28 -07:00
2b5dc42687
Added notes-by-book and notes-by-date pages. 2026-11-26 16:20:14 -07:00
7a0fd74615
Revised revision data. 2026-11-26 16:13:01 -07:00
0b05878666
Added high-contrast mode, close button, dyslexia tweaks. 2026-11-26 16:09:58 -07:00
dbf0683b22
Dyslexia style changes, mostly to text underlines but also to
<blockquote> and other substitute formatting.
2026-11-26 15:10:59 -07:00
cac50fde38
Cleanup revision printout. 2026-11-25 23:03:38 -07:00
ccb4e2bce7
Ignore dotenv. 2026-11-25 23:02:04 -07:00
57c67a3590
Ignore dark mode and set dyslexia-friendly mode. 2026-11-25 23:01:18 -07:00
6cdb7d4c0b
Added dyslexia mode support. 2026-11-25 23:01:08 -07:00
ba53ea0a6d
Updated copyrights to include BSB and fixes. 2026-11-25 23:00:55 -07:00
2691699c93
Style input[type=radio] to appear as buttons. 2026-11-25 23:00:42 -07:00
92ab19830c
Rework inputs. 2026-11-25 23:00:25 -07:00
0c64899d77
Added revcount. 2026-11-25 23:00:12 -07:00
9de60cc7b0
Add revcount. 2026-11-25 22:59:39 -07:00
28982b1f81
Using after: utility classes to expand <a> to fill entire card.
This was a suggestion adapted from Gemini.
2026-11-25 21:21:37 -07:00
7c4476306e
Icon positioning tweak. 2026-11-25 19:47:33 -07:00
ee2c813ee9
Wrap entire card in <a> to make clickable.
I'm going to revert this and use an ::after pseudo-element to expand the
click target, but I need a point to which I can revert my changes.
2026-11-25 19:46:36 -07:00
c66f77d53f
Update copyrights and license notice(s). 2026-11-25 18:28:53 -07:00
d2bb47ef43
Tweak menu styles; added components.css. 2026-11-25 17:18:40 -07:00
5e7c2dec43
Added icons. 2026-11-25 17:18:30 -07:00
630ce62fa3
Added components CSS container. Only used for icons at present.
Other components will be moved here.
2026-11-25 17:17:58 -07:00
3641fb2623
Added copyright icon. 2026-11-25 17:17:38 -07:00
a89877a7aa
Added icons. 2026-11-25 16:50:39 -07:00
678c79533e
Moved book -> book-fill. 2026-11-25 16:50:06 -07:00
322503d101
Don't hide "MENU" title when menu is active. 2026-11-25 15:07:38 -07:00
27e7785240
Added credits for CSS menu. 2026-11-25 15:07:23 -07:00
f4e92c65bf
Added bindMenu to remove menu on external click. 2026-11-25 15:07:06 -07:00
96c2634fdc
Bind scripts for both config and menu dismissal. 2026-11-25 15:06:53 -07:00
23061c2114
Move light/dark/system to top of footer stack and include revision. 2026-11-25 15:06:36 -07:00
8ef6f08a4d
Parse .env for revision data. 2026-11-25 15:06:26 -07:00
b002cbbb29
Added revision generation (appends to .env). 2026-11-25 15:06:02 -07:00
024c946998
Nav menu tweaks, added icon styling for accessibility. 2026-11-24 19:33:43 -07:00
5cf4e467fe
Updated menu. 2026-11-24 19:33:10 -07:00
9831033dde
Added icon for (future) quick enable/disable of accessibility options. 2026-11-24 19:32:44 -07:00
f04a35bbd5
Added icon. 2026-11-24 19:32:21 -07:00
c9497b16a6
Update dialog styles, move script. 2026-11-24 15:17:14 -07:00
26a730c149
Moved configuration dialog scripts to its own file. 2026-11-24 15:16:54 -07:00
d58af9e138
Merge branch 'master' into menu 2026-11-24 14:33:30 -07:00
4e22cf0bd1
Clarification, simplify section header. 2026-11-24 14:33:13 -07:00
9a4b0b298d
Typo. 2026-11-24 14:33:07 -07:00
cee80a8093
Move menu items into Menu.astro. 2026-11-24 14:30:44 -07:00
243fab09f7
Moved menu items to their own file. 2026-11-24 14:30:31 -07:00
94de73c1a5
Rework theme manager.
This is eventually going to handle themes and accessibility visuals.

The bare theme script has  been removed as this doesn't do anything to
mitigate the FUOC.
2026-11-24 14:29:42 -07:00
33d5328055
Style tweaks. 2026-11-23 21:56:42 -07:00
6022da1eff
Dyslexia-friendly tweaks. 2026-11-23 19:48:25 -07:00
736ec076bb
Fix <blockquote> (from master). 2026-11-23 16:21:44 -07:00
780015e200
Added licenses. 2026-11-23 16:21:27 -07:00
14e7eab636
Add OpenDyslexic font face. 2026-11-23 14:43:00 -07:00
393f3ecee3
Gemini: Fix flex layout, replacing with grid. 2026-11-23 14:42:32 -07:00
edd29b47cc
Merge branch 'master' into menu 2026-11-23 10:55:08 -07:00
cbfae8263a
Edits. 2026-11-22 13:45:03 -07:00
111e56ecce
Edits, wrong Matthew. 2026-11-21 19:11:31 -07:00
11fd0461d0
Edits. 2026-11-21 19:05:41 -07:00
f90ab1c519
Edits. 2026-11-21 18:34:09 -07:00
3e5b4f27db
Fix blockquote rendering.
Styles really ought to be cleaned up and refactored. The selectors are
getting ridiculously complex and can be reduced.
2026-11-21 17:15:15 -07:00
8605e6225f
Added header images for tomorrow and (partial) notes. 2026-11-21 15:19:49 -07:00
0513794ecf
"Study" notes now have the same coloration as devotionals. 2026-11-21 15:19:35 -07:00
695c43f908
Matthew 8 will not be covered in this lesson. 2026-11-21 15:19:09 -07:00
e5a91acf3b
Fixed long-standing TypeScript warning. 2026-11-20 15:30:36 -07:00
be53e75d8b
Edits. 2026-11-15 15:11:32 -07:00
846d2aa1f1
Updates. Probably requires significant edits given the typos I've found. 2026-11-14 21:39:45 -07:00
356c9c303c
Adding placeholder for today's notes. 2026-11-14 15:37:44 -07:00
5b0cf97bb1
Added header images, including a few for when we cover Matthew 26. 2026-11-08 15:38:41 -07:00
3a687dd242
Edits. 2026-11-08 15:36:34 -07:00
3bd6eaaba6
Flag source/footnote. 2026-11-07 21:36:31 -07:00
02bb8b9a52
Quotation swap. 2026-11-07 21:35:41 -07:00
776007bf93
Minor edits. 2026-11-07 21:34:17 -07:00
4d236d4154
Added notes. Currently unedited. 2026-11-07 21:12:31 -07:00
208294b4d8
Added placeholder for Sunday. 2026-11-06 09:36:54 -07:00
37150dcc24
Renamed day. Omitted leading zero. Will require redirection on server. 2026-11-05 18:48:45 -07:00
4cede3c849
Updated dependencies. 2026-11-02 14:47:01 -07:00
3924e858b2
Fixed typo. 2026-11-02 14:46:46 -07:00
529f550e4a
Edits. 2026-11-01 18:02:22 -07:00
502f7a62e1
Added notes from this evening. Needs editing. 2026-10-31 22:55:08 -06:00
1d2e0be5f6
Added header images. 2026-10-29 21:33:56 -06:00
e6d487b77a
Updates (images). 2026-10-29 21:33:41 -06:00
42ca842cf0
Added placeholder. 2026-10-29 20:51:16 -06:00
45e0e1233e
Added header images. 2026-10-25 22:02:38 -06:00
404aedc1ce
Updates. 2026-10-25 22:02:21 -06:00
77e528b208
Updated with notes from last night. 2026-10-25 15:11:46 -06:00
63e776e43f
Added notes outline/skeleton for tomorrow. 2026-10-24 15:03:07 -06:00
5b05883e4a
Mostly final edits. 2026-10-18 19:15:05 -06:00
c7ad28d869
Edits. 2026-10-18 18:51:15 -06:00
2fb0c0a183
Edits. Again. 2026-10-17 22:35:02 -06:00
56dc7b1e18
Edits. 2026-10-17 22:29:14 -06:00
111d3b3fdd
Edits. 2026-10-17 21:04:26 -06:00
2a92a956c6
Added notes for tomorrow. 2026-10-17 15:44:16 -06:00
569b4260fe
Final edits. 2026-10-11 14:58:11 -06:00
361269bf1b
Edits. 2026-10-11 00:14:58 -06:00
cc04ef6ca3
Partial rewrite and substantial editing. More required.
I'm not overly happy with the core direction of this, as I think it's
too wordy and maybe a bit more "fluffy" than I would otherwise care for,
but I think it's more or less covering all the bases I want.

It does still need significant editing.
2026-10-10 22:01:20 -06:00
aac448e23e
Adding devotional sources for tomorrow. 2026-10-10 15:44:25 -06:00
62ea45f69c
Upgraded Astrojs. 2026-10-04 20:57:38 -06:00
bbc99ba207
Obvious typo. 2026-10-04 16:20:00 -06:00
9824adfa8f
Edits. 2026-10-04 15:09:22 -06:00
86a5e0229a
Adding notes and header images for today. 2026-10-04 14:35:26 -06:00
10e2be58c9
Final edits for tonight.
Mostly cleanup and formatting.
2026-09-27 20:17:45 -06:00
88a61b936f
Updates. 2026-09-27 20:06:25 -06:00
5b224d8c37
Committing WIP long-form notes. 2026-09-27 19:06:17 -06:00
bc913bbb79
Linke scripture and sources. 2026-09-27 15:30:17 -06:00
d772cdda89
Preliminary notes for today.
Long-form notes have not yet been written.
2026-09-27 15:25:46 -06:00
43db48ef0e
Updated today's notes. 2026-09-20 15:27:09 -06:00
bbf3afe610
Added header images for today. 2026-09-20 15:26:56 -06:00
3ad3d38951
Added direct link to Chabad in the lesson body rather than *just* the
sources.
2026-09-13 17:30:24 -06:00
952ab549f0
Forgot to include the table of contents. 2026-09-13 17:28:00 -06:00
c046c94f55
Edits. 2026-09-13 17:15:33 -06:00
5e6e549722
Added notes for today and preliminary notes for the 20th. 2026-09-13 17:13:11 -06:00
2260b933dc
Fixed metadata for Telegram display. 2026-09-07 15:25:52 -06:00
9c571a755e
Updated metadata. 2026-09-07 10:39:29 -06:00
19bc591fcc
Edits. 2026-09-06 14:33:01 -06:00
e7863e4756
Added notes for today. Needs further editing. 2026-09-06 13:48:11 -06:00
b6f6845235
Merge branch 'master' into menu 2026-08-20 17:20:09 -06:00
8adc11c46f
Merge branch 'master' into menu 2026-08-07 14:46:02 -06:00
870f57b8e1
Merge branch 'master' into menu 2026-08-07 14:02:05 -06:00
3928c51fd6
Merge remote-tracking branch 'refs/remotes/origin/menu' into menu 2026-08-07 13:58:44 -06:00
fcd973a0b6
Merge branch 'master' into menu 2026-07-29 17:14:07 -06:00
5e12164ccf
Merge branch 'master' into menu 2026-07-18 13:04:14 -06:00
bd2dd39be5
Merge branch 'master' into menu 2026-07-15 19:51:42 -06:00
54111bf6c2
Updated z-index.
Thumbnails were appearing above the menu.
2026-07-09 21:11:16 -06:00
0fa1e16d02
Merge branch 'license-remove' into menu 2026-07-09 21:10:08 -06:00
a8050c9aa7
Updated styles for generic content pages. 2026-07-09 19:34:12 -06:00
e3e663658a
Updated styles and IDs. 2026-07-09 19:33:59 -06:00
c0cdce2948
Added event listener for dismissing menu when document clicks are
received *outside* the menu body.
2026-07-09 19:33:30 -06:00
26fc37808f
Added copyright notices link. 2026-07-09 19:33:16 -06:00
bfd03d3e99
Added copyrights + markdown content page. 2026-07-09 19:32:44 -06:00
6100cf338d
Fix cursor and text display for mobile. 2026-07-09 15:42:51 -06:00
1c6f8e5d87
Added menu styles and layout. 2026-07-09 15:39:55 -06:00
136 changed files with 4833 additions and 1622 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
/.astro/
/.env
/.ssh/
/dist/
node_modules/

View file

@ -1,8 +1,21 @@
all: build deploy
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
build:
npm run build
force-build:
npm run force-build
deploy:
rsync -vaAExh --delete dist/ aries:/www/hosted/bashelton.com/public_html/sundays/
#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

View file

@ -1,5 +1,5 @@
// @ts-check
import { defineConfig } from 'astro/config';
import { defineConfig, envField } from 'astro/config';
import mdx from '@astrojs/mdx';
import tailwindcss from "@tailwindcss/vite";
import remarkToc from 'remark-toc';
@ -8,12 +8,13 @@ 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://bashelton.com",
integrations: [mdx(), icon()],
site: "https://itsjustus.faith",
integrations: [mdx(), icon(), sitemap()],
markdown: {
processor: unified({
remarkPlugins: [remarkToc],
@ -27,4 +28,11 @@ 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})
}
}
});

2183
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -13,11 +13,18 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^7.0.5",
"@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.2.0",
"astro": "^7.4.5",
"astro-icon": "^1.1.5",
"remark-toc": "^9.0.0",
"sanitize-html": "^2.18.2",
"tailwindcss": "^4.3.0"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 655 B

After

Width:  |  Height:  |  Size: 88 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 497 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 563 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 927 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 511 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 KiB

View file

@ -1,4 +0,0 @@
// Import local modules
import '@modules/mobile-nav'
import '@modules/lazyload'

View file

@ -1,55 +0,0 @@
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

View file

@ -1,27 +0,0 @@
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

View file

@ -1,39 +0,0 @@
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
}

View file

@ -1,30 +0,0 @@
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 $$

View file

@ -1,12 +1,15 @@
---
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;
---
<footer>
<ul>
<li>&copy; 2026 <a href="https://bashelton.com/">Benjamin A. Shelton</a></li>
<li>&copy; 2025, 2026 <a href="https://bashelton.com/">Benjamin A. Shelton</a></li>
<li>Some rights reserved.</li>
<li>Revised § <a href="https://git.destrealm.net/zancarius/sundays">August 2026</a></li>
<li><button data-toggle-theme><Icon /></button></li>
<li>Revision <a href={revURL}>r{revCount} (sha1:{rev})</a></li>
</ul>
</footer>

View file

@ -1,6 +1,60 @@
---
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;
---
<header><a href={base}><b>Just Us</b> Notes</a></header>
<header id="header">
<div class="justify-self-start">
<Menu />
</div>
<h1 class="text-center">
<a href={base}><b>Just Us</b> Notes</a>
</h1>
<div class="justify-self-end flex items-center gap-2">
<a id="af-toggle" class="hidden">
<Icon name="eye" desc="Disable Accessibility Options" />
</a>
</div>
</header>
<script>
const header = document.getElementById('header');
const DWELL_TIME = 1500;
let lastpos = window.scrollY;
let hideTimeout: NodeJS.Timeout;
let hideScroll = false;
function onScroll() {
const currentpos = window.scrollY;
clearTimeout(hideTimeout);
if (hideScroll) {
header?.classList.add('-translate-y-full');
hideScroll = false;
return;
}
if (currentpos <= 100 || currentpos < lastpos) {
header?.classList.remove('-translate-y-full');
console.log("<", currentpos, lastpos);
} else if (currentpos > lastpos) {
header?.classList.remove('-translate-y-full');
hideTimeout = setTimeout(() => {
//if (window.scrollY > 100) {
header?.classList.add('-translate-y-full');
//}
}, DWELL_TIME);
}
lastpos = currentpos;
}
document.querySelectorAll('sup > a').forEach((el) => {
el.addEventListener('click', () => {
hideScroll = true;
}, {passive: true});
});
header?.addEventListener('mouseenter', () => clearTimeout(hideTimeout));
header?.addEventListener('focusin', () => clearTimeout(hideTimeout));
window.addEventListener('scroll', onScroll, {passive: true});
</script>

59
src/components/Menu.astro Normal file
View file

@ -0,0 +1,59 @@
---
import { urlfrag } from '../utils/path';
import { Icon } from 'astro-icon/components';
const base = import.meta.env.BASE_URL;
---
<nav class="flex">
<div id="nav-menu">
<input type="checkbox" id="menu-toggle">
<label for="menu-toggle" id="menu">
<div id="hamburger">
<span class="slice"></span>
<span class="slice"></span>
<span class="slice"></span>
</div>
<span class="label-text">Menu</span>
<ul id="menu-items">
<li><a href={urlfrag(base, '')}><span class="icon"><Icon name="house-door-fill" /></span> Home</a></li>
<li><a href="#" data-click="config"><span class="icon"><Icon name="universal-access" /></span> Accessibility and Fonts</a></li>
<!--<li><span class="heading">Notes</span>
<ul>
<li><a href={urlfrag(base, '/notes/by/book/')}><span class="icon"><Icon name="book" /></span> By Book</a></li>
<li><a href={urlfrag(base, '/notes/by/date/')}><span class="icon"><Icon name="calendar2-check-fill" /></span> By Date</a></li>
</ul>
</li>-->
<li><a href={urlfrag(base, 'copyrights/')}><span class="icon"><Icon name="c-circle" /></span> Copyright Notices</a></li>
<li><button data-toggle-theme><Icon name="circle-half" /></button></li>
</ul>
</label>
</div>
</nav>
<dialog class="config">
<div class="content">
<h1>Accessibility and Fonts</h1>
<form name="accessibility">
<fieldset>
<legend>Visual Accessibility</legend>
<input type="radio" class="button" name="mode" value="none" id="af-none" checked>
<label for="af-none" class="button">None</label>
<input type="radio" class="button" name="mode" value="dyslexia" id="af-dyslexia">
<label for="af-dyslexia" class="button">Dyslexia</label>
<input type="radio" class="button" name="mode" value="hc" id="af-hc">
<label for="af-hc" class="button">High Contrast</label>
</fieldset>
<div class="text-right">
<button class="close">Close</button></div>
</form>
</div>
</dialog>
<script>
import { bindConfig, bindMenu } from '../utils/config.js';
bindConfig();
bindMenu();
</script>

View file

@ -1,8 +1,14 @@
---
const { title, image } = Astro.props;
---
<meta property="author" content="Benjamin A. Shelton" />
<meta property="description" content="Just Us Class Notes and Resources" />
<meta property="robots" content="noindex, nofollow" />
{title && <meta property="og:title" content={title} />}
{image && <meta property="og:image" content=`https://bashelton.com${image}` />}
{!title && <meta property="og:title" content="It's Just Us: Class Notes and Resources" />}
{image && <meta property="og:image" content=`https://itsjustus.faith${image}` />}
<meta property="og:description" content="Just Us Class Notes and Resources" />
<meta property="og:url" content="https://bashelton.com/sundays" />
<meta property="og:url" content="https://itsjustus.faith/" />
<meta property="og:site_name" content="It's Just Us" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_US" />

View file

@ -19,6 +19,7 @@ const scriptureStyles: {[index: string]:string} = {
prophets: 'prophets',
revelation: 'revelation',
devotional: 'devotional',
study: 'study',
};
const getScriptureStyle = (cat: any): string => {
if (cat in scriptureStyles) {
@ -43,8 +44,9 @@ const { notes } = Astro.props;
<div id="notes-list">
<ul>{notes.map((note: CollectionEntry<'notes'>) => (
<li>
<li class="flex">
<div class="header-image">
{note.data.scripture ? <aside>{note.data.scripture}</aside> : '' }
<img src={urlfrag(base, note.data.post_image)} class="rounded-md" />
</div>
<div class="flex">
@ -59,10 +61,8 @@ const { notes } = Astro.props;
</ul>
</div>
<hgroup>
<h2>
<a href={new URL(`${base}notes/${note.id}/`, Astro.url).pathname}>{note.data.title}</a>
</h2>
<h3>{note.data.sub_heading}</h3>
<h2><a href={new URL(`${base}notes/${note.id}/`, Astro.url).pathname}>{note.data.title}</a></h2>
<h3>{note.data.subtitle}</h3>
</hgroup>
<time>{dateFormat(note.data.date)}</time>
</li>

View file

@ -6,9 +6,11 @@ const notes = defineCollection({
loader: glob({base: './src/notes', pattern: '**/*.{md,mdx}'}),
schema: z.object({
title: z.string(),
subtitle: z.string().optional(),
date: z.string().transform((s) => {
return new Date(`${s}T00:00:00-0700`);
}),
scripture: z.string().optional(),
meta_description: z.string().optional(),
sub_heading: z.string().optional(),
scripture_category: z.string().default('gospels'),

16
src/icons/bible.svg Normal file
View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg fill="#000000" height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 512.001 512.001" xml:space="preserve">
<g>
<g>
<path d="M456.348,0H139.13v378.435h-33.391V0C68.913,0,38.957,29.956,38.957,66.783v378.435c0,36.826,29.956,66.783,66.783,66.783
h350.609c9.217,0,16.696-7.473,16.696-16.696V16.696C473.043,7.473,465.565,0,456.348,0z M240.418,133.565h33.391v-33.391
c0-9.22,7.475-16.696,16.696-16.696h33.391c9.22,0,16.696,7.475,16.696,16.696v33.391h33.391c9.22,0,16.696,7.475,16.696,16.696
v33.391c0,9.22-7.475,16.696-16.696,16.696h-33.391v111.304c0,9.22-7.475,16.696-16.696,16.696h-33.391
c-9.22,0-16.696-7.475-16.696-16.696V200.348h-33.391c-9.22,0-16.696-7.475-16.696-16.696v-33.391h0
C223.721,141.041,231.197,133.565,240.418,133.565z M105.739,478.609c-18.413,0-33.391-14.978-33.391-33.391
c0-18.413,14.978-33.391,33.391-33.391h333.913v66.782H105.739z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

3
src/icons/book-fill.svg Normal file
View file

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-book" viewBox="0 0 16 16">
<path d="M1 2.828c.885-.37 2.154-.769 3.388-.893 1.33-.134 2.458.063 3.112.752v9.746c-.935-.53-2.12-.603-3.213-.493-1.18.12-2.37.461-3.287.811zm7.5-.141c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783"/>
</svg>

After

Width:  |  Height:  |  Size: 770 B

3
src/icons/c-circle.svg Normal file
View file

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-c-circle" viewBox="0 0 16 16">
<path d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8.146 4.992c-1.212 0-1.927.92-1.927 2.502v1.06c0 1.571.703 2.462 1.927 2.462.979 0 1.641-.586 1.729-1.418h1.295v.093c-.1 1.448-1.354 2.467-3.03 2.467-2.091 0-3.269-1.336-3.269-3.603V7.482c0-2.261 1.201-3.638 3.27-3.638 1.681 0 2.935 1.054 3.029 2.572v.088H9.875c-.088-.879-.768-1.512-1.729-1.512"/>
</svg>

After

Width:  |  Height:  |  Size: 512 B

View file

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-calendar2-check-fill" viewBox="0 0 16 16">
<path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5m9.954 3H2.545c-.3 0-.545.224-.545.5v1c0 .276.244.5.545.5h10.91c.3 0 .545-.224.545-.5v-1c0-.276-.244-.5-.546-.5m-2.6 5.854a.5.5 0 0 0-.708-.708L7.5 10.793 6.354 9.646a.5.5 0 1 0-.708.708l1.5 1.5a.5.5 0 0 0 .708 0z"/>
</svg>

After

Width:  |  Height:  |  Size: 507 B

View file

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/>
</svg>

After

Width:  |  Height:  |  Size: 290 B

3
src/icons/chevron-up.svg Normal file
View file

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-up" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708z"/>
</svg>

After

Width:  |  Height:  |  Size: 268 B

View file

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 205 B

Before After
Before After

4
src/icons/eye.svg Normal file
View file

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-fill" viewBox="0 0 16 16">
<path d="M10.5 8a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0"/>
<path d="M0 8s3-5.5 8-5.5S16 8 16 8s-3 5.5-8 5.5S0 8 0 8m8 3.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7"/>
</svg>

After

Width:  |  Height:  |  Size: 295 B

3
src/icons/fonts.svg Normal file
View file

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-fonts" viewBox="0 0 16 16">
<path d="M12.258 3h-8.51l-.083 2.46h.479c.26-1.544.758-1.783 2.693-1.845l.424-.013v7.827c0 .663-.144.82-1.3.923v.52h4.082v-.52c-1.162-.103-1.306-.26-1.306-.923V3.602l.431.013c1.934.062 2.434.301 2.693 1.846h.479z"/>
</svg>

After

Width:  |  Height:  |  Size: 349 B

View file

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-house-door-fill" viewBox="0 0 16 16">
<path d="M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5"/>
</svg>

After

Width:  |  Height:  |  Size: 421 B

3
src/icons/key-fill.svg Normal file
View file

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-key-fill" viewBox="0 0 16 16">
<path d="M3.5 11.5a3.5 3.5 0 1 1 3.163-5H14L15.5 8 14 9.5l-1-1-1 1-1-1-1 1-1-1-1 1H6.663a3.5 3.5 0 0 1-3.163 2M2.5 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2"/>
</svg>

After

Width:  |  Height:  |  Size: 284 B

View file

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-ui-checks-grid" viewBox="0 0 16 16">
<path d="M2 10h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1m9-9h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1m0 9a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1zm0-10a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM2 9a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2zm7 2a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2zM0 2a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm5.354.854a.5.5 0 1 0-.708-.708L3 3.793l-.646-.647a.5.5 0 1 0-.708.708l1 1a.5.5 0 0 0 .708 0z"/>
</svg>

After

Width:  |  Height:  |  Size: 726 B

3
src/icons/ui-radios.svg Normal file
View file

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-ui-radios" viewBox="0 0 16 16">
<path d="M7 2.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5zM0 12a3 3 0 1 1 6 0 3 3 0 0 1-6 0m7-1.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5zm0-5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0 8a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5M3 1a3 3 0 1 0 0 6 3 3 0 0 0 0-6m0 4.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"/>
</svg>

After

Width:  |  Height:  |  Size: 533 B

View file

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-universal-access" viewBox="0 0 16 16">
<path d="M9.5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M6 5.5l-4.535-.442A.531.531 0 0 1 1.531 4H14.47a.531.531 0 0 1 .066 1.058L10 5.5V9l.452 6.42a.535.535 0 0 1-1.053.174L8.243 9.97c-.064-.252-.422-.252-.486 0l-1.156 5.624a.535.535 0 0 1-1.053-.174L6 9z"/>
</svg>

After

Width:  |  Height:  |  Size: 401 B

13
src/layouts/Content.astro Normal file
View file

@ -0,0 +1,13 @@
---
import Layout from '../layouts/Layout.astro';
const base = import.meta.env.BASE_URL;
---
<Layout>
<article class="content study-notes">
<div class="content-body">
<slot />
</div>
</article>
</Layout>

View file

@ -13,122 +13,45 @@ const base = import.meta.env.BASE_URL;
<!doctype html>
<html lang="en">
<head>
<script is:inline>
function th() {
var cl = document.documentElement.classList;
af_enabled = 'af_enabled' in localStorage && localStorage.af_enabled === '1' ? true : false;
af_mode = 'af_mode' in localStorage ? localStorage.af_mode : '';
theme = 'theme' in localStorage ? localStorage.theme : '';
if (theme === '' || theme === 'system') {
theme = window.matchMedia('(prefers-color-scheme: dark)') ? 'dark' : 'light';
}
if (af_enabled) {
switch (af_mode) {
case 'df':
cl.add('df');
return;
case 'hc':
cl.add('hc');
break;
}
}
if (theme === 'dark') {
cl.add('dark');
}
}
th();
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#28303c" />
<Meta title={title} image={image} />
<link rel="icon" type="image/svg+xml" href={urlfrag(base, 'favicon.svg')} />
<link rel="icon" href={urlfrag(base, 'favicon.png')} />
<link rel="alternate" type="application/rss+xml" title="It's Just Us" href="/rss.xml" />
<title>{title}</title>
<script is:inline>
function hasLocalStorage() {
try {
var ls = localStorage;
var key = "__test";
ls.setItem(key, key);
ls.removeItem(key);
return true;
} catch (e) {
return (
e instanceof DOMException &&
e.name === "QuotaExceededError" &&
localStorage &&
localStorage.length !== 0
);
}
}
var theme = 'light';
if (hasLocalStorage()) {
theme = (('theme' in localStorage) && localStorage.theme !== 'undefined') ? localStorage.theme : 'light';
}
switch (theme) {
case 'light':
document.documentElement.classList.remove('dark');
break
case 'dark':
document.documentElement.classList.toggle('dark', true);
break
default:
if (matchMedia('(prefers-color-scheme: dark').matches) {
document.documentElement.classList.toggle('dark', true);
} else {
document.documentElement.classList.remove('dark');
}
}
</script>
<script>
class ThemeToggler {
elements: NodeListOf<Element>;
btnState: string = 'light';
constructor() {
this.toggleClass();
if ('theme' in localStorage && localStorage.theme !== 'undefined') {
this.btnState = localStorage.theme;
} else {
this.btnState = 'system';
}
this.elements = document.querySelectorAll('[data-toggle-theme]');
this.elements.forEach((e) => {
this.setState(e, this.btnState);
e.addEventListener('click', this);
});
}
handleEvent() {
const state = localStorage.theme;
this.elements.forEach((e) => {
this.setNextState(e, state);
const s = this.getState(e);
if (s != localStorage.theme) {
localStorage.theme = this.getState(e);
}
});
this.toggleClass();
}
getState(element: Element): string {
const attr = element.getAttribute('data-toggle-theme');
return attr != null ? attr : 'light';
}
getSysTheme(): string {
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
}
setState(element: Element, state: string) {
element.setAttribute('data-toggle-theme', state);
}
setNextState(element: Element, state: string) {
const states = ['light', 'dark', 'system'];
let next = states.indexOf(state) + 1;
if (next === states.length) {
next = 0;
}
element.setAttribute('data-toggle-theme', states[next]);
}
sysTheme(): string {
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
}
toggleClass() {
const ele = document.documentElement;
switch (localStorage.theme) {
case 'light':
ele.classList.remove('dark');
break;
case 'dark':
ele.classList.add('dark');
break;
default:
ele.classList.toggle('dark', this.getSysTheme() === 'dark');
}
}
}
new ThemeToggler();
import { theme } from '../utils/theme.ts';
theme();
</script>
</head>
<body class="flex flex-col min-h-screen">

View file

@ -1,10 +1,10 @@
---
date: "2025-11-02"
title: "Psalm 23"
meta_description: Psalm 23
sub_heading: Entering God's Rest
session: 11
title: Entering God's Rest
scripture: "Psalm 23"
scripture_category: wisdom
session: 11
meta_description: Psalm 23
post_image: /images/headers/1990265448189902848-cropped.jpg
image_alt: Shepherd of his flock (AI).
types: ["abbreviated"]

View file

@ -1,11 +1,11 @@
---
date: "2025-11-09"
title: "Psalm 139"
meta_description: Psalm 139
sub_heading: God Knows Our Depths
session: 12
title: God Knows Our Depths
scripture: "Psalm 139"
scripture_category: wisdom
meta_description: Psalm 139
post_image: /images/headers/shepherd-praying-cropped.jpg
session: 12
types: ["abbreviated"]
book: psalms
chapters: [139]

View file

@ -1,11 +1,11 @@
---
date: "2025-11-16"
title: "Psalm 5"
meta_description: Psalm 5
sub_heading: David's Plea for Justice
session: 13
title: David's Plea for Justice
scripture: "Psalm 5"
scripture_category: wisdom
meta_description: Psalm 5
post_image: /images/headers/king-david-cropped.jpg
session: 13
types: ["abbreviated"]
book: psalms
chapter: 5

View file

@ -1,11 +1,11 @@
---
date: "2025-11-23"
title: "Psalms 42, 43"
meta_description: Psalms 42 and 43
sub_heading: Why are You Cast Down, My Soul?
session: 14
title: Why are You Cast Down, My Soul?
scripture: "Psalm 42, 43"
scripture_category: wisdom
meta_description: Psalm 42 and 43
post_image: /images/headers/prostrate-shepherd-1.jpg
session: 14
types: ["abbreviated"]
book: psalms
chapters: [42, 43]

View file

@ -1,9 +1,9 @@
---
date: "2025-11-30"
title: "Deep Dive: Psalm 146"
meta_description: Psalm 146
sub_heading: Put Not Your Trust in Princes
title: Put Not Your Trust in Princes
scripture: "Psalm 146"
scripture_category: wisdom
meta_description: Psalm 146
post_image: /images/headers/throne-room-cropped.jpg
types: ["abbreviated"]
book: "psalms"

View file

@ -1,11 +1,12 @@
---
date: "2025-12-07"
title: "Matthew 2"
meta_description: Matthew 2
sub_heading: "Signs of a King (and New Testament Introduction)"
session: 3
title: "New Testament Introduction"
subtitle: "The Signs of a King"
scripture: "Matthew 2"
scripture_category: gospels
post_image: /images/headers/mary-and-joseph-cropped.jpg
meta_description: "Matthew 2"
session: 3
types: ["abbreviated"]
book: matthew
chapters: [2]

View file

@ -1,11 +1,12 @@
---
date: "2025-12-14"
title: "Matthew 3-4:11"
meta_description: "Matthew 3-4:11"
sub_heading: "Jesus' Baptism, Early Ministry, and Temptation"
session: 1
title: "Jesus' Ministry Begins"
subtitle: "Baptism, Early Ministry, and Temptation of the Christ"
scripture: "Matthew 3-4:11"
scripture_category: gospels
meta_description: "Matthew 3-4:11"
post_image: /images/headers/baptism-of-jesus-cropped.jpg
session: 1
types: ["abbreviated"]
book: "matthew"
chapters: [3, 4]

View file

@ -1,11 +1,12 @@
---
date: "2025-12-21"
title: "Matthew 4:12-25"
meta_description: "Matthew 4:12-25"
sub_heading: "Jesus' Ministry Begins: First Disciples and the Great Crowds"
session: 2
title: "Jesus' Ministry Begins"
subtitle: "The First Disciples and the Great Crowds"
scripture: "Matthew 4:12-25"
scripture_category: gospels
meta_description: "Matthew 4:12-25"
post_image: /images/headers/jesus-beginning-ministry-galilee-crowds-cropped.jpg
session: 2
types: ["abbreviated", "long-form"]
book: matthew
chapters: [4]

View file

@ -1,11 +1,12 @@
---
date: "2025-12-28"
title: "Matthew 5:1-26"
meta_description: "Matthew 5:1-26"
sub_heading: "The Sermon on the Mount: Part 1"
session: 4
title: "The Sermon on the Mount"
subtitle: "Part 1"
scripture: "Matthew 5:1-26"
scripture_category: gospels
meta_description: "Matthew 5:1-26"
post_image: /images/headers/jesus-sermon-on-the-mount-1.jpg
session: 4
types: ["abbreviated", "long-form"]
book: matthew
chapters: [5]

View file

@ -1,10 +1,11 @@
---
date: "2026-01-04"
title: "Matthew 5:27-32"
meta_description: "Matthew 5:27-32"
sub_heading: "The Sermon on the Mount: Part 2"
title: "The Sermon on the Mount"
subtitle: "Part 2"
session: 4
scripture: "Matthew 5:27-32"
scripture_category: gospels
meta_description: "Matthew 5:27-32"
post_image: /images/headers/jesus-sermon-on-the-mount-2.jpg
tags:
- notes

View file

@ -1,10 +1,11 @@
---
date: "2026-01-11"
title: "Matthew 5:33-48"
meta_description: "Matthew 5:33-48"
sub_heading: "The Sermon on the Mount: Part 3"
title: "The Sermon on the Mount"
subtitle: "Part 3"
session: 4
scripture: "Matthew 5:33-48"
scripture_category: gospels
meta_description: "Matthew 5:33-48"
post_image: /images/headers/jesus-sermon-on-the-mount-3.jpg
tags:
- notes

View file

@ -1,10 +1,11 @@
---
date: "2026-01-18"
title: "Matthew 6:1-15"
meta_description: "Matthew 6:1-15"
sub_heading: "The Sermon on the Mount: Part 4"
title: "The Sermon on the Mount"
subtitle: "Part 4"
session: 5
scripture: "Matthew 6:1-15"
scripture_category: gospels
meta_description: "Matthew 6:1-15"
post_image: /images/headers/jesus-sermon-on-the-mount-4.jpg
tags:
- notes

View file

@ -1,11 +1,11 @@
---
date: "2026-02-01"
date_override: "1 February, 2026"
title: "Matthew 6:16-24"
meta_description: "Matthew 6:16-24"
sub_heading: "The Sermon on the Mount: Part 5"
title: "The Sermon on the Mount"
subtitle: "Part 5"
session: 5
scripture: "Matthew 6:16-24"
scripture_category: gospels
meta_description: "Matthew 6:16-24"
post_image: /images/headers/jesus-sermon-on-the-mount-5.jpg
tags:
- notes

View file

@ -1,10 +1,11 @@
---
date: "2026-02-08"
title: "Matthew 7:6; 6:25-34"
meta_description: "Matthew 7:6; 6:25-34"
sub_heading: "The Sermon on the Mount: Part 6"
title: "The Sermon on the Mount"
subtitle: "Part 6"
session: "5-6"
scripture: "Matthew 7:6; 6:25-34"
scripture_category: gospels
meta_description: "Matthew 7:6; 6:25-34"
post_image: /images/headers/jesus-sermon-on-the-mount-6.jpg
tags:
- notes

View file

@ -1,13 +1,14 @@
---
date: "2026-02-15"
title: Matthew 7:1-5, 7-29
meta_description: "Matthew 7:1-5, 7-29"
sub_heading: "The Sermon on the Mount: Part 7"
title: "The Sermon on the Mount"
subtitle: "Part 7"
session: 6
scripture: Matthew 7:1-5, 7-29
scripture_category: gospels
meta_description: "Matthew 7:1-5, 7-29"
post_image: /images/headers/jesus-sermon-on-the-mount-7.jpg
book: matthew
chapter: 7
scripture_category: gospels
post_image: /images/headers/jesus-sermon-on-the-mount-7.jpg
tags:
- notes
- matthew

View file

@ -1,13 +1,14 @@
---
date: "2026-02-22"
title: "Matthew 7:21-29; 8:1-4"
meta_description: "Matthew 7:21-29; 8:1-4"
sub_heading: "The Sermon Ends; Jesus' Healing Demonstrated"
title: "The Sermon Ends"
subtitle: "Jesus' Healing Demonstrated"
session: "6-7"
scripture: "Matthew 7:21-29; 8:1-4"
scripture_category: gospels
meta_description: "Matthew 7:21-29; 8:1-4"
post_image: /images/headers/jesus-heals-a-man.jpg
book: matthew
chapter: 7
scripture_category: gospels
post_image: /images/headers/jesus-heals-a-man.jpg
tags:
- notes
- matthew

View file

@ -1,14 +1,13 @@
---
date: "2026-03-01"
date_override: "1 March, 2026"
title: "Psalm 49"
book: psalm
chapter: 49
meta_description: "Psalm 49"
sub_heading: "Why Should I Fear in Times of Trouble?"
title: "Why Should I Fear in Times of Trouble?"
scripture: "Psalm 49"
scripture_category: wisdom
meta_description: "Psalm 49"
post_image: "/images/headers/psalm49.jpg"
image_alt: "Shepherd facing off the charred skeleton of a wealthy king: Same fate but different outcomes."
book: psalm
chapter: 49
tags:
- notes
- psalms

View file

@ -1,13 +1,13 @@
---
date: "2026-03-08"
title: "Matthew 8:1-27"
meta_description: "Matthew 8:1-27"
sub_heading: Jesus Heals
title: Jesus Heals
session: 7
scripture: "Matthew 8:1-27"
scripture_category: gospels
meta_description: "Matthew 8:1-27"
post_image: /images/headers/jesus-healing-and-the-crowds.jpg
book: matthew
chapter: 8
scripture_category: gospels
post_image: /images/headers/jesus-healing-and-the-crowds.jpg
tags:
- notes
- matthew

View file

@ -1,9 +1,10 @@
---
date: "2026-03-15"
title: "Matthew 8:28-34, 9:1-17"
meta_description: "Matthew 8:28-34, 9:1-17"
sub_heading: "Jesus Heals: Demoniacs, Paralytic, Call of Matthew"
title: "Jesus Heals (Continued)"
subtitle: "The Demoniacs, Paralytic, Call of Matthew"
scripture: "Matthew 8:28-34, 9:1-17"
scripture_category: gospels
meta_description: "Matthew 8:28-34, 9:1-17"
post_image: /images/headers/jesus-healing-demoniacs-02-scaled.jpg
tags:
- notes

View file

@ -1,12 +1,12 @@
---
date: "2026-03-22"
title: "Matthew 9:18-26"
meta_description: "Matthew 9:18-26"
sub_heading: A Girl Restored to Life and a Woman Healed
title: A Girl Restored to Life and a Woman Healed
scripture: "Matthew 9:18-26"
scripture_category: gospels
meta_description: "Matthew 9:18-26"
post_image: /images/headers/jesus-healing-a-woman.jpg
book: matthew
chapter: 9
post_image: /images/headers/jesus-healing-a-woman.jpg
tags:
- notes
- matthew

View file

@ -1,9 +1,9 @@
---
date: "2026-03-29"
title: "Ecclesiastes 7:1-2"
meta_description: "Ecclesiastes 7:1-2"
sub_heading: "The Shortness of Life"
title: "The Shortness of Life"
scripture: "Ecclesiastes 7:1-2"
scripture_category: devotional
meta_description: "Ecclesiastes 7:1-2"
post_image: /images/headers/golden-scroll.jpg
tags:
- notes

View file

@ -1,10 +1,11 @@
---
date: "2026-04-05"
title: "Romans 14"
meta_description: "Romans 14"
sub_heading: "Christian Unity: Easter is NOT Pagan"
post_image: /images/headers/the-shepherd-cradling-a-lamb.jpg
title: "Christian Unity"
subtitle: "Easter is NOT Pagan"
scripture: "Romans 14"
scripture_category: pauline
meta_description: "Romans 14"
post_image: /images/headers/the-shepherd-cradling-a-lamb.jpg
book: romans
chapter: 14
tags:

View file

@ -1,12 +1,12 @@
---
date: "2026-04-12"
title: "Matthew 9:27-38; 10:1-4"
meta_description: "Matthew 9:27-38; 10:1-4"
sub_heading: "The Blind See and Sending of the Twelve"
title: "The Blind See and Sending of the Twelve"
scripture: "Matthew 9:27-38; 10:1-4"
scripture_category: gospels
meta_description: "Matthew 9:27-38; 10:1-4"
post_image: /images/headers/jesus-healing-the-blind.jpg
book: matthew
chapter: 9
post_image: /images/headers/jesus-healing-the-blind.jpg
tags:
- notes
- matthew

View file

@ -1,9 +1,10 @@
---
date: "2026-04-26"
title: "Matthew 10:1-15"
meta_description: "Matthew 10:1-15"
sub_heading: "Jesus Sends the Twelve; Instructions (Part 1)"
title: "The Twelve"
subtitle: "Part 1 - Sending and Instructions"
scripture: "Matthew 10:1-15"
scripture_category: gospels
meta_description: "Matthew 10:1-15"
post_image: /images/headers/jesus-sends-the-twelve.jpg
tags:
- notes

View file

@ -1,9 +1,10 @@
---
date: "2026-05-03"
title: "Matthew 10:16-25"
meta_description: "Matthew 10:16-25"
sub_heading: "Instructions to the Twelve (Part 2)"
title: "The Twelve"
subtitle: "Part 2 - Instructions (Continued)"
scripture: "Matthew 10:16-25"
scripture_category: gospels
meta_description: "Matthew 10:16-25"
post_image: /images/headers/disciples-before-a-village.jpg
tags:
- notes

View file

@ -1,9 +1,9 @@
---
date: "2026-05-10"
title: "Psalm 34"
meta_description: "Psalm 34"
sub_heading: "The Lord is Close to the Brokenhearted"
title: "The Lord is Close to the Brokenhearted"
scripture: "Psalm 34"
scripture_category: devotional
meta_description: "Psalm 34"
post_image: "/images/headers/jesus-close-to-the-brokenhearted.jpg"
tags:
- notes

View file

@ -1,9 +1,9 @@
---
date: "2026-05-17"
title: "2 Corinthians 1:3-11"
meta_description: "2 Corinthians 1:3-11"
sub_heading: "God's Comfort"
title: "God's Comfort"
scripture: "2 Corinthians 1:3-11"
scripture_category: pauline
meta_description: "2 Corinthians 1:3-11"
post_image: "/images/headers/jesus-comforting-a-woman-and-her-children.jpg"
tags:
- notes

View file

@ -1,9 +1,9 @@
---
date: "2026-05-24"
title: "Matthew 10:26-33"
meta_description: "Matthew 10:26-33"
sub_heading: Have No Fear
title: Have No Fear
scripture: "Matthew 10:26-33"
scripture_category: gospels
meta_description: "Matthew 10:26-33"
post_image: /images/headers/jesus-have-no-fear.jpg
types: ["abbreviated", "long-form"]
book: matthew

View file

@ -1,9 +1,9 @@
---
date: "2026-05-31"
title: "Matthew 10:34-42"
meta_description: "Matthew 10:34-42"
sub_heading: Not Peace but a Sword
title: Not Peace but a Sword
scripture: "Matthew 10:34-42"
scripture_category: gospels
meta_description: "Matthew 10:34-42"
post_image: /images/headers/jesus-wielding-sword.jpg
types: ["abbreviated", "long-form"]
book: matthew

View file

@ -1,9 +1,9 @@
---
date: "2026-06-07"
title: "Matthew 11:1-19"
meta_description: "Matthew 11:1-19"
sub_heading: "Messengers from John the Baptist"
title: "Messengers from John the Baptist"
scripture: "Matthew 11:1-19"
scripture_category: gospels
meta_description: "Matthew 11:1-19"
post_image: "/images/headers/messengers-from-john-the-baptist.jpg"
types: ["long-form"]
book: matthew

View file

@ -1,9 +1,9 @@
---
date: "2026-06-14"
title: "Matthew 11:20-30"
meta_description: "Matthew 11:20-30"
sub_heading: "Woe to the Unrepentant; Rest for the Weary"
title: "Woe to the Unrepentant; Rest for the Weary"
scripture: "Matthew 11:20-30"
scrpture_category: gospels
meta_description: "Matthew 11:20-30"
post_image: "/images/headers/flocking-to-jesus.jpg"
types: ["long-form"]
book: matthew

View file

@ -1,9 +1,9 @@
---
date: "2026-06-21"
title: "Matthew 12:1-21"
meta_description: "Matthew 12:1-21"
sub_heading: "Lord of the Sabbath"
title: "Lord of the Sabbath"
scripture: "Matthew 12:1-21"
scripture_category: gospels
meta_description: "Matthew 12:1-21"
post_image: "/images/headers/jesus-fields-of-grain-disciples.jpg"
types: ["long-form"]
book: matthew

View file

@ -1,9 +1,9 @@
---
date: "2026-06-28"
title: "Matthew 12:22-37"
meta_description: "Matthew 12:22-37"
sub_heading: "A House Divided, the Unforgivable Sin, and the Fruit"
title: "A House Divided, the Unforgivable Sin, and the Fruit"
scripture: "Matthew 12:22-37"
scripture_category: gospels
meta_description: "Matthew 12:22-37"
post_image: "/images/headers/jesus-confronts-the-pharisees.jpg"
types: ["long-form"]
book: matthew

View file

@ -1,9 +1,9 @@
---
date: "2026-07-05"
title: "Matthew 12:38-45"
meta_description: "Matthew 12:38-45"
sub_heading: "The Sign of Jonah, Return of the Unclean Spirit"
title: "The Sign of Jonah, Return of the Unclean Spirit"
scripture: "Matthew 12:38-45"
scripture_category: gospels
meta_description: "Matthew 12:38-45"
post_image: "/images/headers/jesus-debating-pharisees.jpg"
types: ["long-form"]
chapters: [12]

Some files were not shown because too many files have changed in this diff Show more