ads' corner

check-markdown-files: pre-commit checks for blog postings written in Markdown

After switching my blogs to a static blogging engine, I found a number of preventable issues. Certain syntax errors, forgot tags, or forgot a description, or forgot a preview picture, or forgot an image. This kind of things. So I wrote check-markdown-files.py, which now scans all my blog postings before committing the posting to git. Any known error is raised, and aborts the commit. Each problem has an override switch in case it is a false positive.

ERROR deprecated: site config key paginate was deprecated in Hugo v0.128.0 and subsequently removed. Use pagination.pagerSize instead.

While upgrading my Arch/Manjaro system I got Hugo upgraded to version 0.128.0. This version removes the paginate config option.

WARN deprecated: resources.ToCSS was deprecated in Hugo v0.128.0 and will be removed in a future release. Use css.Sass instead

While upgrading my Arch/Manjaro system I got Hugo upgraded to version 0.128.0. This version removes the resources.ToCSS feature.

ERROR deprecated: data.GetJSON was deprecated in Hugo v0.123.0 and will be removed in Hugo 0.140.0. use resources.Get or resources.GetRemote with transform.Unmarshal

Every goHugo update brings new surprises, most daring are the deprecated features which are now removed. This time I ran into the deprecated data.GetJSON feature which was removed.

Hugo Blog: Find postings without comment id

In a previous blog posting I explained hwo to add comments using your *Mastodon* account. It so happens that I occasionally forget to add the origin *Mastodon* comment ID to the posting. So I wrote a script.

Client-side comments with Mastodon on a static Hugo website

Ever since I moved this blog to Hugo from Serendipity, I missing the comment option a bit. This is something which a static blogging engine does not offer out of the box. And I did not migrate all the comments from my old blog to my new blog. Inspired by a couple of postings which integrate Mastodon as comments into static blogs, I set out to add this to my own blog.

Blockquotes in Hugo

Hugo uses Markdown to create the content, which is then parsed into static HTML. One of the features of Markdown are quotes. Multiline quotes (block quotes) are possible, but they are not very intuitive.

How to integrate YouTube videos into Hugo blog postings

This tutorial explains how to integrate YouTube videos into a blog posting in Hugo.

New Blog

New blog. Or, more exactly, new blog software. I moved this blog from Serendipity to Hugo.

Dynamic content in static websites in Hugo

With people moving away from Twitter, mostly to Mastodon, discovering the new accounts became a problem. For people in the PostgreSQL community I created a website which lists different social media accounts.