bash
quarto use template royfrancis/abstrave
Abstrave quarto theme
Roy Francis
18-Dec-2024
The custom template is a Quarto website project with html reports and revealjs presentation.
To download a starter template, run in the terminal:
This creates a website template that you can modify as needed. The directory structure is as follows:
.
├── 404.md
├── assets/
├── _extensions/
├── home_contents.qmd
├── home_precourse.qmd
├── home_schedule.qmd
├── home_syllabus.qmd
├── index.qmd
├── _quarto.yml
├── reports/
└── slides/
Start by updating the settings. The website/project settings are contained in the _quarto.yml
file. A website is a quarto project. Projects are documented [here]{https://quarto.org/docs/projects/quarto-projects.html} and websites are documented here.
output-dir: docs
site-url
to your intended destinationcss: "styles.css"
Now you can start adding content.
The starter template should render completely using quarto alone. You can add R or Python for example as needed.
##
) as the highest level#| eval: false
rather than `{r eval=FALSE}`
_
such as _content.qmd
are child documents and are not rendered alone{{< include _content.qmd >>}}
. They do not work in .ipynb notebooks. Includes is documented here._variables.yml
and used as {{< var variable_name >>}}
. Dynamic variables are documented here._metadata.yml
and used as {{< meta variable_name >>}}
{{< env variable_name >>}}
Quarto allows for live preview of changes.
Preview will build all the files in the project. So, this might not be a good option if there are incomplete documents.
A quarto document can be rendered from the terminal as follows:
Rendering from the R console using the quarto
R package.
To render from RStudio, click the Render button. Rendered output is moved into the docs directory. This is set in _quarto.yml
as output-dir: