From 885d830b9de82bb157043025ef82533364e6bace Mon Sep 17 00:00:00 2001 From: Nico Bakomihalis Date: Tue, 12 Dec 2023 13:42:24 -0600 Subject: [PATCH] updated htmx-hyperscript and refactored index.html --- README.md | 4 ++++ index.html | 17 +++++++++++++---- pages/{about_me => }/about_me.md | 0 sw.js | 4 ++-- 4 files changed, 19 insertions(+), 6 deletions(-) rename pages/{about_me => }/about_me.md (100%) diff --git a/README.md b/README.md index eb95767..b32a6f9 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,10 @@ I'm using *htmx* for replacing content on pages to simulate an SPA. Hyperscript plays very well with htmx and adds JavaScript-y functionality directly in HTML! +Honestly, since this is a static site, +I've been replacing more and more of the _htmx_ with _hyperscript_, +and have really enjoyed how simple the code has become. + ### Development [Vscode](https://code.visualstudio.com/) and [Live Server Extension](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer). \ No newline at end of file diff --git a/index.html b/index.html index ff8aad5..7147e0a 100644 --- a/index.html +++ b/index.html @@ -6,13 +6,13 @@ - nicobako.dev + nicobako.github.io - + @@ -33,12 +33,21 @@ +

Nico Bako

- - + +
diff --git a/pages/about_me/about_me.md b/pages/about_me.md similarity index 100% rename from pages/about_me/about_me.md rename to pages/about_me.md diff --git a/sw.js b/sw.js index 6bb715d..5f9b891 100644 --- a/sw.js +++ b/sw.js @@ -16,8 +16,8 @@ self.addEventListener("install", (event) => { "/pages/about_me/index.html", "/pages/about_site/index.html", "https://md-block.verou.me/md-block.js", - "https://unpkg.com/htmx.org@1.9.2", - "https://unpkg.com/hyperscript.org@0.9.8", + "https://unpkg.com/htmx.org@1.9.9", + "https://unpkg.com/hyperscript.org@0.9.12", ]), ), );