diff --git a/birthday/camille.jpg b/birthday/camille1.jpg similarity index 100% rename from birthday/camille.jpg rename to birthday/camille1.jpg diff --git a/birthday/camille2.png b/birthday/camille2.png new file mode 100644 index 0000000..77b2663 Binary files /dev/null and b/birthday/camille2.png differ diff --git a/index.qmd b/index.qmd index f447c58..317aa6a 100644 --- a/index.qmd +++ b/index.qmd @@ -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("![]({img})"), "{fig-align='center' .r-stretch}\n\n", sep = "" ) } + } } else { for (img in img_files) { for (back in back_files) {