diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index bceae9b..dcc555a 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -43,6 +43,10 @@ jobs: chmod 644 ~/.ssh/known_hosts - name: Build with Hugo run: HUGO_REMOTE_FONT_PATH=${{ secrets.REMOTE_FONT_PATH }} hugo --minify --environment preview + - name: Insert 404 page + run: | + mkdir -p public/bunnycdn_errors + cp public/404/index.html public/bunnycdn_errors/404.html - name: Highlight with Torchlight run: | npm i @torchlight-api/torchlight-cli diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 119ef5a..df4ede7 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -45,6 +45,10 @@ jobs: chmod 644 ~/.ssh/known_hosts - name: Build with Hugo run: HUGO_REMOTE_FONT_PATH=${{ secrets.REMOTE_FONT_PATH }} hugo --minify + - name: Insert 404 page + run: | + mkdir -p public/bunnycdn_errors + cp public/404/index.html public/bunnycdn_errors/404.html - name: Highlight with Torchlight run: | npm i @torchlight-api/torchlight-cli diff --git a/archetypes/default.md b/archetypes/default.md index 3e580c0..cc6b637 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -10,32 +10,39 @@ reply: true categories: Tips # Backstage, ChromeOS, Code, Self-Hosting, VMware tags: - android + - api + - automation - caddy + - certs - chromeos + - cloud - cloudflare + - containers - crostini - docker - gcp - homeassistant - hugo + - iac - javascript - kubernetes - linux - meta + - networking - packer - powercli - powershell + - proxmox - python - regex - salt + - security - selfhosting - shell - tailscale - - tasker - terraform - vmware - windows - - wireguard - wsl --- diff --git a/config/_default/params.toml b/config/_default/params.toml index 94b3418..ad7dad0 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -8,11 +8,11 @@ numberOfRelatedPosts = 5 indexTitle = ".-. ..- -. - .. -- . - . .-. .-. --- .-." -robots = [ +bad_robots = [ "AdsBot-Google", "Amazonbot", "anthropic-ai", - "Applebot", + "Applebot-Extended", "AwarioRssBot", "AwarioSmartBot", "Bytespider", diff --git a/content/changelog.md b/content/changelog.md index 715a67a..3dcad73 100644 --- a/content/changelog.md +++ b/content/changelog.md @@ -1,7 +1,7 @@ --- title: "/changelog" date: "2024-05-26T21:19:08Z" -lastmod: "2024-06-06" +lastmod: "2024-06-07T22:41:44Z" description: "Maybe I should keep a log of all my site-related tinkering?" featured: false toc: false @@ -11,7 +11,7 @@ categories: slashes *High-level list of config/layout changes to the site.* **2024-06-06:** -- Migrate hosting from Neocities to Bunny CDN +- Migrate hosting from [Neocities to Bunny CDN](/further-down-the-bunny-hole/) **2024-05-30:** - Fix broken styling for taxonomy (categories/tags) feeds @@ -20,8 +20,8 @@ categories: slashes **2024-05-29:** - Display post descriptions (if set) on archive pages; otherwise fall back to summaries -- Add /slashes archive page -- Add /slashes to top menu, add /about +- Add [/slashes](/slashes/) archive page +- Add /slashes to top menu, add [/about](/about) **2024-05-27:** - Replace "powered by" links with slashpages diff --git a/content/posts/further-down-the-bunny-hole/index.md b/content/posts/further-down-the-bunny-hole/index.md index 2ad4721..8743cbe 100644 --- a/content/posts/further-down-the-bunny-hole/index.md +++ b/content/posts/further-down-the-bunny-hole/index.md @@ -1,7 +1,7 @@ --- title: "Further Down the Bunny Hole" date: 2024-06-06 -# lastmod: 2024-06-06 +lastmod: "2024-06-08T02:57:35Z" description: "After a few weeks of weird configuration glitches, I decided to migrate my static site from Neocities to Bunny CDN. Here's how I did it." featured: false toc: true @@ -35,7 +35,7 @@ Once again, I gave the zone a name (`my-pull-zone`). I left the origin settings After admiring the magnificence of my new pull zone, I clicked the menu button at the top right and select **Copy Pull Zone ID** and made a note of that as well. ### GitHub Action -I found the [bunnycdn-storage-deploy](https://github.com/ayeressian/bunnycdn-storage-deploy) Action which makes it easy to upload content to a Bunny storage zone and also purge the cache of the pull zone at the same time. For that to work, I had to add a few new[action secrets](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions) to my GitHub repo: +I found the [bunnycdn-storage-deploy](https://github.com/ayeressian/bunnycdn-storage-deploy) Action which makes it easy to upload content to a Bunny storage zone and also purge the cache of the pull zone at the same time. For that to work, I had to add a few new [action secrets](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions) to my GitHub repo: | Name | Sample Value | Description | |--------------------------|-------------------------------|--------------------------------------------------------------------------------------------------------------| @@ -45,7 +45,7 @@ I found the [bunnycdn-storage-deploy](https://github.com/ayeressian/bunnycdn-sto | `BUNNY_STORAGE_PASSWORD` | `7cb197e5-[...]-ad35820c0de8` | Get it from the storage zone's FTP & API Access page | | `BUNNY_ZONE_ID` | `12345` | The pull zone ID you copied earlier | -Then I just updated [my deployment workflow](https://github.com/jbowdre/runtimeterror/blob/main/.github/workflows/deploy-prod.yml) to swap the Bunny action in place of the Neocities one: +Then I just updated [my deployment workflow](https://github.com/jbowdre/runtimeterror/blob/main/.github/workflows/deploy-prod.yml) to swap the Bunny action in place of the Neocities one (and [adjust the 404 page for bunny](https://support.bunny.net/hc/en-us/articles/360000332631-How-do-I-configure-a-custom-404-page-for-my-storage-zone)): ```yaml # torchlight! {"lineNumbers":true} @@ -96,6 +96,14 @@ jobs: chmod 644 ~/.ssh/known_hosts # - name: Build with Hugo run: HUGO_REMOTE_FONT_PATH=${{ secrets.REMOTE_FONT_PATH }} hugo --minify + - name: Insert 404 page # [tl! **:4] + run: | # [tl! ++:1,1 --:2,1] + mkdir -p public/bunnycdn_errors + cp public/404/index.html public/not_found.html + cp public/404/index.html public/bunnycdn_errors/404.html + - name: Insert 404 page # [tl! ++:-1,1 reindex(-1)] + run: | + cp public/404/index.html public/not_found.html - name: Highlight with Torchlight run: | npm i @torchlight-api/torchlight-cli diff --git a/content/posts/tailscale-ssh-serve-funnel/index.md b/content/posts/tailscale-ssh-serve-funnel/index.md index 2425300..60e5e45 100644 --- a/content/posts/tailscale-ssh-serve-funnel/index.md +++ b/content/posts/tailscale-ssh-serve-funnel/index.md @@ -9,8 +9,8 @@ categories: Tips # Projects, Code tags: - homelab - networking + - proxmox - tailscale - - vpn --- I've spent the past two years in love with [Tailscale](https://tailscale.com/), which builds on the [secure and high-performance Wireguard VPN protocol](/cloud-based-wireguard-vpn-remote-homelab-access/) and makes it [really easy to configure and manage](/secure-networking-made-simple-with-tailscale/). Being able to easily (and securely) access remote devices as if they were on the same LAN is pretty awesome to begin with, but Tailscale is packed with an ever-expanding set of features that can really help to streamline your operations too. Here are three of my favorites. diff --git a/layouts/partials/about.html b/layouts/partials/about.html index 2435847..6e8fc01 100644 --- a/layouts/partials/about.html +++ b/layouts/partials/about.html @@ -4,7 +4,7 @@

{{ .title }}  

{{ partial "tagline.html" . }}
- {{ site.Params.Author.username }} + {{ site.Params.Author.name }} {{ end }}