Tag: markdown

Folderize your post for SSG

Since I have converted my blog to Zola, I started using assets a little bit more in the posts. I am still not sure if it is the right thing, but for now it helps me convey information in addition to text. To embed a photo into the post, there are at least two main options availab…

Markdown posts by word count in bash

I wanted to quickly overview the word count on my blog posts to roughly calculate the possible translation count and here's a one-liner I have come up with: find . -maxdepth 1 -type f -name "*.md" -exec printf "{} " \; -exec ~/.local/bin/mwc {} \; | awk '…

YAML metadata in Markdown

When I try to make my blog posts from the Markdown documents, I usually need to put the metadata somewhere. Since there is no database present, one place to put where they can be put is right into the document. Metadata are data about the data. In the context of blog posts, metad…

Using CSS selectors on Markdown in JS

It is possible target specific elements in a DOM via CSS using selectors h2 { /* property: value; */ } It is also possible to use CSS selector in JS DOM const elements = document.querySelector("h2") With the advent of a JAMstack it is also possible to target Mar…