Add math render codeblock and math shortcode.
This commit is contained in:
parent
91c01f30a0
commit
936892fe7b
2 changed files with 37 additions and 1 deletions
6
layouts/_default/_markup/render-codeblock-math.html
Normal file
6
layouts/_default/_markup/render-codeblock-math.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{{ .Page.Store.Set "math" true -}}
|
||||
<p{{ with .Attributes.class }} class="{{ . }}"{{ end }}>
|
||||
$$
|
||||
{{ .Inner }}
|
||||
$$
|
||||
</p>
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
{{ partial "meta_json_ld.html" . }}
|
||||
{{ partial "scripts.html" . }}
|
||||
{{ partialCached "tracking.html" . }}
|
||||
{{ if $.Param "math" }}{{ partialCached "math.html" . }}{{ end -}}
|
||||
{{ partialCached "math.html" . }}
|
||||
</head>
|
||||
|
||||
<body class="{{ if .IsPage }}single-page{{ else }}list-page{{ end }}{{ if .IsHome }} front{{ end }}{{ with $.Param "bodyclass" }} {{ . }}{{ end }}">
|
||||
|
|
|
|||
Loading…
Reference in a new issue