Source

article / article / templates / article / post_archive.html

{% extends "theme_base.html" %}

{% block title %} Blog Archive {% endblock %}

{% block body %} 
<div id="content">

  <!-- breadcrumb -->
  <div class="container">
    <div class="row">
      <div class="span15">
        <ul class="breadc clearfix">
          <li><a href="/">Home</a></li>
          <li><a href="{% url blog-archive %}">Blog Archive</a></li>
        </ul>
        <h1 class="page-title">Blog Archive</h1>
      </div>
    </div>
  </div>


  <div id="outer-wrapper">
    <div class="container">
      <!-- Content -->
      <div class="row">
        <div class="wrapper-box">
          <div class="span7">

	          <style>
	            ul.arch_month {
	            display: block;
	            clear: both;
	            }
	            ul.arch_month li {
	            display: block;
	            float: left;
	            padding: 1em 0.35em;
	            }
	          </style>

              <h2>Archive Years</h2>
              <ul class="arch_month">
                {% for d in date_list %}  
	            <li><a href="/{{ d.year }}/">{{ d.year }}</a></li>
	            {% endfor %}
	          </ul>            

              <div style="clear:both;">
                <h2>All Blog Posts</h2>
	            {% for l in latest %}
	            <h3><a alt="permanent link to {{ l.post_title }}" 
				       href="{{ l.get_absolute_url }}">
	                {{ l.post_title }}</a></h3>			
	            <p class="headline">{{ l.post_date_create|date:"F j, Y" }}</p>
            
	            {% empty %}
		            <p>Hmm no data.</p>
	                {% endfor %}
              </div>
				

          </div><!-- /span 7 -->
          <div class="span5">

          </div>
        
        </div><!-- /wrapper-box -->
      </div><!-- /row -->

    </div> <!-- /container -->

  </div><!-- / outer-wrapper -->
</div><!-- / content -->   


{% endblock %}