diff --git a/assets/sass/pages/log.scss b/assets/sass/pages/log.scss new file mode 100644 index 0000000..2a1bd9f --- /dev/null +++ b/assets/sass/pages/log.scss @@ -0,0 +1,55 @@ +.log-page-container { + width: 900px; + height: 100vh; + margin: auto; + + .log-header { + margin: auto; + + pre { + text-align: center; + background: linear-gradient(to bottom, #00aa00, #eeff00); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-clip: text; + margin-bottom: 1rem; + } + } + + .log-content { + margin: auto; + + .crt-monitor { + margin: auto; + width: 100%; + height: auto; + aspect-ratio: 1.3/1; + + .content.crt { + padding: 1.2rem; + font-size: 1.2rem; + + p { + margin: auto; + margin-bottom: 1.2rem; + } + + .log-updates { + // display as 2 columns, date then content + display: grid; + grid-template-columns: auto auto 1fr; + column-gap: 1rem; + margin-bottom: 1rem; + line-height: 1.5rem; + .log-date { + font-weight: bold; + text-align: right; + } + div { + margin-bottom: 0.5rem; + } + } + } + } + } +} diff --git a/assets/sass/style.scss b/assets/sass/style.scss index 7697c34..1ad48d0 100644 --- a/assets/sass/style.scss +++ b/assets/sass/style.scss @@ -32,6 +32,7 @@ @import "pages/lavalamp-adoptable"; @import "pages/guestbook"; @import "pages/buttons"; +@import "pages/log"; @import url(https://fonts.bunny.net/css?family=abel:400|barlow-condensed:400,500|caveat:400|lato:300,300i,400,400i|neonderthaw:400); diff --git a/content/log.md b/content/log.md new file mode 100644 index 0000000..7a16e4c --- /dev/null +++ b/content/log.md @@ -0,0 +1,7 @@ +--- +title: Update Log +type: log +date: 2024-01-16 +--- + +An update log for my Neocities friends as the website isn't actually hosted there anymore. diff --git a/layouts/log/single.html b/layouts/log/single.html new file mode 100644 index 0000000..f9b8e2d --- /dev/null +++ b/layouts/log/single.html @@ -0,0 +1,50 @@ +{{ define "main" }} +
+
+
+                                               
+  ▄▄▄  ▄▄                                   ▄▄ 
+ █▀██  ██           █▄       █▄             ██ 
+   ██  ██           ██      ▄██▄            ██ 
+   ██  ██  ████▄ ▄████ ▄▀▀█▄ ██ ▄█▀█▄ ▄██▀█ ██ 
+   ██  ██  ██ ██ ██ ██ ▄█▀██ ██ ██▄█▀ ▀███▄    
+   ▀█████▄▄████▀▄█▀███▄▀█▄██▄██▄▀█▄▄▄█▄▄██▀ ██ 
+           ██                                  
+              ▀                                       
+
+
+
+
+
+
+
+

+ Here are the latest updates to + ritual.sh for my friends on + Neocities as the site is no longer actually hosted there! +

+

🟢

+ +
+ {{ range first 10 (union (where .Site.RegularPages "Type" + "updates") (where .Site.RegularPages "Type" + "blog")).ByDate.Reverse }} + +
{{ .Lastmod.Format "Jan 2, 2006" }}
+
❇️
+
+ {{ if eq .Type "blog" }} New blog post: + {{ .Title }} {{ else }} {{ .Plain + }} {{ end }} +
+ + {{ end }} +
+
+
+
+
+
+
+{{ end }} diff --git a/build.sh b/update-neocities.sh similarity index 69% rename from build.sh rename to update-neocities.sh index df939e9..4a3c5a6 100755 --- a/build.sh +++ b/update-neocities.sh @@ -35,12 +35,49 @@ fi echo -e "${GREEN}✓ Hugo build successful!${NC}" -# Remove the updates section list page (we only want individual update pages) -if [ -d "public/updates" ]; then - echo -e "${BLUE}Removing updates section list page...${NC}" - rm -rf public/updates - echo -e "${GREEN}✓ Updates folder removed!${NC}" -fi +# Remove folders that shouldn't be uploaded to Neocities +FOLDERS_TO_REMOVE=( + "about" + "archives" + "audio" + "blog" + "buttons" + "gear" + "guestbook" + "media" + "now" + "resources" + "tags" + "test" + "updates" + "uses" + "fonts" + "images" +) + +echo -e "${BLUE}Removing excluded folders from public...${NC}" +for folder in "${FOLDERS_TO_REMOVE[@]}"; do + if [ -d "public/$folder" ]; then + rm -rf "public/$folder" + echo -e " ${GREEN}✓${NC} Removed $folder/" + fi +done +echo -e "${GREEN}✓ Folder cleanup complete!${NC}" + +# Remove specific files that shouldn't be uploaded +FILES_TO_REMOVE=( + "index.html" + "404.html" +) + +echo -e "${BLUE}Removing excluded files from public...${NC}" +for file in "${FILES_TO_REMOVE[@]}"; do + if [ -f "public/$file" ]; then + rm -f "public/$file" + echo -e " ${GREEN}✓${NC} Removed $file" + fi +done +echo -e "${GREEN}✓ File cleanup complete!${NC}" echo ""