mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-02-06 20:03:31 +08:00
add KaTeX support in figure caption
This commit is contained in:
parent
6be4e9f58a
commit
57d4880d3b
@ -1,7 +1,7 @@
|
||||
{{- $image := .Page.Resources.GetMatch (printf "%s" (.Destination | safeURL)) -}}
|
||||
{{- $Permalink := .Destination | relURL | safeURL -}}
|
||||
{{- $alt := .PlainText | safeHTML -}}
|
||||
{{- $title := .Title | safeHTML -}}
|
||||
{{- $title := .Title | markdownify | safeHTML -}}
|
||||
{{- $Width := 0 -}}
|
||||
{{- $Height := 0 -}}
|
||||
{{- $Srcset := "" -}}
|
||||
@ -41,5 +41,5 @@
|
||||
{{ end }}
|
||||
>
|
||||
{{- if $title }}
|
||||
<figcaption>{{ .Title }}</figcaption>
|
||||
<figcaption>{{ .Title | markdownify }}</figcaption>
|
||||
{{- end }}
|
||||
|
Loading…
Reference in New Issue
Block a user