Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog/content/post/another-post.md')
-rw-r--r--examples/blog/content/post/another-post.md55
1 files changed, 55 insertions, 0 deletions
diff --git a/examples/blog/content/post/another-post.md b/examples/blog/content/post/another-post.md
new file mode 100644
index 000000000..2db5a923b
--- /dev/null
+++ b/examples/blog/content/post/another-post.md
@@ -0,0 +1,55 @@
++++
+title = "Another Hugo Post"
+description = "Nothing special, but one post is boring."
+date = "2014-04-09"
+categories = [ "example", "configuration" ]
+tags = [
+ "example",
+ "hugo",
+ "toml"
+]
++++
+
+TOML, YAML, JSON - Oh my!
+-------------------------
+
+One of the nifty Hugo features we should cover: flexible configuration and front matter formats! This entry has front
+matter in `toml`, unlike the last one which used `yaml`, and `json` is also available if that's your preference.
+
+The `toml` front matter used on this entry:
+
+```
++++
+title = "Another Hugo Post"
+description = "Nothing special, but one post is boring."
+date = "2014-04-09"
+categories = [ "example", "configuration" ]
+tags = [
+ "example",
+ "hugo",
+ "toml"
+]
++++
+```
+
+This flexibility also extends to your site's global configuration file. You're free to use any format you prefer, simply
+name the file `config.yaml`, `config.toml`, or `config.json` and go on your merry way.
+
+JSON Example
+------------
+
+How would this entry's front matter look in `json`? That's easy enough to demonstrate:
+
+```
+{
+ "title": "Another Hugo Post",
+ "description": "Nothing special, but one post is boring.",
+ "date": "2014-04-09",
+ "categories": [ "example", "configuration" ],
+ "tags": [
+ "example",
+ "hugo",
+ "toml"
+ ],
+}
+``` \ No newline at end of file