From bd7401ae8cacaf567761d955d8c5516ebc4dceb7 Mon Sep 17 00:00:00 2001 From: StefMa Date: Thu, 11 Feb 2021 14:03:15 +0100 Subject: [PATCH 1/2] Document sidebar and show in example --- README.md | 70 ++++++++++++++++++++++++++++++++++------- exampleSite/config.yaml | 38 ++++++++++++++++++++-- 2 files changed, 94 insertions(+), 14 deletions(-) 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.
Code -``` +```yaml navbarlogo: image: logos/fresh.svg # Logo (from static/images/logos/) link: / @@ -53,7 +53,7 @@ Set the font of the site.
Code -``` +```yaml font: name: "Open Sans" sizes: [400,600] @@ -66,7 +66,8 @@ The "main" page which you see when you open the website.
Code -``` + +```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.
Code -``` +```yaml navbar: - title: Features url: / @@ -114,13 +115,58 @@ navbar:
+#### sidebar +The sidebar is an optional parameter where you can place even more navigation items. + +
+Code + +```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: / +``` + +
+ #### section1 Describes the second "page" which you will see when you scroll down. Currently it will have **always** three `titles`.
Code -``` +```yaml section1: title: Great power comes subtitle: with great responsibility @@ -150,7 +196,7 @@ Shows information why someone should use this product.
Code -``` +```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.
Code -``` +```yaml section3: title: One platform subtitle: To rule them all @@ -192,7 +238,7 @@ What clients says about us.
Code -``` +```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.
Code -``` +```yaml section5: true # or false to hide it ``` @@ -231,7 +277,7 @@ The footer of the site.
Code -``` +```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_
Code -``` +```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 From 69b83ea67b26f305d701e37d808c92e633cef620 Mon Sep 17 00:00:00 2001 From: StefMa Date: Thu, 11 Feb 2021 14:11:45 +0100 Subject: [PATCH 2/2] Fix (temporarily) now aka vercel --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: