A Simple Styling Shortcode for Hugo

I’ve always had a preference for serif fonts when writing in Russian. Since some of my posts here are written in Russian I needed a quick way of marking up the formatting for the Russian portion of my post, as in this post. Just a simple shortcode specifying a CSS class:

<span class="russian">{{ .Inner | markdownify }}</span>

In action, applying the desired CSS for the russian class, we have:

Russian shortcode in action

Alan Duncan avatar
About Alan Duncan
Ertswhile physician. Musician. Polymath. Language geek. French C2. Russian B2. Contact me here if you must.