switch to new theme due to old theme not liking newer versions. New theme seems kick-arse, however
This commit is contained in:
parent
1909ea34ea
commit
e3ac8b96f5
531 changed files with 147790 additions and 66 deletions
8
themes/story/layouts/shortcodes/math.html
Normal file
8
themes/story/layouts/shortcodes/math.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{{ if or (hasPrefix .Inner "\n") (hasPrefix .Inner "<p>") }}
|
||||
<div class="math">\[
|
||||
{{- $inner := replace .Inner "\\<br />\n" "\\\\" -}}
|
||||
{{- $inner := replace $inner "<p>" "<p>\\[" -}}
|
||||
{{- $inner := replace $inner "</p>" "\\]<p>" -}}
|
||||
{{ trim $inner "\n" }}
|
||||
\]</div>
|
||||
{{- else -}}<span class="math">\( {{ trim .Inner "\n" }} \)</span>{{- end -}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue