~bfiedler/website

c8f900660125b75c4da75f544d4e43ef76b19ea5 — Ben Fiedler a month ago cb9ba10
Fix highlighting in math posts
1 files changed, 3 insertions(+), 3 deletions(-)

M layouts/blog/single.html
M layouts/blog/single.html => layouts/blog/single.html +3 -3
@@ 12,12 12,12 @@
        </header>
        {{ $content := .Content }}
        {{- if in .Params.tags "math" }}
        {{ $content := replace $content "$" "<span class=\"inline-math\">$</span>" | safeHTML }}
        {{ $content = replace $content "$" "<span class=\"inline-math\">$</span>" }}
        {{- end }}
        {{- if .Params.tags }}
        {{ $footnotes_tag:= `<section class="footnotes" role="doc-endnotes">` }}
        {{ $footnotes_tag := `<section class="footnotes" role="doc-endnotes">` }}
        {{- if strings.Contains $content $footnotes_tag }}
        {{ $split := split .Content $footnotes_tag }}
        {{ $split := split $content $footnotes_tag }}
        <section>{{ index $split 0 | safeHTML }}</section>
        <footer>
            <section class="post-metadata">