From 2550eb101e685189aacedec3fd046ef49efd90e8 Mon Sep 17 00:00:00 2001 From: joelnitta Date: Tue, 17 Dec 2024 13:34:58 +0900 Subject: [PATCH] Fix missing example _quarto.yml file --- posts/2024-12-06_babelquarto/index.qmd | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/posts/2024-12-06_babelquarto/index.qmd b/posts/2024-12-06_babelquarto/index.qmd index 1881990..14fa673 100644 --- a/posts/2024-12-06_babelquarto/index.qmd +++ b/posts/2024-12-06_babelquarto/index.qmd @@ -162,15 +162,19 @@ We will make the following changes: This is what edited version looks like: +```{r} +#| label: hide-edited-quarto-yml +#| echo: false +download.file( + url = "https://raw.githubusercontent.com/joelnitta/2024-12-07-japanr/refs/heads/main/example-quarto.yml", + destfile = path(website_dir, "_quarto.yml") +) +``` + + ```{r} #| label: show-edited-quarto-yml #| echo: true -getwd() -fs::file_copy( - path = "./example-quarto.yml", - path(website_dir, "_quarto.yml"), - overwrite = TRUE -) readr::read_lines(path(website_dir, "_quarto.yml")) |> cat(sep = "\n") ``` @@ -257,7 +261,7 @@ Your browser should open a tab with the website shown below: ## Example repo I've posted this same example to a repository at . -The rendered website () is exactly what you see above. +The [rendered website](https://joelnitta.github.io/example-babelquarto/) is exactly what you see above. ## What's next