Pārlūkot izejas kodu

Show article subtitle with the article title in every list

Talha Mansoor 11 gadi atpakaļ
vecāks
revīzija
682d382454
4 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 1 1
      templates/archives.html
  2. 1 1
      templates/categories.html
  3. 1 1
      templates/index.html
  4. 1 1
      templates/tags.html

+ 1 - 1
templates/archives.html

@@ -18,7 +18,7 @@ Full archives of {{ SITENAME|striptags }} blog.
     <div class="span8 offset2">
         <ul class="list-all-articles">
             {% for article in dates %}
-            <li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
+            <li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }} {%if article.subtitle %} <small> {{ article.subtitle }} </small> {% endif %} </a>
             <time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
             </li>
             {% endfor %}

+ 1 - 1
templates/categories.html

@@ -30,7 +30,7 @@ All categories of the {{ SITENAME|striptags }} blog.
                     <div class="accordion-inner">
                         <ul class="list-articles-category">
                             {% for article in articles %} 
-                            <li><span><time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time></span> <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li>
+                            <li><span><time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time></span> <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }} {%if article.subtitle %} <small> {{ article.subtitle }} </small> {% endif %} </a></li>
                             {% endfor %}
                         </ul>
                     </div>

+ 1 - 1
templates/index.html

@@ -52,7 +52,7 @@ Home page of the {{ SITENAME|striptags }} blog.
             {% if loop.index0 < RECENT_ARTICLES_COUNT %}
             <ul class="list-all-articles">
                 <li>
-                <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> 
+                <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }} {%if article.subtitle %} <small> {{ article.subtitle }} </small> {% endif %} </a> 
                 <time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
                 </li>
             </ul>

+ 1 - 1
templates/tags.html

@@ -36,7 +36,7 @@ All tags used in the {{ SITENAME|striptags }} blog.
         <h2 id="{{ tag|replace(' ', '-')|e }}-ref" class="tag-title">{{ tag }}</h2>
         <ul class="articles-in-tag">
             {% for article in articles %} 
-            <li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></li>
+            <li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }} {%if article.subtitle %} <small> {{ article.subtitle }} </small> {% endif %} </a></li>
             {% endfor %}
         </ul>