https://github.com/gadenbuie/xaringan-logo
xaringan template with logo on all slides
https://github.com/gadenbuie/xaringan-logo
logo template tip xaringan
Last synced: about 1 month ago
JSON representation
xaringan template with logo on all slides
- Host: GitHub
- URL: https://github.com/gadenbuie/xaringan-logo
- Owner: gadenbuie
- Created: 2019-10-16T00:59:34.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-01T14:59:29.000Z (over 3 years ago)
- Last Synced: 2025-02-10T02:32:54.833Z (3 months ago)
- Topics: logo, template, tip, xaringan
- Language: HTML
- Homepage: https://gadenbuie.github.io/xaringan-logo
- Size: 158 KB
- Stars: 17
- Watchers: 3
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Add a logo to all your xaringan slides
You can use this repository as a template to create your xaringan project, or follow the instructions below.
[Demo](https://gadenbuie.github.io/xaringan-logo)
## Manual Set Up
1. Download your logo. I've used the `xaringan` hex logo: [`xaringan.png`](https://github.com/rstudio/hex-stickers/blob/master/PNG/xaringan.png)
1. Download [`insert-logo.html`](https://github.com/gadenbuie/xaringan-logo/blob/master/insert-logo.html)
1. Add `insert-logo.html` to your `after_body` includes
```yaml
output:
xaringan::moon_reader:
includes:
after_body: insert-logo.html
```1. Edit the `.logo` class in the CSS in `insert-logo.html` to use your logo,
and adjust the `width`, `height` and position (`top`, `bottom`, `left`, and/or `right`) as needed*.1. Use `class: hide-logo` to hide your logo on individual slides.
## More Info
See the companion blog post for more information: https://www.garrickadenbuie.com/blog/xaringan-tip-logo-all-slides/