From c1d8443eedcd810678f4240266a3a35c87f3554d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 14 Oct 2022 12:21:12 +0200 Subject: [PATCH] chore: bump hugo in ci to 0.104.3 (#518) --- .drone.yml | 6 +++--- exampleSite/content/en/shortcodes/katex.md | 18 +----------------- exampleSite/content/en/shortcodes/mermaid.md | 10 +--------- .../_markup/render-codeblock-mermaid.html | 2 +- 4 files changed, 6 insertions(+), 30 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0ee51ee..2778d08 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,7 +26,7 @@ steps: NPM_CONFIG_LOGLEVEL: error - name: testbuild - image: thegeeklab/hugo:0.97.3 + image: thegeeklab/hugo:0.104.3 commands: - mkdir -p exampleSite/themes/ && ln -s $(pwd)/ exampleSite/themes/hugo-geekdoc - hugo --panicOnWarning -s exampleSite/ -b http://localhost:8000/ @@ -206,7 +206,7 @@ steps: - refs/pull/** - name: build - image: thegeeklab/hugo:0.97.3 + image: thegeeklab/hugo:0.104.3 commands: - hugo --panicOnWarning -s exampleSite/ @@ -286,6 +286,6 @@ depends_on: --- kind: signature -hmac: e0710630d0e540bb93561e760d0c4cfa4a67d2ee715993e7bb29e03d79f83d53 +hmac: 8a857bba8126ebb40acc7dfb24a86f1539d447df4ca3e4b3bdc8f78d21e2b51b ... diff --git a/exampleSite/content/en/shortcodes/katex.md b/exampleSite/content/en/shortcodes/katex.md index 0fd8458..4306c63 100644 --- a/exampleSite/content/en/shortcodes/katex.md +++ b/exampleSite/content/en/shortcodes/katex.md @@ -6,28 +6,12 @@ title: KaTeX ## Example -{{< columns >}} - ```latex {{}} f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi {{}} ``` -<---> - - - -{{< katex display >}} -f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi -{{< /katex >}} - - - -{{< /columns >}} - -KaTeX can also be used inline, for example {{< katex >}}\pi(x){{< /katex >}} or used with the `display` parameter (e.g. `display: block`): - {{< katex display >}} @@ -36,4 +20,4 @@ f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi -Text continues here. +KaTeX can be used inline, for example {{< katex >}}\pi(x){{< /katex >}} or used with the `display` parameter (see above). diff --git a/exampleSite/content/en/shortcodes/mermaid.md b/exampleSite/content/en/shortcodes/mermaid.md index ac98087..6a644b8 100644 --- a/exampleSite/content/en/shortcodes/mermaid.md +++ b/exampleSite/content/en/shortcodes/mermaid.md @@ -6,11 +6,9 @@ title: Mermaid ## Example -{{< columns >}} - ```tpl -{{}} +{{}} sequenceDiagram Alice->>Bob: Hello Bob, how are you? alt is sick @@ -24,8 +22,6 @@ sequenceDiagram {{}} ``` -<---> - {{< mermaid class="text-center" >}} @@ -43,8 +39,6 @@ sequenceDiagram -{{< /columns >}} - As an alternative to shortcodes, code blocks can be used for markdown as well. {{< columns >}} @@ -53,7 +47,6 @@ As an alternative to shortcodes, code blocks can be used for markdown as well. ````tpl ```mermaid flowchart LR - A[Hard] -->|Text| B(Round) B --> C{Decision} C -->|One| D[Result 1] @@ -67,7 +60,6 @@ C -->|Two| E[Result 2] ```mermaid flowchart LR - A[Hard] -->|Text| B(Round) B --> C{Decision} C -->|One| D[Result 1] diff --git a/layouts/_default/_markup/render-codeblock-mermaid.html b/layouts/_default/_markup/render-codeblock-mermaid.html index d3545db..ee40ce9 100644 --- a/layouts/_default/_markup/render-codeblock-mermaid.html +++ b/layouts/_default/_markup/render-codeblock-mermaid.html @@ -6,6 +6,6 @@ {{ end }} -
+
   {{- .Inner -}}