-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfilters.qmd
40 lines (27 loc) · 1.13 KB
/
filters.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
title: filters
toc: false
---
### Page under construction
add `construction: true` to the yaml header of a page and a random "under construction" gif is added at the top of the page
{{< divider 2 >}}
### Backgrounds
change the background of the html body using the yaml parameter `body_bg`. Can be set globally in `_quarto.yml` or locally in a file. The default is `microfab`.
other options are shown below (dont use the file ending, ie `body_bg: space`).
```{r bg-options}
fl <- list.files("img/bg")
fl
```
```{r bg-options-show}
#| output: asis
#| echo: false
gifs <- list.files("img/bg")
for(f in gifs){
cat("![",f,"](img/bg/",f,")",sep="")
}
```
In the same way, the background of the navbar can be changed with `nav_bg`. Here the default is `stars`.
{{< divider 2 >}}
### title gif
Add a gif to the title of a page using the yaml parameter `title_gif`. Can be set globally in `_quarto.yml` or locally in a file. default is to not display a gif.
The gif needs to be present in the `img/` folder (dont use the file ending, ie `title_gif: banana-dance`). If you set a global gif you can unset it for specific pages via `title-gif:none`.