This commit is contained in:
parent
36493fc6b7
commit
96059ecf4d
3 changed files with 3 additions and 1 deletions
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
BIN
birthday/camille2.png
Normal file
BIN
birthday/camille2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 323 KiB |
|
|
@ -23,14 +23,16 @@ back_files <- fs::dir_ls("background", glob = "*")
|
|||
quotes_list <- readLines("quotes.txt")
|
||||
|
||||
if (Sys.Date() == "2025-07-10") {
|
||||
img <- "birthday/camille.jpg"
|
||||
img_files <- fs::dir_ls("birthday", glob = "*")
|
||||
quote <- "Joyeux anniversaire Camille ! 🎁 🍰"
|
||||
for (img in img_files) {
|
||||
for (back in back_files) {
|
||||
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 = ""
|
||||
)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (img in img_files) {
|
||||
for (back in back_files) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue