Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lucperkins/hugo-fresh.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan M <StefMa@users.noreply.github.com>2021-02-11 16:14:25 +0300
committerGitHub <noreply@github.com>2021-02-11 16:14:25 +0300
commit73ded70a9730873fb9c23ceb17e28c2f41325c67 (patch)
treefdfebbe6dc985dea30b5f75ad19068240fa5a198
parent6b7327731336dd250a5deb54f56b0a364ae68ced (diff)
parent69b83ea67b26f305d701e37d808c92e633cef620 (diff)
Merge pull request #123 from StefMa/document-sidebar
-rw-r--r--.circleci/config.yml2
-rw-r--r--README.md70
-rw-r--r--exampleSite/config.yaml38
3 files changed, 95 insertions, 15 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 53328dd..ac0d56c 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -64,7 +64,7 @@ jobs:
if [ $CIRCLE_BRANCH == "master" ]; then
URL=hugo-fresh
fi
- sed -i "s,http://something-fresh.org,https://${URL}.now.sh,g" config.yaml
+ sed -i "s,http://something-fresh.org,https://${URL}.vercel.app,g" config.yaml
cat config.yaml
- run:
diff --git a/README.md b/README.md
index 09676b6..487012a 100644
--- a/README.md
+++ b/README.md
@@ -39,7 +39,7 @@ Define the logo of the navigationbar in the upper left corner.
<details>
<summary>Code</summary>
-```
+```yaml
navbarlogo:
image: logos/fresh.svg # Logo (from static/images/logos/)
link: /
@@ -53,7 +53,7 @@ Set the font of the site.
<details>
<summary>Code</summary>
-```
+```yaml
font:
name: "Open Sans"
sizes: [400,600]
@@ -66,7 +66,8 @@ The "main" page which you see when you open the website.
<details>
<summary>Code</summary>
-```
+
+```yaml
hero:
title: Manage. Deploy.
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>
<summary>Code</summary>
-```
+```yaml
navbar:
- title: Features
url: /
@@ -114,13 +115,58 @@ navbar:
</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
Describes the second "page" which you will see when you scroll down. Currently it will have **always** three `titles`.
<details>
<summary>Code</summary>
-```
+```yaml
section1:
title: Great power comes
subtitle: with great responsibility
@@ -150,7 +196,7 @@ Shows information why someone should use this product.
<details>
<summary>Code</summary>
-```
+```yaml
section2:
title: You're here because you want the best
subtitle: And we know it
@@ -175,7 +221,7 @@ Display a bright image of your product.
<details>
<summary>Code</summary>
-```
+```yaml
section3:
title: One platform
subtitle: To rule them all
@@ -192,7 +238,7 @@ What clients says about us.
<details>
<summary>Code</summary>
-```
+```yaml
section4:
title: Our Clients love us!
subtitle: Lorem ipsum sit dolor amet is a dummy text used by typography industry
@@ -219,7 +265,7 @@ Write us.
<details>
<summary>Code</summary>
-```
+```yaml
section5: true # or false to hide it
```
@@ -231,7 +277,7 @@ The footer of the site.
<details>
<summary>Code</summary>
-```
+```yaml
footer:
# Logo (from /staticimages/logos/___)
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>
<summary>Code</summary>
-```
+```yaml
---
title: AGB
sidebar: true # or false to display the sidebar
sidebarlogo: fresh-white-alt # From (static/images/logo/)
-include_footer: true
+include_footer: true # or false to display the footer
---
```
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml
index 942539c..6071b27 100644
--- a/exampleSite/config.yaml
+++ b/exampleSite/config.yaml
@@ -15,8 +15,8 @@ markup:
params:
# Open graph allows easy social sharing. If you don't want it you can set it to false or just delete the variable
openGraph: true
- # Used as meta data; describe your site to make Google Bots happy
- description:
+ # Used as meta data; describe your site to make Google Bots happy
+ description:
navbarlogo:
# Logo (from static/images/logos/___)
image: logos/fresh.svg
@@ -61,6 +61,40 @@ params:
- title: Sign up
url: /
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:
title: Great power comes
subtitle: with great responsibility