Skip to content

Commit 47f19fd

Browse files
committed
docs: add a CNAME example for site resources
1 parent 4d9a631 commit 47f19fd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/websites/website-tools.qmd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,16 @@ Images are the most commonly used type of resource file. If you have global imag
357357
![](/images/logo.png)
358358
```
359359

360+
When publishing to a web host (*e.g.*, [GitHub Pages](docs/publishing/github-pages.qmd)), you can define a custom domain using a `CNAME` record and add it to your site.
361+
In this case, you can include the `CNAME` file in the resources list in your `_quarto.yml` configuration file:
362+
363+
```yaml
364+
project:
365+
type: website
366+
resources:
367+
- CNAME
368+
```
369+
360370
## Dark Mode
361371

362372
Quarto websites can support both a light and dark mode. For example, you may use the `flatly` and `darkly` themes (which are designed to be used in tandem as dark and light appearances) as:

0 commit comments

Comments
 (0)