From 0d4b02fdca54b43def6e98ab1c42c56bee6080ec Mon Sep 17 00:00:00 2001 From: Marc Wrobel Date: Thu, 24 Nov 2022 15:49:26 +0100 Subject: [PATCH] Inject site logo before the site name It has to be done using CSS : the Just the Docs theme does not offer an extension point for doing this. --- _sass/custom/custom.scss | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/_sass/custom/custom.scss b/_sass/custom/custom.scss index da41b4e1bc9..5b620945d2a 100644 --- a/_sass/custom/custom.scss +++ b/_sass/custom/custom.scss @@ -57,3 +57,17 @@ body { } } } + +.site-title { + margin-left: 1.5rem; + + &:before { + content: ''; + background:url('/assets/logo-192x192.png'); + background-size:cover; + position:absolute; + width: 2rem; + height: 2rem; + margin-left:-2rem; + } +}