This page describes the concepts that you need to add content to your Urubu project.

Website structure

The website structure matches the project directory structure exactly. This feature makes it easy to organize content and to refer to other pages.

Each file with extension .md is a content file that corresponds to a website page. Upon a website build, each content file is compiled into a .html page. All other files and directories are copied to the website, except those whose names start with an underscore _.

Content files

A content file starts with a section between triple dashes ---. This is the YAML frontmatter with page variables such as title and layout.

After the frontmatter follows the actual content. The format is Markdown with extensions.

Layouts

Each content file uses the layout variable to specify the look of the page.

Urubu Quickstart defines a number of layouts. The page layout yields a page with a sidebar for the table of contents. If you don't need a sidebar, use the simple_page layout.

Reference ids

Urubu resolves reference ids in Markdown content, specified by the syntax [<reference-id>].

Reference ids are names that refer to links. In Urubu, the pathname of a page or folder (without extension) can be used as its reference id. In addition, the reflinks variable in file _site.yml defines reference ids for external urls.

Folders

A project subdirectory maps to a folder on the website. The folder content is defined in the index.md file. The first option is to list the folder content explicitly in content variable, as a list of reference ids. As an example, see Manual demo. The second option is to specify the content ordering. For example, for a blog you would set the order variable to date, and the reverse variable to true. As an example, see Blog demo.

For index.md files, you can use the index layout, which lists the contents of the folder.

The navbar at the top is defined by the content variable of the top-level index.md file.