Skip to content

Commit 33d6372

Browse files
committed
feat(basic_structure): add author and date to YAML
1 parent b745836 commit 33d6372

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

pages/basic_structure/index.qmd

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ book:
8080
chapters:
8181
- text: Overview
8282
href: index.qmd
83-
- pages/TODO.qmd
83+
- pages/pagename.qmd
8484
navbar:
8585
right:
8686
- icon: github
@@ -98,11 +98,19 @@ A `.qmd` file is a **Quarto Markdown** document. It mixes metadata at the top, t
9898

9999
> If you're familiar with R Markdown (`.Rmd`), these are similar, but `.qmd` is more flexible.
100100

101-
Each `.qmd` file begins with **YAML front matter**, enclosed by three dashes (`---`). This defines metadata such as the page title. Below that is the page. Here we just have one sentence: `This is my homepage.`.
101+
Each `.qmd` file begins with **YAML front matter**, enclosed by three dashes (`---`). This defines metadata such as the page title, author information and date. Below that is the main content of the page. Here we just have one sentence: `This is my homepage.`.
102102

103-
```{.r}
103+
```{.yaml}
104104
---
105105
title: My homepage
106+
author:
107+
- name: Amy Heather
108+
orcid: 0000-0002-6596-3479
109+
affiliations: University of Exeter
110+
- name: Thomas Monks
111+
orcid: 0000-0003-2631-4481
112+
affiliations: University of Exeter
113+
date: 06-01-2026
106114
---
107115
108116

0 commit comments

Comments
 (0)