You can use this repository as a template to create your xaringan project, or follow the instructions below.
-
Download your logo. I've used the
xaringan
hex logo:xaringan.png
-
Download
insert-logo.html
-
Add
insert-logo.html
to yourafter_body
includes
output:
xaringan::moon_reader:
includes:
after_body: insert-logo.html
-
Edit the
.logo
class in the CSS ininsert-logo.html
to use your logo, and adjust thewidth
,height
and position (top
,bottom
,left
, and/orright
) as needed*. -
Use
class: hide-logo
to hide your logo on individual slides.
See the companion blog post for more information: https://www.garrickadenbuie.com/blog/xaringan-tip-logo-all-slides/