Nikolas

CSS Demo

Table of Contents

For a quick cheatsheet, check out https://simplemde.com/markdown-guide.


This article offers a sample of basic Markdown syntax that can be used in Zola content files, also it shows whether basic HTML elements are decorated with CSS in a Zola 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.

H1

H2

H3

H4

H5
H6

Sometimes we want to link stuff, or make it bold, or italic.

Paragraph

Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.

This is an article

Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.

Blockquotes

The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations.

Blockquote without attribution

Tiam, ad mint andaepu dandae nostion secatur sequo quae. Note that you can use Markdown syntax within a blockquote.

Blockquote with attribution

Don't communicate by sharing memory, share memory by communicating.
Rob Pike

Tables

Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.

ItalicsBoldCode
italicsboldcode

Wide, scrolly table

Name Number Opinion on cheese Favourite tea Colour of choice Unusual fact Horse?
Jackie 012345 Sometimes Earl grey, hot Blue Communicates exclusively in metaphors Aye
Lucy 112346 Only on Tuesdays The green one The green one Caught a glimpse of an Australian badger Aye
David 493029 Always eat the rind London fog Purple Has never been to London Aye
Kerry 395499 It's on the moon Camomile Yellow Has been to the moon Aye
Steve 002458 No Black tea brewed using ISO 3103 Chestnut Has a 350° field of view Neigh
A wide table showing horizontal scroll behavior.

Markdown table without <figure>

These overflow.

NameAgeWidth
Bob272
Alice23oveeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeer 9000

Code Blocks

Most importantly, code can be inline just fine.

Code block with backticks

prices = {'apple': 0.40, 'banana': 0.50}
my_purchase = {
  'apple': 1,
  'banana': 6
}
grocery_bill = sum(prices[fruit] * my_purchase[fruit]
                   for fruit in my_purchase)
print('I owe the grocer $%.2f' % grocery_bill)

Now for something more beautiful. R.

library("sf")
s <- st_read("data/shp")
s |> dplyr::select(that_variable) |> plot()

Code block indented with four spaces

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Example HTML5 Document</title>
</head>
<body>
  <p>Test</p>
</body>
</html>

Images

This other theme had this beautiful guy in it:

good boi

Or <aside> with a caption:

List Types

Ordered List

  1. First item
  2. Second item
  3. Third item

Unordered List

Nested list

Accordions

These are done rather lazily

I'm just using details/summary. 🙂

It's kinda strange ...

when they nest, tho.

I like to put buttons inside

Other Elements — abbr, sub, sup, kbd, mark

GIF is a bitmap image format.

H2O

Xn + Yn = Zn

Press CTRL+ALT+Delete to end the session. If you really want to do that, that is. Consider ALT + F4 too.

Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.

The "Take me home, without scrolling"-Button

Math

You can use LaTeX math syntax in your markdown files. For example, the equation $E=mc^2$ is inline, and the equation $$ \int_{a}^{b} f(x) , \dx $$ is displayed.

Tags: #markdown #css