whats this?

21-10-2021

This is a sample post, written in github-flavored markdown.

It’s generated using a minimal static-site generator,
called nix, which itself is ~150 lines of ruby code.

Here’s how it renders:

This is a footnote1

A horizontal ruler follows:


This is an h2 header

This is an h3 header

This is an h4 header

… and this is a blockquote:

A sentence should contain no unnecessary words, a paragraph no unnecessary
sentences, for the same reason that a drawing should have no unnecessary
lines and a machine no unnecessary parts. This requires not that the writer
make all his sentences short, or that he avoid all detail and treat his
subjects only in outline, but that every word tell.

From The Elements of Style, William Strunk

Syntax highlighting

posts include syntax highlighting, via pygments:

Javascript

let fact = 1

for (i = 1; i <= number; i++)
  fact *= i

console.log(`The factorial of ${number} is ${fact}.`)

Ruby

a = [:foo, 'bar', 2]

a.reverse_each do |element| 
puts "#{element.class} #{element}" 
end

Bash

#!/bin/bash

i=1
while [[ $i -le 10 ]] ; do
echo "$i"
(( i += 1 ))
done

More

this is a list:

… and this is an SVG image of Felix The Housecat:

Felix the Housecat, the cartoon

This project was inspired by: The 1kb club.

Footnotes

  1. Garner, Bryan A. (2009). Garner on Language and Writing: Selected Essays z and Speeches of Bryan A. Garner. Chicago: American Bar Association. p. 295. ISBN 978-1-60442-445-4.