Browse Source

Changes column width and remove redundant rows from article

Talha Mansoor 11 years ago
parent
commit
3fce285110
1 changed files with 34 additions and 44 deletions
  1. 34 44
      templates/article.html

+ 34 - 44
templates/article.html

@@ -14,57 +14,47 @@
     }
 </script>
 <div class="row-fluid">
-    <header class="page_header span10 offset2">
+    <header class="page_header span12">
     <h1> {{ article.title }} <small> {%if article.subtext %} {{ article.subtext }} {% endif %} </small></h1>
     </header>
 </div>
 
 <div class="row-fluid">
-    <div class="span2" id="toc_sidebar">
-    </div>
-    <div class="span6 article-content">
+    <div class="span9 article-content">
         {{ article.content }}
     </div>
-    <div class="span3 offset1">
-        <div class="row-fluid">
-            <div class="span12">
-                <p>
-                {% set day = article.date.strftime('%d')|int %}
-                {% set suffix = ['st', 'nd', 'rd', 'th'] %}
-                {{ article.date.strftime('%b') }} {{ day }}
-                {%- if 4 <= day <= 20 or 24 <= day <= 30 -%} {{ suffix[3] }}
-                {%- elif day % 10 - 1 == 0 -%} {{ suffix[0] }} 
-                {%- elif day % 10 - 1 == 1 -%} {{ suffix[1] }} 
-                {%- elif day % 10 - 1 == 2 -%} {{ suffix[2] }} 
-                {%- endif -%}
-                {{ article.date.strftime(', %Y') }}    
-                </p>
-                <p>
-                Published by <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a> in <a href="{{ SITEURL }}/categories.html#{{ category|replace(' ', '-')|e }}-ref">{{ article.category }}</a> 
-                </p>
-                {% if article.modified %} 
-                <p>Updated on {{ article.modified }}
-                </p>
-                {% endif %}
-
-            </div>
-        </div>
-
-        <div class="row-fluid">
-            <div class="span12">
-                {% if article.tags %}
-                <h4>Tags</h4>
-                <ul class="list-of-tags"> 
-                    {% for tag in article.tags %}
-                    <li><a href="/tags.html#{{ tag|replace(' ', '-')|e }}-ref">{{ tag }}
-                        {% for aTag, tagged_articles in tags if aTag == tag %}
-                        <span>{{ tagged_articles|count }}</span>
-                        {% endfor %}</a></li>
-                    {% endfor %}
-                </ul>
-                {% endif %}
-            </div>
-        </div>
+    <div class="span2 offset1">
+        <h4>Published</h4>
+        {% if article.date %} 
+        {% set day = article.date.strftime('%d')|int %}
+        {% set suffix = ['st', 'nd', 'rd', 'th'] %}
+        {{ article.date.strftime('%b') }} {{ day }}
+        {%- if 4 <= day <= 20 or 24 <= day <= 30 -%} {{ suffix[3] }}
+        {%- elif day % 10 - 1 == 0 -%} {{ suffix[0] }} 
+        {%- elif day % 10 - 1 == 1 -%} {{ suffix[1] }} 
+        {%- elif day % 10 - 1 == 2 -%} {{ suffix[2] }} 
+        {%- endif -%}
+        {{ article.date.strftime(', %Y') }}    
+        {% endif %}
+        {% if article.modified %} 
+        <h4>Last Updated</h4>
+        {{ article.modified }}
+        {% endif %}
+        {% if article.category %}
+        <h4>Category</h4>
+        <a href="{{ SITEURL }}/categories.html#{{ category|replace(' ', '-')|e }}-ref">{{ article.category }}</a> 
+        {% endif %}
+        {% if article.tags %}
+        <h4>Tags</h4>
+        <ul class="list-of-tags"> 
+            {% for tag in article.tags %}
+            <li><a href="/tags.html#{{ tag|replace(' ', '-')|e }}-ref">{{ tag }}
+                {% for aTag, tagged_articles in tags if aTag == tag %}
+                <span>{{ tagged_articles|count }}</span>
+                {% endfor %}</a></li>
+            {% endfor %}
+        </ul>
+        {% endif %}
     </div>
 </div>
 <script type="text/javascript" language="JavaScript">