diff options
author | vjeantet <valere.jeantet@gmail.com> | 2020-09-25 09:53:14 +0300 |
---|---|---|
committer | vjeantet <valere.jeantet@gmail.com> | 2020-09-25 09:53:14 +0300 |
commit | 9145dd6971f17079ac1b2b8eb38c12146f980ff9 (patch) | |
tree | d89edfe4e60c608b587f0d91c1ce85dbada0ec17 /exampleSite | |
parent | 7be0f0100603f28dc1a1e770d8a8f90af2908a6c (diff) |
change page frontmatter example to yaml
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/content/content-and-customization/00-adding-content/_index.md | 49 |
1 files 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 |