Skip to content

Commit abdd8d0

Browse files
committed
fix: margin-header expect markdown
1 parent c029aaa commit abdd8d0

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/websites/website-blog.qmd

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,16 +418,22 @@ Here are the steps required to add a subscription widget:
418418
The above widget HTML will not work in your blog as the subscription HTML needs to contain value specific to your blog. See your email service provider's instructions for generating a subscription widget.
419419
:::
420420

421-
2. Create the file `subscribe.html` in the root of your project.
421+
2. Create the file `subscribe.md` in the root of your project.
422422

423-
3. Paste the HTML for your subscription widget into `subscribe.html` and save the file.
423+
3. Paste the HTML for your subscription widget into `subscribe.md` as a raw HTML block and save the file.
424424

425-
4. Add `subscribe.html` to the `margin-header` in your `_quarto.yml` file:
425+
````{.markdown filename="subscribe.md"}
426+
```{=html}
427+
Your HTML code goes here.
428+
```
429+
````
430+
431+
4. Add `subscribe.md` to the `margin-header` in your `_quarto.yml` file:
426432

427433
``` yaml
428434
website:
429435
# (additional metadata excluded for brevity)
430-
margin-header: subscribe.html
436+
margin-header: subscribe.md
431437
```
432438

433439
The result looks like this:

0 commit comments

Comments
 (0)