From b65d036e256faf8cb6a8a9eb8cf38dfbbbcd5928 Mon Sep 17 00:00:00 2001 From: shevabam Date: Tue, 10 Apr 2018 20:37:41 +0200 Subject: Add sidebar color parameter --- README.md | 11 ++++++++++- exampleSite/config.toml | 1 + layouts/partials/sidebar.html | 2 +- static/css/styles.css | 27 +++++++++++++++++++++++++++ 4 files changed, 39 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e3b568..0b1a73d 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Since the theme is a one-page theme, this is the way to make cross-references on Replace logo by creating `layouts/partials/logo.html` file ### Adding menu entries to the external links section -Customize the name of the section by addind to the `config.toml` +Customize the name of the section by adding to the `config.toml` ```toml [params] externalTitle = "Surfly docs" @@ -57,5 +57,14 @@ url = "https://docs.surfly.com/javascript.html" weight = 20 ``` +### Changing color +Customize the color of the sidebar by adding to the `config.toml` +```toml +[params] +sidebarColor = "green" +``` + +Available values : default, green, purple, pink, red, cyan, blue, grey, orange. + ## Add favicon Put `favicon.ico` inside `static` folder diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 781c2e5..6fa7e6e 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -9,6 +9,7 @@ pygmentsStyle = "monokailight" [params] externalTitle = "Kraiklyn theme" +sidebarColor = "default" [[menu.shortcuts]] name = "Kraiklyn on Github" diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index c28928a..5aedb9f 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,4 +1,4 @@ -