More things in March

Posted on Sun 23 March 2025 in studying • 2 min read

Australian Pelican in flight. Image by Penny from Pixabay

Australian Pelican in flight. Image by Penny from Pixabay

I've been busy looking for a new job and all the pain that comes with that, and in the meanwhile trying to make this blog nicer. One of this days I'll make a similar post to the one I made in 2013 on how to make a your own static site like this one using Pelican and Github pages but I'll just share some stuff for now.

So I found out you can customize the Markdown Pelican understands by configuring Python Markdown, you can enable and configure some extensions it has built in and third-party ones by creating a dictionary on your pelicanconf.py like

MARKDOWN = {
    'extensions': ['codehilite', 'extra', 'footnotes', 'toc', 'abbr'],
    'extension_configs': {
        'markdown.extensions.codehilite': {'css_class': 'highlight'},
    }
}

I need to comment my own config file, but I believe besides the defaults I'm enabling the Table of Contents and Abbreviations extensions. A tip, Python Markdown is not restricted to Pelican so you can use it and enable this and other extension whenever you need to parse some Markdown.

I also got some extension to Pelican itself enabled and working. I was already using sitemap before to generate a sitemap.xml. Now you can see an estimation of how long it will take to read and article thanks to the statistics extension, share the articles without exposing your privacy thanks to share-post (I submmited a PR to add the article title to the Bluesky intent URL).

I'm also planning to use series to be able to join multiple articles into series of articles, markdown-include to inject the contents of a file like source code or a some other markdown file on an article, and I'm looking at a solution to generate captions for images and to make images more responsive, as in generate version of the images in the article so the visitor browser only downloads the highest resolution image it can show given the space for the image on the page, but something like the extension image-process relies on capabilities that you can't have when using Markdown so I'll be looking into that.

I have also tried to dip my toes again into Golang and Verilog (to simulate the Alto on a FPGA). I was convinced for a few days that with some effort I can get myself to understand BNF and parsing so I could write a BCPL parser, maybe later I'll give it another try. I'm also writing an article about Terra (the language) and how to generate binaries to run on "bare metal", so watch out for that.

I REALLY need to get back to studing ReactJS 😅

Stay safe and stay alive!

Share on: Email | Diaspora | Facebook | Hacker News | LinkedIn | Mastodon | Reddit | Twitter | Bluesky