From 3fb9b2e11ab015a484b45b13373b2e342c10e304 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 28 Jan 2024 18:37:58 +0000 Subject: [PATCH] feat: enable Hugo v0.122 native math passthrough by default Requires Hugo v0.122.0+ --- .github/workflows/build-test-site.yaml | 2 +- modules/blox-tailwind/hugo.yaml | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test-site.yaml b/.github/workflows/build-test-site.yaml index 8795f100..c28f089c 100644 --- a/.github/workflows/build-test-site.yaml +++ b/.github/workflows/build-test-site.yaml @@ -44,7 +44,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: '0.120.4' + hugo-version: '0.122.0' extended: true - name: Build diff --git a/modules/blox-tailwind/hugo.yaml b/modules/blox-tailwind/hugo.yaml index e490373e..80b67202 100644 --- a/modules/blox-tailwind/hugo.yaml +++ b/modules/blox-tailwind/hugo.yaml @@ -7,6 +7,20 @@ markup: attribute: block: true title: true + extensions: + passthrough: + enable: true + delimiters: + block: + - - \[ + - \] + - - $$ + - $$ + inline: + - - \( + - \) + - - $ + - $ highlight: codeFences: true noHl: false @@ -24,7 +38,7 @@ sitemap: changefreq: weekly module: hugoVersion: - min: '0.119.0' + min: '0.122.0' extended: true imports: - path: github.com/HugoBlox/hugo-blox-builder/modules/blox-analytics