This commit is contained in:
parent
79f3c39901
commit
69140abcf1
1 changed files with 10 additions and 9 deletions
13
index.qmd
13
index.qmd
|
|
@ -28,18 +28,19 @@ format:
|
|||
|
||||
```{r}
|
||||
#| output: asis
|
||||
img_files <- fs::dir_ls("images", glob="*")
|
||||
back_files <- fs::dir_ls("background", glob="*")
|
||||
img_files <- fs::dir_ls("images", glob = "*")
|
||||
back_files <- fs::dir_ls("background", glob = "*")
|
||||
quotes_list <- readLines("quotes.txt")
|
||||
|
||||
|
||||
|
||||
for (img in img_files) {
|
||||
for (back in back_files){
|
||||
for (quote in quotes_list){
|
||||
cat("# ", quote, "{background-image='",back,"'}", "\n",
|
||||
for (back in back_files) {
|
||||
for (quote in quotes_list) {
|
||||
cat("# ", quote, " {background-image='", back, "' background-repeat='", ifelse(back == "background/miaps.png", "repeat", "no-repeat"), "' background-size='", ifelse(back == "background/miaps.png", "400px", "100%"), "'}", "\n",
|
||||
glue::glue(""), "{fig-align='center' .r-stretch}\n\n",
|
||||
sep = "")
|
||||
sep = ""
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue