hugo-theme-relearn/layouts/partials/shortcodes/math.html

12 lines
345 B
HTML
Raw Normal View History

2022-07-02 12:00:23 +00:00
{{- $context := .context }}
{{- $content := .content }}
{{- $align := .align | default "center" }}
{{- with $context }}
<span class="math align-{{ $align }}">
{{- $content | safeHTML -}}
</span>
{{- $page := .Page }}
{{- range $page.OutputFormats }}
{{- $page.Scratch.Set (printf "%sHasMathJax" (.Name | lower)) true }}
{{- end }}
2022-07-02 12:00:23 +00:00
{{- end }}