瀏覽代碼

Ability to add latex to pages

Barry Steyn 12 年之前
父節點
當前提交
86c0725f24
共有 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 %}
+        {{ article.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)