From ce462fea8bb136382ccec288dad7b7ecc2ee190c Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Mon, 27 Jul 2020 15:26:33 +0700 Subject: [PATCH] Add the FOOTER_TEXT variable --- README.md | 1 + static/css/hyde.css | 5 +++++ templates/sidebar.html | 3 +++ 3 files changed, 9 insertions(+) diff --git a/README.md b/README.md index aec7e11..d9fc198 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ Additional settings: - `BIO` - short biography to display in the sidebar, eg. `Hello world` - `PROFILE_IMAGE` - image to display in the sidebar, eg. `avatar.png` +- `FOOTER_TEXT` - footer to display in the sidebar, eg. `(C) 2020 Foo Bar` - `COLOR_THEME` - base colors for the theme, choose from `08` to `0f`, refer to for details. - `FONT_AWESOME_CSS` - URL to get Font Awesome as CSS diff --git a/static/css/hyde.css b/static/css/hyde.css index e602648..4aa1ef9 100644 --- a/static/css/hyde.css +++ b/static/css/hyde.css @@ -129,6 +129,11 @@ a.sidebar-social-item.active:hover, a.sidebar-social-item.active:focus { color: #fff; } +.sidebar-footer { + font-size: .7rem; + margin-bottom: 0; + margin-top: .5rem; +} /* Sticky sidebar * diff --git a/templates/sidebar.html b/templates/sidebar.html index 0e75afd..ad40b71 100644 --- a/templates/sidebar.html +++ b/templates/sidebar.html @@ -53,5 +53,8 @@ + {% if FOOTER_TEXT %} + + {% endif %}