Update documentation for single page website layout
This commit is contained in:
@@ -9,12 +9,8 @@ paginate = 10
|
||||
showMenuItems = 2
|
||||
fullWidthTheme = false
|
||||
centerTheme = false
|
||||
|
||||
# singlePageSite moves pages from the main nav menu to sections on the homepage.
|
||||
# Only menu items with a url starting with "/#" will be displayed using the
|
||||
# front matter defined in "homepage/". The standard collection is displayed for other menu items.
|
||||
singlePageSite = true
|
||||
homepagePaginateCount = 10 # If you want the homepage to paginate a different numebr of items
|
||||
singlePageSite = false
|
||||
homepageNavEntriesDontRender = ["showcase"]
|
||||
|
||||
[languages]
|
||||
[languages.en]
|
||||
@@ -32,9 +28,9 @@ paginate = 10
|
||||
|
||||
[languages.en.menu]
|
||||
[[languages.en.menu.main]]
|
||||
identifier = "homepage-info"
|
||||
identifier = "section"
|
||||
name = "Homepage Section"
|
||||
url = "#/section"
|
||||
url = "/#section"
|
||||
[[languages.en.menu.main]]
|
||||
identifier = "about"
|
||||
name = "About"
|
||||
|
||||
@@ -4,9 +4,9 @@ cover = "img/hello.jpg"
|
||||
layout = "2col-right"
|
||||
+++
|
||||
|
||||
**Hi there!** This is a section dedicated for a homepage.
|
||||
This is a section dedicated for a single-page-site homepage.
|
||||
There are 3 layouts supported for the homepage sections:
|
||||
|
||||
- `2col-right` - The layout for this section with the cover image appearing on the left and the front-matter on the right
|
||||
- `2col-left` - The layout for this section has the cover image on the right and front-matter on the left
|
||||
- `default` - The default layout for the section matching the post layout with the image appearing above the front-matter
|
||||
- `2col-right` - Two column layout for this section with the cover image appearing on the left and the front-matter on the right
|
||||
- `2col-left` - Two column layout for this section has the cover image on the right and front-matter on the left
|
||||
- `default` - The default layout for the section matching the post layout with the cover image appearing above the front-matter in a single column
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
title = "Hello Friend"
|
||||
date = "2019-01-25"
|
||||
author = "Lorem Ipsum"
|
||||
cover = "hello.jpg"
|
||||
cover = "img/hello.jpg"
|
||||
description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec interdum metus. Aenean rutrum ligula sodales ex auctor, sed tempus dui mollis. Curabitur ipsum dui, aliquet nec commodo at, tristique eget ante."
|
||||
+++
|
||||
|
||||
|
||||
Reference in New Issue
Block a user