I’ve got Mackenzie looking at Streamlit as a means of building a mobile-friendly app that I can use to create posts like this one. That app will need to allow me to edit a TITLE and Markdown BODY fields, capture location and time, and post all of that information to my personal blog… preferably from my cell phone. I’ve captured some possible resources and guidance in https://www.one-tab.com/page/71iaDADxT-eLEOx15qeVnQ.
Went to the elementary early this evening and sprayed Weed-B-Gone around the bench and area. I hope it knocks the remaining weeds there back. There was no wind and no rain thus far, so I hope it works.
Roadtrip: Geowoodstock 2023
Geowoodstock 2023 (GC89GMX) and Kentucky’s oldest surviving geocache (GC39E) were the intended destinations of another epic roadtrip with gossamar on May 25-28, 2023.
The route and cache count looked something like this:
The green lines represent my “outbound” route while the red lines show my “return” route back from GC39E. The ordered list of caches and events found is available for download below.
Continue Reading »Staying this weekend in a Marriott in Owensboro, Kentucky, for GeoWoodstock 2023. Headed to Louisville in the morning for some oldies.
This morning I was dealing with the 1965 edition of the Grinnell College yearbook, Cyclone 1965, in Digital.Grinnell. That’s a monster of a yearbook, 278 pages and a .pdf that’s almost 1.4 GB in size.
In order to get the .pdf to upload I tried a number of tricks, the only one that worked was a modification of Book Ingest in Digital.Grinnell The key command was…
docker cp "/mnt/storage/Yearbooks/Cyclone 1965/lib_1965cycloneyearbook_0002.pdf" isle-apache-dg:/var/www/sites/default/files/book.pdf
Beautiful day for commencment 2023 in Grinnell. I just wish Alina were here. 8^(
Wrap EVERYTHING in NPM!
So, node and npm seem to be all the rage these days, and perhaps for good reason. I recently fell in love with Eleventy/11ty over Hugo because it’s Javascript, not Go, and it’s elegantly simple with tons of flexibility. I recently tried to add Pagefind search to a Hugo static web site (see https://static.grinnell.edu/dlad-blog/posts/143-significant-rootstalk-retooling/). If Rootstalk, an Azure Static Web App was framed in node.js, as both Eleventy and Pagefind are, there would be no problem. The Azure scripts used to deploy those frameworks are far more customizable than Hugo, and there’s documentation to prove it.
Been prompted to do this for a couple of weeks so I finally took-the-plunge. https://analytics.summittservices.com/index.php?module=CoreUpdater&action=newVersionAvailable.
Wow, that was way too easy. I wonder if it really worked?
A Pagefind Problem?
Not Just a Hugo Issue
Take note of the question mark at the end of the title, otherwise it could be somewhat misleading. This is not really a problem with Hugo, but one with cloud deployment of Hugo static apps, particularly as an Azure Static Web App.
The Nutshell
As you may know from post 143, I have successfully installed and configured Pagefind in Rootstalk, but thus far it only works locally. When I try to deploy Pagefind to the cloud, specifically as an Azure Static Web App, I can’t make it work because there’s no apparent way to invoke the necessary npx pagefind... command AFTER Hugo compiles the site, but BEFORE the site gets deployed. Azure leverages GitHub Actions to build Hugo sites, but that process also involves some custom/proprietary Azure scripts. Therein lies the problem.
I ran into a big road block with implementation of Pagefind in Rootstalk today… everything works fine in development, but I can’t easily deploy to Azure because there’s no way to “inject” Pagefind into an Azure Static Web App build before the “public” content gets deployed. I can generate the Pagefind parts after deployment, but that does me no good.
Tomorrow I need to have a look at my Rootstalk DigitalOcean deployment to see if what I already have might work there (DO uses a build script that I can add an npx... command to). If that fails I need to look back at https://www.blogtrack.io/blog/powerful-blog-setup-with-hugo-and-npm/ to see if there’s a solution there for me.
-/-/-/
location: Toledo, IA