diff options
author | eike2013 <git@x4343.org> | 2013-08-23 08:55:29 +0200 |
---|---|---|
committer | eike2013 <git@x4343.org> | 2013-08-23 08:55:29 +0200 |
commit | f67944ad20321e5fba106447bde01383769b9163 (patch) | |
tree | 7462e1506ffea44de02829f7f393a75949d6e29e /basic/templates/base.html | |
parent | 543532ce68ac584ab33102adab578bf63e98ca42 (diff) | |
download | pelican-themes-f67944ad20321e5fba106447bde01383769b9163.tar.gz |
Add pygments support
Diffstat (limited to 'basic/templates/base.html')
-rw-r--r-- | basic/templates/base.html | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/basic/templates/base.html b/basic/templates/base.html index 861b4d7..03e2672 100644 --- a/basic/templates/base.html +++ b/basic/templates/base.html @@ -2,7 +2,8 @@ {%- block head %} {{ super() }} - <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" /> + <link rel="stylesheet" href="{{ SITEURL }}/theme/css/rdark.css" /> + <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" /> <link href="{{ SITEURL }}/{{ FEED }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" /> {%- if FEED_RSS %}<link href="{{ SITEURL }}/{{ FEED_RSS }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />{% endif -%} <!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> @@ -29,4 +30,19 @@ }); </script> {% endif %} + +<!-- Using MathJax, with the delimiters $ --> +<!-- Conflict with pygments for the .mo and .mi --> +<script type="text/x-mathjax-config"> + MathJax.Hub.Config({ + "HTML-CSS": { + styles: { + ".MathJax .mo, .MathJax .mi": {color: "black ! important"}} + }, + tex2jax: {inlineMath: [['$','$'], ['\\\\(','\\\\)']],processEscapes: true} + }); +</script> + +<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script> +</head> {% endblock -%} |