mirror of
https://codeberg.org/hyperreal/techne
synced 2024-11-01 14:23:06 +01:00
44 lines
1.0 KiB
Org Mode
44 lines
1.0 KiB
Org Mode
|
#+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
|