mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-26 15:51:43 +00:00
61 lines
1.9 KiB
Markdown
61 lines
1.9 KiB
Markdown
|
---
|
||
|
title: "Hello Hugo!"
|
||
|
description: "Saying 'Hello' from Hugo"
|
||
|
date: "2014-04-08"
|
||
|
categories:
|
||
|
- "example"
|
||
|
- "hello"
|
||
|
tags:
|
||
|
- "example"
|
||
|
- "hugo"
|
||
|
- "blog"
|
||
|
---
|
||
|
|
||
|
Hello from Hugo! If you're reading this in your browser, good job! The file `content/post/hello-hugo.md` has been
|
||
|
converted into a complete html document by Hugo. Isn't that pretty nifty?
|
||
|
|
||
|
A Section
|
||
|
---------
|
||
|
|
||
|
Here's a simple titled section where you can place whatever information you want.
|
||
|
|
||
|
You can use inline HTML if you want, but really there's not much that markdown can't do.
|
||
|
|
||
|
Showing Off With Markdown
|
||
|
-------------------------
|
||
|
|
||
|
A full cheat sheet can be found [here](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet)
|
||
|
or through [google](https://google.com/).
|
||
|
|
||
|
There are some *easy* examples for styling, though. I can't **emphasize** that enough.
|
||
|
Creating [links](https://google.com/) or `inline code` blocks are very straightforward.
|
||
|
|
||
|
```
|
||
|
There are some *easy* examples for styling, though. I can't **emphasize** that enough.
|
||
|
Creating [links](https://google.com/) or `inline code` blocks are very straightforward.
|
||
|
```
|
||
|
|
||
|
Front Matter For Fun
|
||
|
--------------------
|
||
|
|
||
|
This is the meta data for this post. It is located at the top of the `content/post/hello-hugo.md` markdown file.
|
||
|
|
||
|
```
|
||
|
---
|
||
|
title: "Hello Hugo!"
|
||
|
description: "Saying 'Hello' from Hugo"
|
||
|
date: "2014-04-09"
|
||
|
categories:
|
||
|
- "example"
|
||
|
- "hello"
|
||
|
tags:
|
||
|
- "example"
|
||
|
- "hugo"
|
||
|
- "blog"
|
||
|
---
|
||
|
```
|
||
|
|
||
|
This section, called 'Front Matter', is what tells Hugo about the content in this file. The title of the item,the
|
||
|
description, the date it was posted. In our example we're adding two custom bits of data, too. The `categories` and
|
||
|
`tags` sections are used in this example for indexing/grouping content. You will learn more about what that means by
|
||
|
examining the code in this example and through reading the Hugo [documentation](http://hugo.spf13.com/overview/introduction)
|