Commit a7b8f218 authored by Isabella Skořepová's avatar Isabella Skořepová

MathJax

Implements #26
parent ed3da471
Pipeline #157 passed with stages
{% extends "partials/base.html.nunj" %}
{% block head %}
{{ super() }}
{{ metadata.headerextra | safe }}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true
},
elements: $("#content article"),
"HTML-CSS": { availableFonts: ["TeX"] },
locale: "cs",
menuSettings: {
zoom: "Hover"
},
MathEvents: {
hover: 0
}
});
</script>
<script type="text/javascript" async
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML&">
</script>
{% endblock %}
{% block bodyattr %} class="type-article"{% endblock %}
{% block content %}
......
<!DOCTYPE html>
<html lang="en">
<head>
{% block head %}
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
<title>{% if metadata.title %}{{ metadata.title }}{%else%}Radioklub OK1KVK{%endif%}</title>
......@@ -35,7 +36,7 @@
{% if config.devel %}
<script src="{{ config.baseurl }}/theme/js/socket.io-1.4.5.js"></script>
{% endif %}
{{ metadata.headerextra | safe }}
{% endblock %}
</head>
<body{% block bodyattr %}{% endblock %}>
{% import "partials/svgs.html.nunj" as svgs %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment