From 9145dd6971f17079ac1b2b8eb38c12146f980ff9 Mon Sep 17 00:00:00 2001 From: vjeantet Date: Fri, 25 Sep 2020 08:53:14 +0200 Subject: change page frontmatter example to yaml --- .../00-adding-content/_index.md | 49 ++++++++++++---------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/exampleSite/content/content-and-customization/00-adding-content/_index.md b/exampleSite/content/content-and-customization/00-adding-content/_index.md index cbe1097..baa0639 100644 --- a/exampleSite/content/content-and-customization/00-adding-content/_index.md +++ b/exampleSite/content/content-and-customization/00-adding-content/_index.md @@ -63,28 +63,33 @@ Use the frontmatter to specify the page title, description, creation date, link On top of the [existing ones](https://gohugo.io/content-management/front-matter/), DocPort comes with additional params to control what and how to display your content, their entry in left menu or behaviour. -```toml -+++ - title="Adding content" - - # order sections - weight=10 - - # Hide some page components - hide= header, nav, breadcrumb, toc, footer, nextpage - - # subpage - subpage = false # usefull when you want to force a sub section to be considered as a subpage - - # Redirect to another content - # Set a full URL or a .md path - # examples : - # redirect = "https://github.com/vjeantet" - # redirect = "folder" - # redirect = "folder/_index.md" - redirect = "folder/_index.md" - -+++ +```yaml +--- +title: "Adding content" + +# order sections +weight: 10 + +# Hide some page components +hide: +- header +- nav +- breadcrumb +- toc +- nextpage +- footer + +# subpage +subpage: false # usefull when you want to force a sub section to be considered as a subpage + +# Redirect to another content +# Set a full URL or a .md path +# examples : +# redirect = "https://github.com/vjeantet" +# redirect = "folder" +# redirect = "folder/_index.md" +redirect: "folder/_index.md" +--- ``` {{%alert success%}}More frontmatter params exists to control how to display you content in the navigation, see [Navigation & Search]({{%relref "02-navigation-search" %}}) in the left menu.{{%/alert%}} \ No newline at end of file -- cgit v1.2.3