From 6d4f0135979a9122243946b8b565daba7f9361e6 Mon Sep 17 00:00:00 2001 From: Adrian Tritschler Date: Thu, 27 Oct 2022 18:02:54 +1100 Subject: [PATCH] Add SiteLogo configuration for https://github.com/AngeloStavrow/indigo/issues/71 --- README.md | 8 ++++++++ config.toml.example | 1 + exampleSite/config.toml | 1 + layouts/partials/header.html | 6 +++++- 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a7b27ab..eb548d6 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,14 @@ You can configure the theme to show info about the author; by default, this info Indigo will look for custom CSS in `/static/css/custom.css`. This will let you add/override styling to your heart's content, while making it easy to keep Indigo up-to-date. See it in action on [angelostavrow.com](https://angelostavrow.com). +You can override the default indigo site logo by setting the `SiteLogo` parameter: + +```toml +[params] + ... + SiteLogo = "images/my-site-logo.png" +``` + ## Deployment You can add a line to your `config.toml` file to set this theme as the default: diff --git a/config.toml.example b/config.toml.example index 4fff165..a261bd5 100644 --- a/config.toml.example +++ b/config.toml.example @@ -9,6 +9,7 @@ theme = "indigo" Description = "Description of website for head meta tag" Subtitle = "A subtitle for your site" Avatar = "images/site-logo.svg" + # SiteLogo = "images/site-logo.svg" Biography = "A short description, a few sentences describing the author. Set the 'ShowBio' parameter to false to hide this." ShowBio = true PermalinkText = "🔗" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9ab58b3..5639ed7 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -10,6 +10,7 @@ paginate = 3 Description = "Description of website for head meta tag" Subtitle = "A subtitle for your site" Avatar = "images/site-logo.svg" + SiteLogo = "images/site-logo.svg" # optional Biography = "A short description, a few sentences describing the author. Set the 'ShowBio' parameter to false to hide this." ShowBio = true PermalinkText = "🔗" diff --git a/layouts/partials/header.html b/layouts/partials/header.html index a9b7a2e..dcdf315 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,7 +3,11 @@ {{ partial "head.html" . }}
{{ partial "pagenav.html" . }}