From 1cc75302f1a2409e902977d9d342b9be2feb4aa5 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Wed, 29 Mar 2023 13:51:40 +0800 Subject: [PATCH] :art: Style: unify code style --- layouts/_default/_markup/render-codeblock-mermaid.html | 2 +- layouts/partials/assets.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/_markup/render-codeblock-mermaid.html b/layouts/_default/_markup/render-codeblock-mermaid.html index e96ead70..65cc69b4 100644 --- a/layouts/_default/_markup/render-codeblock-mermaid.html +++ b/layouts/_default/_markup/render-codeblock-mermaid.html @@ -1,3 +1,3 @@ -{{- $id := dict "Content" (trim .Inner "\n") "Scratch" .Page.Scratch | partial "function/id.html" -}} +{{- $id := dict "Content" (trim (partial "function/dos2unix.html" .Inner) "\n") "Scratch" .Page.Scratch | partial "function/id.html" -}}
{{- .Page.Scratch.SetInMap "this" "mermaid" true -}} diff --git a/layouts/partials/assets.html b/layouts/partials/assets.html index 477987d8..bddc2cb4 100644 --- a/layouts/partials/assets.html +++ b/layouts/partials/assets.html @@ -41,7 +41,7 @@ {{- /* instant.page */ -}} {{- if $params.instantPage -}} {{- $source := $cdn.instantPage | default "lib/instant-page/instantpage.min.js" -}} - {{- dict "Source" $source "Fingerprint" $fingerprint "Attr" "type=\"module\"" "Async" true "Defer" true | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} + {{- dict "Source" $source "Fingerprint" $fingerprint "Attr" `type="module"` "Async" true "Defer" true | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} {{- end -}} {{- /* twemoji */ -}}