Document sidebar and show in example

This commit is contained in:
StefMa
2021-02-11 14:03:15 +01:00
parent 6b73277313
commit bd7401ae8c
2 changed files with 94 additions and 14 deletions

View File

@@ -39,7 +39,7 @@ Define the logo of the navigationbar in the upper left corner.
<details> <details>
<summary>Code</summary> <summary>Code</summary>
``` ```yaml
navbarlogo: navbarlogo:
image: logos/fresh.svg # Logo (from static/images/logos/) image: logos/fresh.svg # Logo (from static/images/logos/)
link: / link: /
@@ -53,7 +53,7 @@ Set the font of the site.
<details> <details>
<summary>Code</summary> <summary>Code</summary>
``` ```yaml
font: font:
name: "Open Sans" name: "Open Sans"
sizes: [400,600] sizes: [400,600]
@@ -66,7 +66,8 @@ The "main" page which you see when you open the website.
<details> <details>
<summary>Code</summary> <summary>Code</summary>
```
```yaml
hero: hero:
title: Manage. Deploy. title: Manage. Deploy.
subtitle: Lorem ipsum sit dolor amet is dummy text used by the typography industry subtitle: Lorem ipsum sit dolor amet is dummy text used by the typography industry
@@ -91,7 +92,7 @@ For a dropdown, add a "sublinks" list.
<details> <details>
<summary>Code</summary> <summary>Code</summary>
``` ```yaml
navbar: navbar:
- title: Features - title: Features
url: / url: /
@@ -114,13 +115,58 @@ navbar:
</details> </details>
#### sidebar
The sidebar is an optional parameter where you can place even more navigation items.
<details>
<summary>Code</summary>
```yaml
sidebar:
# Logo (from /images/logos/___.svg)
logo: fresh-square
sections:
- title: User
icon: user
links:
- text: Profile
url: /
- text: Account
url: /
- text: Settings
url: /
- title: Messages
icon: envelope
links:
- text: Inbox
url: /
- text: Compose
url: /
- title: Images
icon: image
links:
- text: Library
url: /
- text: Upload
url: /
- title: Settings
icon: cog
links:
- text: User settings
url: /
- text: App settings
url: /
```
</details>
#### section1 #### section1
Describes the second "page" which you will see when you scroll down. Currently it will have **always** three `titles`. Describes the second "page" which you will see when you scroll down. Currently it will have **always** three `titles`.
<details> <details>
<summary>Code</summary> <summary>Code</summary>
``` ```yaml
section1: section1:
title: Great power comes title: Great power comes
subtitle: with great responsibility subtitle: with great responsibility
@@ -150,7 +196,7 @@ Shows information why someone should use this product.
<details> <details>
<summary>Code</summary> <summary>Code</summary>
``` ```yaml
section2: section2:
title: You're here because you want the best title: You're here because you want the best
subtitle: And we know it subtitle: And we know it
@@ -175,7 +221,7 @@ Display a bright image of your product.
<details> <details>
<summary>Code</summary> <summary>Code</summary>
``` ```yaml
section3: section3:
title: One platform title: One platform
subtitle: To rule them all subtitle: To rule them all
@@ -192,7 +238,7 @@ What clients says about us.
<details> <details>
<summary>Code</summary> <summary>Code</summary>
``` ```yaml
section4: section4:
title: Our Clients love us! title: Our Clients love us!
subtitle: Lorem ipsum sit dolor amet is a dummy text used by typography industry subtitle: Lorem ipsum sit dolor amet is a dummy text used by typography industry
@@ -219,7 +265,7 @@ Write us.
<details> <details>
<summary>Code</summary> <summary>Code</summary>
``` ```yaml
section5: true # or false to hide it section5: true # or false to hide it
``` ```
@@ -231,7 +277,7 @@ The footer of the site.
<details> <details>
<summary>Code</summary> <summary>Code</summary>
``` ```yaml
footer: footer:
# Logo (from /staticimages/logos/___) # Logo (from /staticimages/logos/___)
logo: fresh-white-alt.svg logo: fresh-white-alt.svg
@@ -295,12 +341,12 @@ If you'd like to have the footer displayed on your single page include "include_
<details> <details>
<summary>Code</summary> <summary>Code</summary>
``` ```yaml
--- ---
title: AGB title: AGB
sidebar: true # or false to display the sidebar sidebar: true # or false to display the sidebar
sidebarlogo: fresh-white-alt # From (static/images/logo/) sidebarlogo: fresh-white-alt # From (static/images/logo/)
include_footer: true include_footer: true # or false to display the footer
--- ---
``` ```

View File

@@ -61,6 +61,40 @@ params:
- title: Sign up - title: Sign up
url: / url: /
button: true button: true
sidebar:
# Logo (from /images/logos/___.svg)
logo: fresh-square
sections:
- title: User
icon: user
links:
- text: Profile
url: /
- text: Account
url: /
- text: Settings
url: /
- title: Messages
icon: envelope
links:
- text: Inbox
url: /
- text: Compose
url: /
- title: Images
icon: image
links:
- text: Library
url: /
- text: Upload
url: /
- title: Settings
icon: cog
links:
- text: User settings
url: /
- text: App settings
url: /
section1: section1:
title: Great power comes title: Great power comes
subtitle: with great responsibility subtitle: with great responsibility