Project Scope and ToDos
- Static Site Generator that can build the blog and let me host it on Github Pages
- I want to write posts in Markdown because I'm lazy, it's easy, and it is how I take notes now.
- I don't want to spend a ton of time doing design work. I'm doing complicated designs for other projects, so I want to pull a theme I like that I can rely on someone else to keep up.
- Once it gets going, I want template changes to be easy.
- It should be as easy as Jekyll, so I need to be able to build it using GitHub Actions, where I can just commit a template change or Markdown file and away it goes. If I can't figure this out than fk it, just use Jekyll.
- I require it to be used by a significant percent of my professional peers so I can get easy answers when something goes wrong.
- I want source maps. This is a dev log site which means whatever I do with it should be easy for other developers to read.
Also the sitemap plugin looks cool. Should grab that later.
So does the reading time one.
Also this TOC plugin mby?
Use Data Deep Merge in this blog.
Decide if I want to render the CSS fancier than just a base file and do per-template splitting.
- Can I use the template inside of dinky that already exists instead of copy/pasting it?
Is there a way to have permalinks to posts contain metadata without organizing them into subfolders?
How do I cachebreak files on the basis of new build events? Datetime?
site.github.build_revisionis how Jekyll accomplishes this, but is there a way to push that into the build process for Eleventy?
Make link text look less shitty. It looks like it is a whole, lighter, font.
Code blocks do not have good syntax highlighting. I want good syntax highlighting.
Ok, here we go on day 6. Today I write code on a Delta flight.
I've resolved some of the very basic blockers that were absolute need-to-haves from a design perspective. There is more work to be done on the design side (obviously, I still don't have a home page) but I think I need to answer questions about the GitHub Pages deployment process before I go any further. I know I can make an Eleventy blog that satisfies me now, but can I do so while also satisfying the ease of deployment and management that comes with Jekyll-style Github Pages deployment? Luckily the internet is free today, so I can find out at no added cost to my flight.
Looking at the Examples
The most upvoted solution I saw for Github Pages deployment was the LinkedIn post by Lea Tortay I found earlier. While I've managed a number of other deploy approaches, I actually have never written my own Github Pages deployment process, so figuring that out was one of my goals with this project. Let's start with that.
Oh, lol the wifi was only free for the first 5 minutes I guess? Ok, I'll pay.
Hmmmmm Captive Portal problems. Time to reboot.
Had to reboot, find the captive portal URL, cycle my DHCP lease and then pay for the privlige, but on the interwebs again. Payed to get on.
Ok, implimented the Github actions file with a few small changes, I went ahead and updated
node-version to match my latest version and switched by branch from master to main. Took care of the keys as specified. The action ran... but no joy. Maybe the problem is a lack of index page? Let's try putting one together.
Huh... it build from the file at
src/index.njk once... and now it hasn't again. I made my defaults layout the same as my posts layout, so it should work. But after I wiped it out one time, it hasn't built again.
Is it possible to have the docs content not committed on
main but only on
gh-pages? That would seem to be a good solution, but let's see.
Ooops, I was fiddling with trying to build a useful gitignore file for docs and passing it through and accidentally deleted all my layouts.
Let me pull those files back in from the last good commit:
git checkout 32e6206c0680d9009a316b85e33461479058d81d src/_layouts/*
Yup that did it. My Index file is back.
Finding GitHub Actions log
Build still isn't working. Hmmm where are the logs for this?
Ok, in the Actions tab, not in settings.
Looks like it isn't pulling in Dinky properly as a submodule because Github Pages needs the https url for the repo in .gitsubmodules.
Hmmm, still not working.
Ah, the issue is that the default configuration of Jekyll github pages pulls in submodules, but the default configuration of the checkout action doesn't. I just need to add that property to the yml file.
Oh, and fix my
.editorconfig to work better with yml files.
Good news, a new error!
[INFO] Usage https://github.com/peaceiris/actions-gh-pages#readme
Setup auth token
Error: Action failed with "not found deploy key or tokens"
Oops, but the secret in a custom environment instead of the
Hmmm... deploy was a success this time, but no-go on seeing any pages? Looks like it just deleted everything but the nojekyll file? I should probably look a little deeper into what is going on with these GitHub actions.
Ooooh. I should make a markdown code to expand my little typing shortcuts!
[ ] Build a Markdown-it plugin to take my typing shortcuts
[prob, b/c, ...?] and expand them on build.