Skip to content

Commit ecaac97

Browse files
authored
refactor: 🔧 add theme option in _quarto.yml, and brand for Seedcase (#170)
# Description `brand` needs to be added (apparently is an open bug in Quarto) if the brand is used in the extension. This PR needs a quick review. ## Checklist - [x] Ran `just run-all`
1 parent ed14d7b commit ecaac97

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

template/_quarto.yml.jinja

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
project:
2+
# TODO: change to extension name if using a custom extension
23
type: website
34
# Delete auto-generated files from `quartodoc`
45
post-render: rm -f docs/reference/*.qmd
@@ -72,9 +73,20 @@ metadata-files:
7273
- docs/reference/_sidebar.yml
7374

7475
format:
75-
{{ "seedcase-theme-html" if is_seedcase_project else "html" }}:
76-
include-before-body:
77-
- "docs/site-counter.html"
76+
{% if is_seedcase_project -%}
77+
seedcase-theme-html:
78+
theme:
79+
- brand
80+
{%- else -%}
81+
# TODO: Use Quarto extension if available
82+
html:
83+
theme:
84+
# TODO: Choose a different theme if desired
85+
- litera
86+
{%- endif %}
87+
# TODO: Uncomment if using the goatcounter website visitor counter
88+
# include-before-body:
89+
# - "includes/site-counter.html"
7890

7991
editor:
8092
markdown:

0 commit comments

Comments
 (0)