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
xaringanhex logo:xaringan.png -
Download
insert-logo.html -
Add
insert-logo.htmlto yourafter_bodyincludes
output:
xaringan::moon_reader:
includes:
after_body: insert-logo.html-
Edit the
.logoclass in the CSS ininsert-logo.htmlto use your logo, and adjust thewidth,heightand position (top,bottom,left, and/orright) as needed*. -
Use
class: hide-logoto hide your logo on individual slides.
See the companion blog post for more information: https://www.garrickadenbuie.com/blog/xaringan-tip-logo-all-slides/