ZuluPro/myblog

View on GitHub
myblog/myapp/templates/zinnia/sitemap.html

Summary

Maintainability
Test Coverage
{% extends "zinnia/base.html" %}
{% load i18n zinnia %}

{% block title %}{% trans "Sitemap" %}{% endblock title %}

{% block meta-description %}{% trans "Sitemap of the weblog" %}{% endblock meta-description %}

{% block body-class %}sitemap{% endblock body-class %}

{% block content %}
<section class="body-head">
<div class="content">
<h1>{% trans "Sitemap" %}</h1>
</div>
</section>

<section>
<div class="content">
  <div class="pure-g">
   <div class="pure-u-1-2 pure-u-sm-1-2 pure-u-md-1-3 pure-u-lg-1-4">
    <h2>{% trans "About me" %}</h3>
    <ul>
     <li><a href="{% url "aboutme" %}" title="{% trans "About me" %}">{% trans "About me" %}</a></li>
     <li><a href="{% url "my_resume_pdf" %}" title="{% trans "Resume in PDF" %}">{% trans "My resume in PDF format" %}</a></li>
     <li><a href="{% url "my_resume_slide" %}" title="{% trans "Resume in HTML5 format" %}">{% trans "My resume in HTML5 format" %}</a></li>
     <li><a href="{% url "photos" %}" title="{% trans "My photo gallery" %}">{% trans "My photo gallery" %}</a></li>
    </ul>
   </div>

   <div class="pure-u-1-2 pure-u-sm-1-2 pure-u-md-1-3 pure-u-lg-1-3">
    <h2>{% trans "Tools" %}</h3>
    <ul>
     {% for tool in tools %}
     <li><a href="{{ tool.get_url }}" title="{{ tool.verbose_name }}">{{ tool.verbose_name }}</a> - {{ tool.description }}</li>
     {% endfor %}
    </ul>
   </div>
  </div>

  <h2>{% trans "Weblog categories" %}</h3>
  <div class="pure-g">
  {% for category in categories %}
  <div class="pure-u-1-2 pure-u-sm-1-2 pure-u-md-1-3 pure-u-lg-1-4">
  <h3>{{ category }}</h3>
  <ul>
    {% for entry in category.entries_published.all %}
    <li>
      <a href="{{ entry.get_absolute_url }}" title="{{ entry.title }}" rel="bookmark">{{ entry.title }}</a>
      {% with comment_count=entry.comment_count %}
      {% if comment_count %}
      - {{ comment_count }} {% trans "comment" %}{{ comment_count|pluralize }}
      {% endif %}
      {% endwith %}
    </li>
    {% empty %}
    <li>{% trans "No entries yet." %}</li>
    {% endfor %}
  </ul>
  </div>
  {% endfor %}
  </div>
</div>
</section>

<section>
<div class="content">
<div class="montharchives">
  <h2>{% trans "Monthly archives" %}</h2>
  {% get_archives_entries %}
</div>
</div>
</section>
{% endblock content %}