1. blohg
  2. Untitled project
  3. blohg

Commits

Karsten Hoffrath  committed ac4be67

Show link to source code if SHOW_RST_SOURCE is enabled.

  • Participants
  • Parent commits 66380cd
  • Branches default

Comments (0)

Files changed (1)

File blohg/repo_template/templates/posts.html

View file
     {% if is_post(post.slug) and config.DISQUS -%}
     <a href="{{ url_for('views.content', slug=post.slug) }}#disqus_thread">Comments</a> -
     {%- endif %}
-    <a href="{{ url_for('views.content', slug=post.slug) }}">Permalink</a> -
+    <a href="{{ url_for('views.content', slug=post.slug) }}">Permalink</a>
+    {%- if config.SHOW_RST_SOURCE %}
+    -
     <a href="{{ url_for('views.source', slug=post.slug) }}">Source code</a>
+    {%- endif %}
 </div>
 
 <!-- start disqus post -->