From 77ffb308c32a46a9336dcebbc242cb325ea98fa9 Mon Sep 17 00:00:00 2001 From: Aniket Teredesai <50461557+icy-comet@users.noreply.github.com> Date: Sat, 23 Jul 2022 09:45:32 +0530 Subject: [PATCH] Allow adding SVG in place of logo image (#976) Usage => Params.label.iconSVG: "" --- assets/css/common/header.css | 2 +- layouts/partials/header.html | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/css/common/header.css b/assets/css/common/header.css index 5a213848..64894da4 100644 --- a/assets/css/common/header.css +++ b/assets/css/common/header.css @@ -27,7 +27,7 @@ font-weight: 700; } -.logo a img { +.logo a img, .logo a svg { display: inline; vertical-align: middle; pointer-events: none; diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 1e29e75a..4a7291e2 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -66,6 +66,8 @@ {{- end -}} + {{- else if hasPrefix site.Params.label.iconSVG "