Skip to content

Commit

Permalink
finally hopefully fix index
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanThoma committed May 2, 2024
1 parent a02c917 commit 016d0e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ post_redirects <- paste0("/", slugs, " ", "/posts/", posts)
# function to extract post categories from index.qmd files
get_post_categories <- function(post) {
file <- here::here("posts", post) |> list.files(pattern = ".qmd", full.names = TRUE)
file <- here::here("posts", post) |> list.files(pattern = ".qmd", full.names = TRUE, recursive = TRUE)
if (is.null(file) || is.na(fs::file_exists(file)) || !fs::file_exists(file)) {
return(character(0))
}
Expand Down

0 comments on commit 016d0e7

Please sign in to comment.