New Camille
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Louis 2025-07-10 09:43:24 +02:00
parent 36493fc6b7
commit 96059ecf4d
3 changed files with 3 additions and 1 deletions

View file

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

BIN
birthday/camille2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 KiB

View file

@ -23,14 +23,16 @@ back_files <- fs::dir_ls("background", glob = "*")
quotes_list <- readLines("quotes.txt") quotes_list <- readLines("quotes.txt")
if (Sys.Date() == "2025-07-10") { if (Sys.Date() == "2025-07-10") {
img <- "birthday/camille.jpg" img_files <- fs::dir_ls("birthday", glob = "*")
quote <- "Joyeux anniversaire Camille ! 🎁 🍰" quote <- "Joyeux anniversaire Camille ! 🎁 🍰"
for (img in img_files) {
for (back in back_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", 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("![]({img})"), "{fig-align='center' .r-stretch}\n\n", glue::glue("![]({img})"), "{fig-align='center' .r-stretch}\n\n",
sep = "" sep = ""
) )
} }
}
} else { } else {
for (img in img_files) { for (img in img_files) {
for (back in back_files) { for (back in back_files) {