I started to create a lengthy post here but ended up moving it to my professional blog. So, please look for the start of this subject in Gating My Content & More - Parts 1 and 2.
Today I plan to follow the guidance found in Rename Azure Subscriptions and Find Your Environments Faster to fix the name of my personal Azure subscription 1, and maybe more. That’s a horrible name, I know!
Done! The new subscription name is SummittDweller Pay-As-You-Go. Much better!
Gating My Content
Gating Content in JAMstack Sites
This section’s title was borrowed from a Stackbit article with the same title, Gating Content in JAMstack Sites. Working through that article to password protect some of the content at https://Wieting.TamaToledo.com is my tech pursit today.
Nope, Not on Netlify
😦 Last evening I took a shot at implementing the Netlify Identity tricks from the aforementioned article, but could not easily get it to work. The problem, I think, is that the https://Wieting.TamaToledo.com on Netlify already uses Netlify Identity for authentication of my Netlify CMS forms, and adding a second, separate instance of that service isn’t trivial and perhaps isn’t even feasible. I also tried implementing some quick Staticrypt CLI protection but that also failed. Netlify does provide a really quick and painless solution, but it costs $20/month, at a minimum, to enable it.
Continue Reading »Fixing a Broken GitHub Repo
Don’t Push Enormous Files to GitHub!
Pay close attention to the subtitle above! A couple of days ago I was working on content for Tama-Toledo Community Visioning and I added a large socialmedia.zip
file to the source repo, and then very stupidly pushed it to GitHub and the repo’s main
branch. Naturally, the push didn’t finish so I removed the file and pushed a new commit to “remove it permanently”. Well, that ain’t how git
works!
Today I discovered a slick trick for “local” development of my first Hugo Module. The guidance I used was found in Working with Hugo Module Locally and it was spot-on! In my case the key was the additon of one line, two if you include the comment, to my project’s config.yml
file:
// Innocent line below!
replace github.com/SummittDweller/hugo-timeline => /Users/mark/GitHub/hugo-timeline
Yes, you gotta’ love Hugo, but I now think 11ty might be worth a look. Also there’s Hosting Eleventy on GitHub Pages.
My Hugo Timeline, A New Hugo Module
What follows is an excerpt from this blog’s README.md
file.
I’ve successfully added the code to drive a new /timeline
page as part of this blog, but I did so “locally”, and now I’d like to repeat the process but using the aforementioned SummittDweller/hugo-timeline module.
I used guidance found in Hugo Modules: Getting Started to make this happen, like so:
╭─mark@Marks-Mac-Mini ~/GitHub/blogs-SummittDweller ‹main›
╰─$ brew install go
╭─mark@Marks-Mac-Mini ~/GitHub/blogs-SummittDweller ‹main›
╰─$ brew upgrade # This is not "required", but probably overdue.
╭─mark@Marks-Mac-Mini ~/GitHub/blogs-SummittDweller ‹main*›
╰─$ mkdir content/timeline/.out-of-the-way # vvv Moving existing local stuff out of the way vvv
╭─mark@Marks-Mac-Mini ~/GitHub/blogs-SummittDweller ‹main*›
╰─$ mv -f layouts/partials/hugo-timeline* content/timeline/.out-of-the-way/.
╭─mark@Marks-Mac-Mini ~/GitHub/blogs-SummittDweller ‹main*›
╰─$ mv -f layouts/shortcodes/hugo-timeline* content/timeline/.out-of-the-way/.
╭─mark@Marks-Mac-Mini ~/GitHub/blogs-SummittDweller ‹main*›
╰─$ mv -f static/css/hugo-timeline* content/timeline/.out-of-the-way/.
╭─mark@Marks-Mac-Mini ~/GitHub/blogs-SummittDweller ‹main*›
╰─$ hugo mod init github.com/SummittDweller/blogs-SummittDweller
go: creating new go.mod: module github.com/SummittDweller/blogs-SummittDweller
go: to add module requirements and sums:
go mod tidy
Next, to pull in SummittDweller/hugo-timeline as a module I turned to the config.yml
file and guidance found in Hugo Modules: everything you need to know!. Additions to config.yml
are:
Ya’ gotta love Hugo! I just completed my first Jekyll-to-Hugo conversion, and made it a Hugo module. It’s taken me a couple of years to realize the power of Hugo modules, and I have to say it’s AWESOME, and perfectly implemented.
The process of conversion briefly is documented in the README.md
file at SummittDweller/hugo-timeline, and the first use of it as a module appears elsewhere in this blog at My Hugo Timeline, A New Hugo Module. The timeline itself can be seen at https://blog.SummittDweller.com/timeline. Check it out!
How MY Web Works
I’ve been building websites and apps for a lot of years now, and over time I’ve used a plethora of different frameworks and tools to do so. I’ve also involved a number of registrars, DNS strategies, source code repositories, and web hosts… frankly too many to remember or even count.
In my old age I’d love to have a dynamic document, or two, where I can track things like this:
Continue Reading »Timeline