From b7049ae2031fdf3f49e271f6782a6a26aae40ac7 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Tue, 22 Oct 2024 21:18:43 -0500 Subject: [PATCH] Add hugo.org --- README.org | 1 + hugo.org | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 hugo.org diff --git a/README.org b/README.org index fe7e38a..d33a0ae 100644 --- a/README.org +++ b/README.org @@ -18,6 +18,7 @@ This is a collection of notes on tech and other things. Intended audience: mostl - [[file:firewalld.org][Firewalld]] - [[file:gitlab.org][GitLab]] - [[file:grafana.org][Grafana]] +- [[file:hugo.org][Hugo]] - [[file:internet-archive.org][Internet Archive]] - [[file:kernel.org][Kernel]] - [[file:lemmy.org][Lemmy]] diff --git a/hugo.org b/hugo.org new file mode 100644 index 0000000..679080c --- /dev/null +++ b/hugo.org @@ -0,0 +1,43 @@ +#+TITLE: Hugo + +** Org Mode to Hugo +*** Text formatting +| Org Mode | Comments | +|--------------------+---------------------+ +| `*Bold text*` | Bold text | +| `/Italic text/` | Italic text | +| `_Underline_` | Underline text | +| `=Verbatim=` | Verbatim text | +| `+Strike-through+` | Strike-through text | + +*** Adding images +#+BEGIN_SRC org +=#+ATTR_HTML:= :width 100% :height 100% :class border-2 :alt Description :title Image title +=[[./path/to/image.jpg]]= +#+END_SRC + +*** Adding metadata +#+BEGIN_SRC org +=#+TITLE:= Your title +=#+DATE:= 2024-10-22 +=#+TAGS[]:= hugo org-mode writing +=#+DRAFT:= false +=#+AUTHOR:= hyperreal +=#+SLUG:= your-title +=#+DESCRIPTION:= Description +=#+CATEGORIES:= blogging +=#+IMAGES[]:= /images/image.jpg +=#+WEIGHT:= 10 +=#+LASTMOD:= 2024-10-23 +=#+KEYWORDS[]:= hugo org-mode tutorial +=#+LAYOUT:= post +=#+SERIES:= Techne +=#+SUMMARY:= Summary +=#+TYPE:= Tutorial + +=* Main content= +#+END_SRC + +#+BEGIN_QUOTE +Note: tags must not contain spaces. Use underscores or en-dashes. +#+END_QUOTE