♻️ refactor: improve Zola v0.22.0 compatibility (#612)

This commit is contained in:
Óscar 2026-01-14 22:57:40 +01:00 committed by GitHub
parent 7118ae7283
commit 9a09df263a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 47 additions and 22 deletions

View file

@ -1,7 +1,7 @@
+++
title = "Secure by default"
date = 2023-02-22
updated = 2025-02-21
updated = 2026-01-14
description = "tabi has an easily customizable Content Security Policy (CSP) with safe defaults. Get peace of mind and an A+ on Mozilla Observatory."
[taxonomies]
@ -35,7 +35,7 @@ You can disable the CSP (allowing all connections) on a page, section, or global
**Notes**:
- [Enabling comments](@/blog/comments/index.md), [analytics](@/blog/mastering-tabi-settings/index.md#analytics), or [mermaid diagrams](@/blog/shortcodes/index.md#mermaid-diagrams) automatically allows scripts/frames/styles/connections as needed.
- To use a [Zola built-in syntax highlighting theme](https://www.getzola.org/documentation/getting-started/configuration/#syntax-highlighting), you need to allow `unsafe-inline` in the `style-src` directive:
- To use a [Zola built-in syntax highlighting theme](https://www.getzola.org/documentation/content/syntax-highlighting/), you need to allow `unsafe-inline` in the `style-src` directive:
```
{ directive = "style-src", domains = ["'self'", "'unsafe-inline'"] },