Content

by Gisle Hannemyr

This chapter is intended to give you a basic understanding of how to create and manage content using the Grav WCMS. It introduces the three page types that is part of the Grav core, with some brief notes about how to use and extend them.

Table of contents

Grav plugins discussed in this chapter: Feed.

Introduction

Content is of course what web publishing is all about. There is little point in having a website without content.

Markup

The default markup language for Grav is Markdown, but you can also use HTML mixed with Markdown inside the flat .md file.

You may turn off markdown processing for a single in the page, or site-wide, with this;

process:
  markdown: false

For a single page, place it in the page's frontmatter. To do this for an entire site, put it in user/config/system.yaml.

Grav core page types

See also: Learn.GetGrav.org: Pages.

Frontmatter

The frontmatter (sometimes called “headers” in Grav documentation) is used to set metadata for a page. They appear at the beginning of the .md file, between to lines of three dashes. Example:

---
title: Test page
body_classes: title-center title-h1h2
process:
  markdown: false
---

The frontmatter is optional.

There are 3 primary types of pages (Standard, Listing, and Modular) within Grav, and each has relevant headers.

[TBA]

See also: Learn.GetGrav.org: Headers/Frontmatter.

RSS

Candidate: Feed.

Final word

[TBA]


Last update: 2020-05-07 [gh].