Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
  • 5 commits
  • 3 files changed
  • 0 commit comments
  • 2 contributors
Showing with 106 additions and 14 deletions.
  1. +47 −0 README.mdown
  2. +40 −1 README.rst
  3. +19 −13 templates/blog/includes/filter_panel.html
View
47 README.mdown
@@ -0,0 +1,47 @@
+
+Overview
+========
+
+This is a mixture of a few existing themes, namely the html5boilerplate
+Wordpress theme and Breakfast, a theme from http://www.opensourcedesign.com/.
+The idea is not that you would use this theme as-is, but as with
+html5boilerplate, as a jumping off point for your own theme.
+
+Installation
+============
+(Largely a copied from Brent Hoover's [post](https://groups.google.com/group/mezzanine-users/browse_thread/thread/3345bdbef198d3c5) to GoogleGroups)
+
+For this packages it's even easier since you actually don't need to install
+anything. Just drop the contents of the directory you checked out into the
+root of your project, and add the name of the directory to your
+INSTALLED_APPS settings.
+
+Clone out **mezzanine-html5boilerplate**
+
+ git clone git://github.com/tvon/mezzanine-html5boilerplate.git
+
+Then just copy the directory out into your project like this:
+
+(Notice the the dash has changed to an underscore, probably a name like
+"mytheme" might work better)
+
+ myprojectroot/
+ /mezzanine_html5boilerplate/
+ /templates
+ /templatetags
+ /etc...
+
+Then in settings.py change your INSTALLED_APPS so it looks like so:
+
+ .....<other_apps_snipped>
+ "mezzanine.generic",
+ "mezzanine.blog",
+ "mezzanine.forms",
+ "mezzanine.pages",
+ "mezzanine_html5boilerplate",
+
+Then while you are working on modifying the theme, you will want to add:
+
+ THEME="mezzanine_html5boilerplate"
+
+Which allow mezzanine to use the theme without installing it.
View
41 README.rst
@@ -1,4 +1,4 @@
-========
+
Overview
========
@@ -6,3 +6,42 @@ This is a mixture of a few existing themes, namely the html5boilerplate
Wordpress theme and Breakfast, a theme from http://www.opensourcedesign.com/.
The idea is not that you would use this theme as-is, but as with
html5boilerplate, as a jumping off point for your own theme.
+
+Installation
+============
+(Largely a copied from Brent Hoover's [post](https://groups.google.com/group/mezzanine-users/browse_thread/thread/3345bdbef198d3c5) to GoogleGroups)
+
+For this packages it's even easier since you actually don't need to install
+anything. Just drop the contents of the directory you checked out into the
+root of your project, and add the name of the directory to your
+INSTALLED_APPS settings.
+
+Clone out **mezzanine-html5boilerplate**
+
+ git clone git://github.com/tvon/mezzanine-html5boilerplate.git
+
+Then just copy the directory out into your project like this:
+
+(Notice the the dash has changed to an underscore, probably a name like
+"mytheme" might work better)
+
+ myprojectroot/
+ /mezzanine_html5boilerplate/
+ /templates
+ /templatetags
+ /etc...
+
+Then in settings.py change your INSTALLED_APPS so it looks like so:
+
+ .....<other_apps_snipped>
+ "mezzanine.generic",
+ "mezzanine.blog",
+ "mezzanine.forms",
+ "mezzanine.pages",
+ "mezzanine_html5boilerplate",
+
+Then while you are working on modifying the theme, you will want to add:
+
+ THEME="mezzanine_html5boilerplate"
+
+Which allow mezzanine to use the theme without installing it.
View
32 templates/blog/includes/filter_panel.html
@@ -1,4 +1,4 @@
-{% load blog_tags i18n %}
+{% load blog_tags keyword_tags i18n %}
{% blog_recent_posts 5 as recent_posts %}
{% if recent_posts %}
@@ -15,9 +15,12 @@
{% if months %}
<h3>{% trans "Archive" %}</h3>
{% for month in months %}
-{% ifchanged month.year %}{% if not forloop.first %}</ul>{% endif %}<h4>{{ month.year }}</h4><ul>{% endifchanged %}
-<li><a href="{% url blog_post_list_month year=month.date.year month=month.date.month %}"
- >{{ month.date|date:"F" }}</a></li>
+ {% ifchanged month.date.year %}
+ {% if not forloop.first %}</ul>{% endif %}
+ <h4>{{ month.date.year }}</h4><ul>
+ {% endifchanged %}
+ <li><a href="{% url blog_post_list_month year=month.date.year month=month.date.month %}"
+ >{{ month.date|date:"F" }}</a> ({{ month.post_count }})</li>
{% endfor %}
</ul>
{% endif %}
@@ -28,33 +31,36 @@
<ul>
{% for category in categories %}
<li><a href="{% url blog_post_list_category category.slug %}"
- >{{ category }}</a></li>
+ >{{ category }}</a> ({{ category.post_count }})</li>
{% endfor %}
</ul>
{% endif %}
-{% blog_tags as tags %}
+{% keywords_for blog.blogpost as tags %}
{% if tags %}
<h3>{% trans "Tags" %}</h3>
-<ul class="tags">
+<ul class="tags cloud">
{% for tag in tags %}
<li><a href="{% url blog_post_list_tag tag.slug %}"
- class="tag-weight-{{ tag.weight }}">{{ tag }}</a></li>
+ class="tag-weight-{{ tag.weight }}">{{ tag }}</a> ({{ tag.item_count }})</li>
{% endfor %}
</ul>
{% endif %}
{% blog_authors as authors %}
{% if authors %}
-{% if authors.count > 1 %}
<h3>{% trans "Authors" %}</h3>
+<ul>
{% for author in authors %}
-<a href="{% url blog_post_list_author author.username %}"
- >{{ author.get_full_name|default:author.username }}</a>
+ <li><a href="{% url blog_post_list_author author.username %}"
+ >{{ author.get_full_name|default:author.username }}</a>
+ ({{ author.post_count }})</li>
{% endfor %}
-{% endif %}
+</ul>
{% endif %}
<h3>{% trans "Feeds" %}</h3>
<a href="{% url blog_post_feed "rss" %}">{% trans "RSS" %}</a> /
-<a href="{% url blog_post_feed "atom" %}">{% trans "Atom" %}</a>
+<a href="{% url blog_post_feed "atom" %}">{% trans "Atom" %}</a>
+
+

No commit comments for this range

Something went wrong with that request. Please try again.