Git pre-commit for Hugo

I want to build my site on commit, hereā€™s what I tried first: set -eux rm -rf public hugo git add public echo "updated build directory" This worked! But it took some fiddling because I mistakenly set the date of this post in the future. Apparently you can do that and Hugo wonā€™t add the pages for it, so it was running the build command but not actually updating anything. ...

February 1, 2022

Hugo

Switching ports fixed a connection problem for some reasonā€¦ the default one through sudo apt-get install hugo was from 2020, so intalled from source instead. Render: doesnā€™t seem to be picking up my commits as pulls. Just kidding it worked this time. All my links are to ā€œexample.comā€ ā€“ uhoh. Maybe I need to re-install the theme? Problem was the ā€œbaseUrlā€ in the config.toml New issue: clicking name in the top right doesnā€™t change the URL (i.e. doesnā€™t take you ā€œhomeā€) Images I first put things in a folder called ā€œimagesā€ that was under ./resources/_gen/images ā€“ but that wasnā€™t right. I then moved it up to ./resources/images and tried doing some things I saw under Image Processing in the docs, like this: ...

January 30, 2022

Garden Fun

A list of fun things I want to play around with on this: A favicon that has the moon but adjusts with the phase Similarly, but on the top of the page Some kind of counter that says how long its been since I posted, maybe some kind of ā€œstalenessā€ ā€“ could be an encouragement to write more or an indicator that itā€™s time to delete some things Generally messing with ā€œthemesā€ to personalize it more (thereā€™s 3 different ā€œmodesā€ of PaperMod) Trying to make the [[post title]] style links from Logseq work here Emoji favicon https://css-tricks.com/emoji-as-a-favicon/ ...

January 30, 2022

Economist odds and ends

I got a subscription to the Economist for Christmas this year (Thanks Taylor!). Iā€™ve tried to read the whole thing cover to cover each week, but Iā€™ve never been close to being up to speed (Currently a full issue plus some behind). That goal came from this tweet: I read @TheEconomist cover-to-cover because its content makes me think critically about the world. Its editors recently asked me a tough question: What is the one thing you'd do to create a more open world? See my answer below and share your answer here: https://t.co/snng1yCdRL https://t.co/J4uL2ccLcd ...

January 27, 2022

Render

Render.com Register (with Github) a. (Act on your behalf): looks like it will only be able to do that on resources I grant the app access to New Static Site Push this thing to Github a. looks like it needs to be public, but I guess thatā€™s the point anyway i. This got me thinking about how my github might actually get more traffic from people I know versus my blog which is exclusively strangers afaict. b. Seems like it should be able to be private, says ā€œIt looks like we donā€™t have access to your repoā€ in the logs, so I could grant it access. Go back and actually add the public assets Follow the namecheap instructions Voila! It worked. Overall it took about 20 minutes. ...

January 25, 2022

Garden

Gardening I read a few posts awhile back (Iā€™ll link to them at some point, Will Larson) about a digital garden. Something thatā€™s a little messy, your little corner of the internet. Itā€™s not fully edited, itā€™s not trying to be anything. Thatā€™s something I liked. That itā€™s mostly for me, but I can keep iterating on it. https://joelhooks.com/digital-garden https://lethain.com/exuberant-sketches/ https://tomcritchlow.com/2019/02/17/building-digital-garden/ Nesting One of the things I found compelling this week was building a floorplan of the apartment Iā€™m renting with my partner. I used ā€œSweetHome 3Dā€, an open source app (after a lot of googling, and looking at pricing pages). The initial requirement was so that my partner could start strategizing for a couch purchase, and try to figure out what would fit where. But I found myself continuing past the point that I met that requirement. It felt like I was making a little home. ...

January 25, 2022