mirror of
https://github.com/Vimux/Binario.git
synced 2024-11-24 23:18:33 +00:00
Add initial MathJax support
This commit is contained in:
parent
5cb9c55085
commit
5c6983ec9e
3 changed files with 9 additions and 2 deletions
|
@ -32,10 +32,13 @@ description = "John Doe's Personal blog about everything" # Description of your
|
|||
opengraph = true # Enable OpenGraph if true
|
||||
twitter_cards = true # Enable Twitter Cards if true
|
||||
cardsPerRow = 2 # Possible values: 1, 2, 3
|
||||
#toc: true # Enable Table of Contents for all site pages
|
||||
#comments: true # Enable comments for all site pages
|
||||
#mainSections = ["post"] # Set main page sections
|
||||
#dateFormat = "2006-01-02" # change the format of dates
|
||||
#toc: true # Enable Table of Contents for all site pages
|
||||
#comments: true # Enable comments for all site pages
|
||||
#mathjax: true # Enable MathJax for all site pages
|
||||
#mathjaxPath: "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js" # Specify path to MathJax lib. Optional
|
||||
#mathjaxConfig: "TeX-AMS-MML_HTMLorMML" # Specify MathJax config. Optional
|
||||
|
||||
[Params.Social]
|
||||
#facebook = "username"
|
||||
|
|
|
@ -4,5 +4,6 @@
|
|||
</footer>
|
||||
<script src="{{ "js/modernizr.js" | relURL }}"></script>
|
||||
<script src="{{ "js/menu.js" | relURL }}"></script>
|
||||
{{- partial "mathjax.html" . -}}
|
||||
</body>
|
||||
</html>
|
3
layouts/partials/mathjax.html
Normal file
3
layouts/partials/mathjax.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{ if and .IsPage (eq (.Param "mathjax") true) }}
|
||||
<script src="{{ .Param "mathjaxPath" | default "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js" }}{{ with .Param "mathjaxConfig" | default "TeX-AMS-MML_HTMLorMML" }}?config={{ . }}{{ end }}" async></script>
|
||||
{{ end }}
|
Loading…
Reference in a new issue