
Theme Documentation - Content
Contents
Find out how to create and organize your content quickly and intuitively in FeelIt theme.
1 Contents Organization
A few suggestions to help you get a good looking site quickly:
- Keep post pages in the
content/postsdirectory, for example:content/posts/my-first-post.md - Keep other pages in the
contentdirectory, for example:content/about.md - Local resources organization
Local Resource Reference
There are three ways to reference local resources such as images and music:
- Using page resources in page bundles.
You can reference page resources by the value for
Resources.GetMatchor the filepath of the resource relative to the page directory directly. - Store resources in the assets directory, which is
/assetsby default. The filepath of the resource to reference in the post is relative to the assets directory. - Store resources in the static directory, which is
/staticby default. The filepath of the resource to reference in the post is relative to the static directory.
The priority of references is also in the above order.
There are many places in the theme where the above local resource references can be used,
such as links, images, image shortcode, music shortcode and some params in the front matter.
Images in page resources or assets directory processing will be supported in the future. It’s really cool!
2 Front Matter
Hugo allows you to add front matter in yaml, toml or json to your content files.

