Skip to content

Commit

Permalink
Inject site logo before the site name
Browse files Browse the repository at this point in the history
It has to be done using CSS : the Just the Docs theme does not offer an extension point for doing this.
  • Loading branch information
marcwrobel committed Nov 28, 2022
1 parent 0ccd545 commit 0d4b02f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions _sass/custom/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 0d4b02f

Please sign in to comment.