Add tags for every post on blog post listing page.
authorAditi Mittal <aditi.iitr@gmail.com>
Fri, 6 Sep 2013 13:24:29 +0000 (18:54 +0530)
committerAditi Mittal <aditi.iitr@gmail.com>
Fri, 6 Sep 2013 13:24:29 +0000 (18:54 +0530)
mediagoblin/media_types/blog/templates/mediagoblin/blog/blog_post_listing.html

index 184693d9f7cd602e596b07d6f179c8bfaf718673..a1fd93c1430109ab1d9a685e131e9f5fd7cd6c4d 100644 (file)
 
 {% block mediagoblin_head -%}
   <style type="text/css">
-  h3 {margin = 0; padding = 0;
-        font-size=.7 em;}
+  h4 {margin:0; padding : 0;
+        font-size:.7 em;}
+  a{text-decoration:none;
+    text-transform:capitalize;}
   
   </style>
 {%- endblock %}
             <div class="b_listing_title"><a href="{{ post.url_for_self(request.urlgen) }}">
                                             <h2><font color="black">{{ post.title }}</font></h2></a>
             </div>
-            <h3>{{ post.created.strftime("%d %b, %Y") }}</h3>
-            
+            <h4 align="right">{{ post.created.strftime("%d %b, %Y") }}</h4>
+            {% if post.tags %}
+                {% for tag in post.tags %}
+                    <a href="{{ request.urlgen(
+                          'mediagoblin.user_pages.user_tag_gallery',
+                          tag=tag['slug'],
+                          user=post.get_uploader.username) }}">{{ tag['name'] }}  |</a>
+                {% endfor %}
+            {% endif %}
             <div class="b_list_des"> <p>{{ post.description|safe }} </p></div>
             </br>
             </br>