feat: better preview for math and mermaid

This commit is contained in:
Junyi Hou 2024-11-17 19:19:14 +08:00
parent 8dc8e9ff97
commit 2a6d9b31f8
9 changed files with 46 additions and 54 deletions

View file

@ -34,6 +34,14 @@
<a class="u-url" href="{{ .RelPermalink }}">{{ i18n "readMore" }}</a>
</div>
{{ end }}
{{ if .Store.Get "hasMermaid" }}
{{ partial "mermaid_support.html" . }}
{{ end }}
{{ if .Params.math }}
{{ partial "mathjax_support.html" . }}
{{ end }}
{{ partial "post-info.html" . }}
</article>