Skip to content

Commit

Permalink
Add a table to show how to implicitly represent Hugo front matter
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalmodi committed Jul 25, 2017
1 parent e7695ca commit ff88b6b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.org
Expand Up @@ -100,6 +100,18 @@ translate to Hugo front matter:
functions.
- (and much more..)

* Implicit setting of Hugo front matter variables in Org
|---------------------------+----------------------------+--------------------------------------|
| Hugo front matter (TOML) | Org | Org description |
|---------------------------+----------------------------+--------------------------------------|
| =title = "foo"= | =* foo= | Heading |
| =date = 2017-07-24= | =:EXPORT_DATE: 2017-07-24= | Subtree property |
| =tags = ["abc", "def"]= | =* foo :abc:def:= | Heading tags |
| =categories = ["x", "y"]= | =* foo :@x:@y:= | Heading tags with =@= prefix |
| =draft = true= | =* TODO foo= | Heading set to TODO (or DRAFT) |
| =draft = false= | =* foo= | Heading *not* set to TODO (or DRAFT) |
|---------------------------+----------------------------+--------------------------------------|

* Try =ox-hugo=
1. Clone this repo.
2. Run =hugo server --buildDrafts --buildFuture --navigateToChanged= in
Expand Down

0 comments on commit ff88b6b

Please sign in to comment.