Skip to main content

Congo Formatting Showcase

·2 mins

Text Formatting #

This is bold, this is italic, this is bold italic, and this is strikethrough.

This is inline code in a sentence.

This is a blockquote. It can span multiple lines and is useful for calling out important information or quoting sources.


Headings #

Third Level #

Fourth Level #

Fifth Level #

Here is a link to Hugo and here is an auto-linked URL: https://example.com

Placeholder image


Lists #

Unordered #

  • First item
  • Second item
    • Nested item
    • Another nested item
  • Third item

Ordered #

  1. First step
  2. Second step
    1. Sub-step A
    2. Sub-step B
  3. Third step

Task List #

  • Set up Hugo
  • Install Congo theme
  • Write more posts
  • Configure ox-hugo

Code Blocks #

Inline: print("hello")

Python with syntax highlighting:

import numpy as np
import matplotlib.pyplot as plt

def fibonacci(n: int) -> list[int]:
    """Generate the first n Fibonacci numbers."""
    fib = [0, 1]
    for _ in range(2, n):
        fib.append(fib[-1] + fib[-2])
    return fib

nums = fibonacci(20)
plt.plot(nums)
plt.title("Fibonacci Growth")
plt.show()

Bash:

#!/bin/bash
for service in radarr sonarr lidarr; do
    echo "Restarting $service..."
    docker compose restart "$service"
done

YAML:

services:
  caddy:
    image: caddy:latest
    ports:
      - "80:80"
      - "443:443"
    restart: unless-stopped

Emacs Lisp:

(defun my/org-hugo-export ()
  "Export current org subtree to Hugo markdown."
  (interactive)
  (org-hugo-export-wim-to-md t))

Tables #

Service Port Status
Plex 32400 Running
Radarr 7878 Running
Sonarr 8989 Running
Gitea 3000 Running

Math (KaTeX) #

Inline math: (E = mc^2)

Block math:

$$ \int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi} $$

$$ \nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t} $$ #

Footnotes #

This statement needs a citation1. And here is another2.


Definition List #

Hugo
A fast static site generator written in Go.
Congo
A Hugo theme with dark mode, search, and many features.
ox-hugo
An Emacs package to export Org Mode to Hugo-compatible Markdown.

Keyboard Shortcuts #

Press Ctrl + C Ctrl + V to tangle in Org Mode.


Embedded Content #

YouTube (via shortcode) #

Streamlit App (via iframe) #


Summary / Details #

Click to expand hidden content

This content is hidden by default. Useful for long code blocks, spoilers, or supplementary material.

# Secret code
print("You found me!")

  1. This is the first footnote with a longer explanation. ↩︎

  2. Second footnote. ↩︎