Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add a CNAME example for site resources #1091

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/websites/website-tools.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,16 @@ Images are the most commonly used type of resource file. If you have global imag
![](/images/logo.png)
```

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.
In this case, you can include the `CNAME` file in the resources list in your `_quarto.yml` configuration file:

```yaml
project:
type: website
resources:
- CNAME
```

## Dark Mode

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:
Expand Down
Loading