浏览代码

Merge pull request #22 from barrysteyn/master

Ability for latex in page
Alexis Metaireau 11 年之前
父节点
当前提交
21a1478d9c
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 3 0
      latex/Readme.md
  2. 1 0
      latex/latex.py

+ 3 - 0
latex/Readme.md

@@ -30,6 +30,9 @@ between the `<head>` parameters (for the NotMyIdea template, this file is base.h
     {% if article and article.latex %}
         {{ article.latex }}
     {% endif %}
+    {% if page and page.latex %}
+        {{ page.latex }}
+    {% endif %}
 
 Usage
 -----

+ 1 - 0
latex/latex.py

@@ -45,3 +45,4 @@ def register():
         Plugin registration
     """
     signals.article_generate_context.connect(addLatex)
+    signals.pages_generate_context.connect(addLatex)