Source

article / article / templates / post_list.html

Full commit
Scott Nixon 6faa05b 
Scott Nixon 06ca034 
Scott Nixon 6faa05b 


Scott Nixon 06ca034 
Scott Nixon b253896 
Scott Nixon f66ef8d 
Scott Nixon a98a2e7 
Scott Nixon 6faa05b 
Scott Nixon f66ef8d 
Scott Nixon 6faa05b 

Scott Nixon 06ca034 
Scott Nixon 6faa05b 




Scott Nixon 06ca034 
Scott Nixon 6faa05b 
Scott Nixon 06ca034 
Scott Nixon 6faa05b 
Scott Nixon 06ca034 
Scott Nixon 6faa05b 
Scott Nixon 06ca034 
Scott Nixon 0f782bc 


Scott Nixon 06ca034 







Scott Nixon 6faa05b 

Scott Nixon 06ca034 
Scott Nixon 23f1f29 
Scott Nixon 06ca034 












Scott Nixon 6faa05b 

Scott Nixon 06ca034 

Scott Nixon c2309fb 
Scott Nixon 06ca034 
Scott Nixon 6faa05b 

Scott Nixon 509d169 
Scott Nixon 6faa05b 
Scott Nixon 8abdcff 
Scott Nixon c27bf61 
Scott Nixon 16114ef 
Scott Nixon c27bf61 



Scott Nixon 8e71e9b 

Scott Nixon 06ca034 
Scott Nixon 16114ef 
Scott Nixon 0f782bc 
Scott Nixon 06ca034 

Scott Nixon 6faa05b 
Scott Nixon 06ca034 

Scott Nixon 0f782bc 
Scott Nixon c2309fb 
Scott Nixon 0f782bc 


Scott Nixon c2309fb 

Scott Nixon b253896 






Scott Nixon 0f782bc 
Scott Nixon c2309fb 
Scott Nixon 0f782bc 

Scott Nixon c2309fb 
Scott Nixon 0f782bc 



Scott Nixon c27bf61 
Scott Nixon 06ca034 



Scott Nixon cb20fc2 


Scott Nixon 06ca034 
Scott Nixon 8abdcff 










Scott Nixon 06ca034 


Scott Nixon 8abdcff 











Scott Nixon 0f782bc 

Scott Nixon 06ca034 
Scott Nixon 0f782bc 

Scott Nixon b253896 


Scott Nixon 06ca034 
Scott Nixon 8aec0dc 

Scott Nixon 06ca034 







Scott Nixon 6faa05b 
Scott Nixon 0f782bc 




























{% extends "theme_base.html" %}

{% block meta %}
    <meta name="keywords" content="Vegan, Vegetarian, Recipes, low fat, Blog" />
    <meta name="description" content="I'm Lindsay S Nixon and Happy Herbivore is my recipe website, home to more than 130 fat-free and low fat vegan recipes! I cook with no added fats and mostly whole, unprocessed food. You won't find processed flour, refined sugars and gobs of oil or margarine in my recipes. What you will find, however, is food that is good for you and tastes great!" />

    <meta property="og:title" content="Blog Index | Happy Herbivore"/>
    <meta property="og:type" content="website"/>
    <meta property="og:image" content="http://photos.happyherbivore.com/logos/Big-Baby-Elephant.png"/>
    <meta property="og:description"
          content="Lindsay S. Nixon's recipes and cookbooks will save you money by using 'everyday' inexpensive ingredients, save you time with easy, no fuss recipes and improve your health with each nutritional bite."/>
    <link rel="alternate" type="application/rss+xml" title="Public Feeds" href="http://feeds.feedburner.com/HappyHerbivore-Blog">
{% endblock %}

{% block css %}
{% endblock %}
   
{% block js %}
{% endblock %}

{% block extra_head %}{% endblock %}

{% block head_title %}Blog Index{% endblock %}

{% block body %}

    {% load generic_flatblocks %}
    {% load disqus_tags %}
    {% load humanize %}	

  <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="/blog/">Blog</a></li>
            </ul>
            <h1 class="page-title">Happy Herbivore Blog</h1>
          </div>
        </div>
      </div>

    <div id="outer-wrapper">

      <div class="container">

        <div class="wrapper-box">

        <!-- Content -->
        <div class="row">
          <div class="span7">

            {% for post in posts.object_list %}
            <div class="post">
                <div class="arrow-box">
                  <p class="post-date">{{ post.published_on|naturalday:"N j, Y"|capfirst }}</p>
                </div>
                <h2 class="title">
                  <a alt="permanent link to {{ post.post_title }}" href="{{ post.get_absolute_url }}">
			        {{ post.post_title }}</a>
                </h2>
                <p class="meta">Posted by: <a href="/get-started/">{{ post.post_author.get_full_name }}</a> | <a alt="permanent link to {{ post.post_title }}" href="{{ post.get_absolute_url }}#disqus_thread">{% disqus_num_replies %}</a></p>
                {% if post.post_tags %}<p class="meta">Category: {% for p in post.get_tag_list %}<a href="{% url category p %}">{{ p }}</a> {% endfor %}</p>{% endif %}

                <div class="content">
                  {{ post.post_content|safe|linebreaks }}
                </div>

                {% include  "_blog_recipe.html" %}

                <div class="post-social">
                  <a class="button-orange-round" alt="permanent link to {{ post.post_title }}" href="{{ post.get_absolute_url }}#disqus_thread">{% disqus_num_replies %}</a>
                  {% include "_social.html" %}
                </div>
            </div><!-- / post -->
            {% endfor %}

            <div class="pagination">
			{% if posts.has_previous %}
				<a class="prev" href="?page={{ posts.previous_page_number }}">« Prev</a>
			{% endif %}
                <a href="?page={{ posts.number }}" class="current">{{ posts.number }}</a> 


            {% if posts.number !=  posts.paginator.num_pages %}
              {% if posts.number|add:"4" <  posts.paginator.num_pages %}
                <a href="?page={{ posts.next_page_number }}">{{ posts.next_page_number }}</a> 
                <a href="?page={{ posts.next_page_number|add:"1" }}">{{ posts.next_page_number|add:"1" }}</a> 
                <a href="?page={{ posts.next_page_number|add:"2" }}">{{ posts.next_page_number|add:"2" }}</a> 
                <a href="?page={{ posts.next_page_number|add:"3" }}">{{ posts.next_page_number|add:"3" }}</a> 
                <a href="?page={{ posts.next_page_number|add:"4" }}">{{ posts.next_page_number|add:"4" }}</a>
              {% endif %}
            {% endif%}
                ...
                <a href="?page={{ posts.paginator.num_pages }}">{{ posts.paginator.num_pages }}</a> 
			{% if posts.has_next %}
				<a class="next" href="?page={{ posts.next_page_number }}">Next »</a>
			{% endif %}             
            </div><!-- pagination -->


          </div> <!-- span7 -->

            <!-- sidebar -->
            <div class="span5">
              <div class="sidebar">

                {% gblock 6 for "gblocks.TitleAndText" into "FeedBurner" %}
                {{ FeedBurner.text|safe }}                

                <div class="categories-box">
                  <h4>Topics</h4>
                  <ul>
                    {% load tagging_tags %}
                    {% tags_for_model article.Post as tag_list %}
                    {% for t in tag_list %}
                    <li><a {% if tag_obj == t.name %}class="label-green"{% else %}class="label-orange"{% endif %} href="{% url category t.name %}">{{t.name}}</a></li>
                    {% endfor %}
                  </ul>

                </div><!-- / categories-box -->

                <hr class="separator" />

                <div class="archive-box">
                  <h4><a href="{% url blog-archive %}">Blog Archive</a></h4>
                  <ul>
                    <li><a href="{% url archive-year 2012 %}">2012</a></li>
                    <li><a href="{% url archive-year 2011 %}">2011</a></li>
                    <li><a href="{% url archive-year 2010 %}">2010</a></li>
                    <li><a href="{% url archive-year 2009 %}">2009</a></li>
                    <li><a href="{% url archive-year 2008 %}">2008</a></li>
                  </ul>
                </div>


                {% gblock 8 for "gblocks.TitleAndText" into "BlogFavorites" %}
                {{ BlogFavorites.text|safe }}

                {% gblock 7 for "gblocks.TitleAndText" into "latestbookbox" %}
                {{ latestbookbox.text|safe }}

                {% gblock 1 for "gblocks.TitleAndText" into "mealplansad" %}
                {{ mealplansad.text|safe }}
            
                {% gblock 2 for "gblocks.TitleAndText" into "fblike" %}
                {{ fblike.text|safe }}

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

    </div><!-- / outer-wrapper -->
  </div><!-- / content -->   
{% endblock %}

{% block extra_body %}
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>

<script type="text/javascript">
(function() {
    window.PinIt = window.PinIt || { loaded:false };
    if (window.PinIt.loaded) return;
    window.PinIt.loaded = true;
    function async_load(){
        var s = document.createElement("script");
        s.type = "text/javascript";
        s.async = true;
        s.src = "http://assets.pinterest.com/js/pinit.js";
        var x = document.getElementsByTagName("script")[0];
        x.parentNode.insertBefore(s, x);
    }
    if (window.attachEvent)
        window.attachEvent("onload", async_load);
    else
        window.addEventListener("load", async_load, false);
})();
</script>
{% endblock %}