chiark / gitweb /
Revert "wrap page/article content in blocks"
authorVladimír Vondruš <mosra@centrum.cz>
Wed, 13 May 2020 10:56:43 +0000 (12:56 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Wed, 13 May 2020 10:57:38 +0000 (12:57 +0200)
It's actually completely broken, GitHub led me to a false sense of
security by showing a green tick.

This reverts commit 4d1a78e9707fe52676074e600289e770a17720d8.

pelican-theme/templates/article.html
pelican-theme/templates/page.html
pelican-theme/templates/passthrough.html

index 9c692161f0ecd0859434a36dbf03ba215251d350..7b09f18b0997e53e1fc9468dbcaa957cdc11bd77 100644 (file)
@@ -93,9 +93,7 @@
           {{ M_ARCHIVED_ARTICLE_BADGE|render_rst|replace('{year}', article.date.year)|indent(8) }}
           {% endif %}
 <!-- content -->
-{% block article_content %}
 {{ article.content|trim }}
-{% endblock %}
 <!-- /content -->
           {% if article.category.badge or (article.author and article.author.badge) %}
           {{ badges()|rtrim|indent(10) }}
       {% endif %}
       {% if article.content %}
 <!-- content -->
-{% block article_content %}
 {{ article.content|trim }}
-{% endblock %}
 <!-- /content -->
       {% endif %}
       {% if article.category.badge or (article.author and article.author.badge) %}
index ae60833f1c0107bdd282a68a0710a208d2b5caf5..2328e10160fe2925310d447e855ebe3bf5549089 100644 (file)
         {% endif %}
         {% if page.content %}
 <!-- content -->
-{% block page_content %}
 {{ page.content|trim }}
-{% endblock %}
 <!-- /content -->
         {% endif %}
       </div>
index cacdfd26747ee3ea907a0595827e881665688600..bdf92b773fccf2980531a680251803025de7242e 100644 (file)
@@ -21,8 +21,6 @@
   {% endif %}
 </head>
 <body>
-{% block page_content %}
 {{- page.content -}}
-{% endblock %}
 </body>
 </html>