Переглянути джерело

Add support for Latex

Close #36
Talha Mansoor 11 роки тому
батько
коміт
d16728eff1
4 змінених файлів з 15 додано та 0 видалено
  1. 1 0
      RELEASE_NOTES.md
  2. 7 0
      THANKS.md
  3. 1 0
      templates/base.html
  4. 6 0
      templates/latex.html

+ 1 - 0
RELEASE_NOTES.md

@@ -7,6 +7,7 @@ Version 1.4 (under development)
 * New: Configure heading of social profile with `SOCIAL_PROFILE_LABEL`
 * New: `article.comments_intro` that overrides `COMMENTS_INTRO`. Now you can
   define article specific comments introduction
+* New: Support for Latex with the help of `latex` plugin
 
 Visual Style
 ------------

+ 7 - 0
THANKS.md

@@ -1,6 +1,13 @@
 Thanks to
 =========
 
+[Jed Brown](https://github.com/jedbrown)
+----------------------------------------
+
+### Oct 12, 2013
+
+1. He suggested integration with Latex.
+
 [calfzhou](https://github.com/calfzhou)
 ---------------------------------------
 

+ 1 - 0
templates/base.html

@@ -13,6 +13,7 @@
         <meta name="author" content="{{ AUTHOR }}" />
         <meta name="copyright" content="{{ AUTHOR }}" />
         {% endif %}
+        {% include 'latex.html' %}
 
         {% if SITE_DESCRIPTION %}
         <meta name="description" content="{% block head_description %}{{ SITE_DESCRIPTION }}{% endblock head_description %}" />

+ 6 - 0
templates/latex.html

@@ -0,0 +1,6 @@
+{% if article and article.latex %}
+    {{ article.latex }}
+{% endif %}
+{% if page and page.latex %}
+    {{ page.latex }}
+{% endif %}