Photoswipe Gallery Sample

Beautiful Hugo adds a few custom shortcodes created by Li-Wen Yip and Gert-Jan van den Berg for making galleries with PhotoSwipe .

{{< gallery caption-effect="fade" >}} {{< figure thumb="-thumb" link="/img/hexagon.jpg" >}} {{< figure thumb="-thumb" link="/img/sphere.jpg" caption="Sphere" >}} {{< figure thumb="-thumb" link="/img/triangle.jpg" caption="Triangle" alt …

more ...

Math Sample

KaTeX can be used to generate complex math formulas. It supports in-line math using the \\( ... \\) delimiters, like this: \( E = mc^2 \). By default, it does not support in-line delimiters $...$ because those occur too commonly in typical webpages. It supports displayed math using the $$ or \\[...\\] delimiters, like this:

Formula 1: $$ \phi …

more ...

Code Sample

The following are two code samples using syntax highlighting.

The following is a code sample using triple backticks ( ``` ) code fencing provided in Hugo. This is client side highlighting and does not require any special installation.

    var num1, num2, sum
    num1 = prompt("Enter first number")
    num2 = prompt("Enter second number")
    sum …
more ...

Flake it till you make it

Under what circumstances should we step off a path? When is it essential that we finish what we start? If I bought a bag of peanuts and had an allergic reaction, no one would fault me if I threw it out. If I ended a relationship with a woman who …

more ...


To be

To be, or not to be--that is the question: Whether 'tis nobler in the mind to suffer The slings and arrows of outrageous fortune Or to take arms against a sea of troubles And by opposing end them. To die, to sleep-- No more--and by a sleep to say we …

more ...

Soccer

From Wikipedia:

Association football, more commonly known as football or soccer,[2] is a sport played between two teams of eleven players with a spherical ball. It is played by 250 million players in over 200 countries, making it the world's most popular sport.[3][4][5][6] The game …

more ...

Doggerel

From wikipedia

Doggerel, or doggrel, is poetry that is irregular in rhythm and in rhyme, often deliberately for burlesque or comic effect. Alternatively, it can mean verse which has a monotonous rhythm, easy rhyme, and cheap or trivial meaning. The word is derived from the Middle English dogerel, probably a …

more ...

Slave to the Green

Just dragged one of my Perl modules at work up to 100% coverage using Devel::Cover!

I have to confess to more than a little satisfaction at this. :-)

Tangentially, Googling for "Slave to the Green" brings up a lot of links about "Orion Slave Girls". Warning: NSFW.

more ...