Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
HidegonSan committed Dec 1, 2023
1 parent 157bae5 commit cd7149b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions layouts/partials/head/katex.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

{{- if or (.Params.katex) (.Params.mhchem) (.HasShortcode "katex") -}}

<link crossorigin="anonymous" href={{- "assets/css/fonts/KaTeX_Main-Regular.woff2" | relURL }} rel="preload" as="font" type="font/woff2">
<link crossorigin="anonymous" href={{- "assets/css/fonts/KaTeX_Math-Italic.woff2" | relURL }} rel="preload" as="font" type="font/woff2">
<link crossorigin="anonymous" href={{- "assets/css/fonts/KaTeX_Main-Regular.woff2" | relURL }} rel="preload" as="font" type="font/woff2">
<link crossorigin="anonymous" href={{- "assets/css/fonts/KaTeX_Math-Italic.woff2" | relURL }} rel="preload" as="font" type="font/woff2">
<link crossorigin="anonymous" href={{- "assets/css/fonts/KaTeX_Size2-Regular.woff2" | relURL }} rel="preload" as="font" type="font/woff2" >

{{- $katex_license_body := "/*\nSPDX-License-Identifier: MIT\nLicensed under the MIT license.\nhttps://github.com/KaTeX/KaTeX/blob/main/LICENSE\nhttps://opensource.org/license/mit/\n*/\n" -}}
Expand Down Expand Up @@ -40,6 +40,7 @@
{{- end -}}
{{- end -}}

{{- -}}
{{- with (slice $katex_license_js (resources.Get "js/katex/contrib/auto-render.min.js")) | resources.Concat "assets/js/katex/contrib/auto-render.min.js" | fingerprint -}}
<script
defer
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/audio.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<p class="sc_media">
<audio controls src="{{ .Get 0 | safeHTMLAttr }}"></audio>
<audio controls src="{{- .Get 0 | safeHTMLAttr -}}"></audio>
</p>
2 changes: 1 addition & 1 deletion layouts/shortcodes/mermaid.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<p class="mermaid">
{{ .Inner | safeHTML }}
{{- .Inner | safeHTML -}}
</p>
2 changes: 1 addition & 1 deletion layouts/shortcodes/video.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p class="sc_media">
<video controls preload="auto">
<source src="{{ .Get 0 | safeHTMLAttr }}" type="video/{{ delimit (last 1 (split (.Get 0) ".")) "" | safeHTMLAttr }}" />
<source src="{{- .Get 0 | safeHTMLAttr -}}" type="video/{{- delimit (last 1 (split (.Get 0) ".")) "" | safeHTMLAttr -}}" />
</video>
</p>

0 comments on commit cd7149b

Please sign in to comment.