While using a static site generator is a low-maintenance endeavor, it also means that complex requirements need to be coded if nobody has done it before.
Today, I automated image previews that can be used to display a nice preview through for Open Graph (and Twitter cards!).
The Open Graph protocol enables any web page to become a rich object in a social graph. My blog, however, is text-heavy and often misses the images, so I had to come up with something else.
In the end, I settled with a solution (code below) that displays a static image with some text on top, including the title, a snippet of the blog, and the URL.
The snippet can be explicitly set in the front matter with the snippet key, otherwise it will take the first characters of the post itself.
To make it all work, you need a couple of things in your Hugo theme
Here, og_base.png is just the empty image used to write text on, like:
The fonts are just the fonds, and opengraph.html contains:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In the quoted toot, Lyz Lenz offers the wrong solution to a wide-spread societal problem: men who have remained children.
Our society tries to delay or prevent people growing up: making irreversible decisions, taking responsibility, caring for someone else more than for yourself, suffering.
Women are forced to much of the above when they become mothers (an irreversible decision, they take responsibility for the newborn, they will defend their child with their life, and laboring is a lot of suffering).
Men, on the other hand, can skip everything when they become fathers: they can leave and, when they stay, they can pretend to continue as nothing happened.
The tragedy is a that the situation creates a vicious cycle: as the father is absent or doesn’t take up his duties as a father, the mother protects her child even more, making it hard for the child to grow.
I’ve added a page about my public appearances throughout the years. I still have to figure out how to make it load faster with all those pesky videos coming from youtube!
What’s happening in China is really interesting. If we trust their official figures and estimates, the economy was driven by 3 things:
Real estate (who’s crashing hard)
Consumer spending (who’s in decline, as their population is not growing and aging)
Exports (who are threatened by India and South East Asia)
As 1. is crashing, consumers—who put most of their savings in, guess what, real estate—are more conscious about spending, hurting another good 30% of their economy.
So, 2/3 of their economy is hurting and will hurt more badly in 2024.
The Chinese’s and Hong Kong’s markets are also spooked, having shed USD 1.5 TRN in January alone.
As my work email is hosted by Microsoft, I’m bugged to no end by this system, which doesn’t make it easy to extract the URL in a readable format (read the blog if you want to know more shortcomings of the system).
For a couple of years, I have a Typinator snippet that decodes the URL, so that by typing ;dec, the following script is triggered
The script is not perfect, but, since defining it, Typinator analytics tell me I’ve used it some hundred times and I can’t recall when it didn’t just work.
Too often universities reflexively try to mollify students rather than have them grapple with ideas they find unsettling, says Edward Hall, a philosophy professor at Harvard. Administrators see an angry or upset student in their office and instantly try to make them feel better.
A failure of good parenting for those who grew up in the wave of the 60s and 70s?
By contrast the illiberal left put their own power at the centre of things, because they are sure real progress is possible only after they have first seen to it that racial, sexual and other hierarchies are dismantled.
I’ve missed this article when it came out. What an astute analysis.
I’ve been bitten by this bug since getting a new Apple Watch.
Unfortunately, I had to revert to resetting all my location and privacy data on my iPhone, meaning I’m now continuously prompted by iOS if I give permission to all my apps for location, camera, bluetooth, and what not.
I wished I had waited, though. watchOS 10.1 fixes this bug.