Day 20 Dev Notes

More template tags and more template refactoring tonight.

I created a post_date_link tag that displays a nicely rendered date with links to each of the date archives sections.

This changed the following code:

      Posted on
      <a href="{% url "djpress:archives_posts" post.date.year|stringformat:"04d" post.date.month|stringformat:"02d" %}" title="View all posts in this month">{{ post.date|date:"M" }}</a>
      <a href="{% url "djpress:archives_posts" post.date.year|stringformat:"04d" post.date.month|stringformat:"02d" post.date.day|stringformat:"02d" %}" title="View all posts on this day">{{ post.date|date:"j" }}</a>,
      <a href="{% url "djpress:archives_posts" post.date.year|stringformat:"04d" %}" title="View all posts in this year">{{ post.date|date:"Y" }}</a>,
      {{ post.date|date:"g:i a" }}

To this:

      Posted on {% post_date_link post.date %}

I also changed the way author's names are displayed, and lots of related template refactoring.

GitHub link