Nick's Blog Hopefully interesting.

Lightgallery in Markdown

Many people use mkdocs for their documentation needs. Implementing a working lightbox for images does seem to be hard for some people to do! Getting a working lightbox js extension for all images in your Mardown docs is actually fairly simple, with the lightgallery-markdown package on Github.

Python Word Puzzle Solver

The Problem

We are given 7 numbers that are linked to a number in the alphabet (1=A, 2=B…26=Z). We must then use those 7 numbers to find an english word that fits the clue. Each number, however, is linked to that letter in the alphabet, plus the next 4 letters. This gives us n+4 combinations for the number given. For example, if we are given the number 1, this could be A, B, C, D, E, or F. We then must find the cartesian product of all possible combinations of letters. We must use the 7 numbers given find a single 7 letter word that fits a clue.

Markdown Syntax

This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.

Headings

The following HTML <h1>β€”<h6> elements represent six levels of section headings. <h1> is the highest section level while <h6> is the lowest.

Emoji Support

Emoji can be enabled in a Hugo project in a number of ways.

The emojify function can be called directly in templates or Inline Shortcodes.

To enable emoji globally, set enableEmoji to true in your site’s configuration and then you can type emoji shorthand codes directly in content files; e.g.

:s ee_no_evil:[Remove the space] πŸ™ˆ :h ear_no_evil:[Remove the space] πŸ™‰ :s peak_no_evil:[Remove the space] πŸ™Š