From a46b6f603209175f0a9afa0765a1a6c7c041e8ff Mon Sep 17 00:00:00 2001 From: Djordje Atlialp Date: Sun, 10 Jan 2021 13:58:01 +0100 Subject: [PATCH] Make logoMark configurable !247 --- exampleSite/config.toml | 1 + layouts/partials/logo.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9de6227..3a0f246 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -106,6 +106,7 @@ disableHugoGeneratorInject = false theme = "#252627" [params.logo] + logoMark = ">" logoText = "$ cd /home/" logoHomeLink = "/" # Set true to remove the logo cursor entirely. diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html index 5135eb3..19777ee 100644 --- a/layouts/partials/logo.html +++ b/layouts/partials/logo.html @@ -3,7 +3,7 @@ {{ if .Site.Params.Logo.path }} {{ .Site.Params.Logo.alt }} {{ else }} - > + {{ with .Site.Params.Logo.logoMark }}{{ . }}{{ else }}>{{ end }} {{ with .Site.Params.Logo.logoText }}{{ . }}{{ else }}hello{{ end }}