08d7552b6237

Add categories.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sat, 16 Jan 2010 14:53:38 -0500
parents e8cb0776f67e
children bf1d9c41291c
branches/tags (none)
files content/blog/2008/02/microsoft-entourage-applescript-frustration.html content/blog/2008/04/shooting-girl-jam.html content/blog/2008/08/beauty-in-computer-science-recursion.html content/blog/2008/08/negative-space-dancing.html content/blog/2008/08/on-leading.html content/blog/2009/01/deploying-site-fabric-and-mercurial.html content/blog/2009/01/going-open-source.html content/blog/2009/01/site-redesign.html content/blog/2009/02/how-and-why-i-dj.html content/blog/2009/02/how-i-shoot-dances.html content/blog/2009/03/candy-colored-terminal.html content/blog/2009/03/mercurial-bash-prompts.html content/blog/2009/04/why-people-dont-like-metal.html content/blog/2009/05/what-i-hate-about-mercurial.html content/blog/2009/06/how-to-contribute-to-mercurial.html content/blog/2009/08/a-guide-to-branching-in-mercurial.html content/blog/2009/11/my-sitesprint-project-lindyhub.html content/blog/2010/01/moving-from-django-to-hyde.html content/blog/dancing.html content/blog/music.html content/blog/photography.html content/blog/programming.html content/projects/django-hoptoad.html content/projects/fuego.html content/projects/grabtweets.html content/projects/hg-paste.html content/projects/hg-prompt.html content/projects/hgtab.html content/projects/lindyjam-com.html content/projects/photography.html content/projects/programming.html content/projects/stevelosh-com.html content/projects/t.html content/projects/women-in-water.html fabfile.py layout/_post.html layout/skeleton/_base.html layout/skeleton/_categorylisting.html layout/skeleton/_innerlisting.html layout/skeleton/_listing.html layout/skeleton/_listingitem.html media/css/base.css settings.py

Changes

--- a/content/blog/2008/02/microsoft-entourage-applescript-frustration.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2008/02/microsoft-entourage-applescript-frustration.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "Entourage + Applescript = Frustration"
     snip: "This is ridiculous."
     created: 2008-02-21 15:25:45
+    categories: ["programming"]
 %}
 
 {% block article %}
--- a/content/blog/2008/04/shooting-girl-jam.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2008/04/shooting-girl-jam.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "Shooting Girl Jam"
     snip: "I’m finally getting the kind of dancing photos I want."
     created: 2008-04-29 18:31:16
+    categories: ["photography", "dancing"]
 %}
 
 
--- a/content/blog/2008/08/beauty-in-computer-science-recursion.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2008/08/beauty-in-computer-science-recursion.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "Beauty in Computer Science"
     snip: "Why I love what I do."
     created: 2008-08-29 15:30:38
+    categories: ["programming"]
 %}
 
 
--- a/content/blog/2008/08/negative-space-dancing.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2008/08/negative-space-dancing.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "Negative Space in Dancing"
     snip: "It’s not just for artsy kids."
     created: 2008-08-31 15:33:57
+    categories: ["dancing"]
 %}
 
 
--- a/content/blog/2008/08/on-leading.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2008/08/on-leading.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "On Leading"
     snip: "Some of my thoughts on leading after five years of doing it."
     created: 2008-08-01 15:28:33
+    categories: ["dancing"]
 %}
 
 
--- a/content/blog/2009/01/deploying-site-fabric-and-mercurial.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2009/01/deploying-site-fabric-and-mercurial.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "Deploying with Fabric &amp; Mercurial"
     snip: "Trimming typing."
     created: 2009-01-15 20:51:09
+    categories: ["programming"]
 %}
 
 {% block article %}
--- a/content/blog/2009/01/going-open-source.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2009/01/going-open-source.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "Going Open Source"
     snip: "Why I’m making the code to this website public."
     created: 2009-01-13 20:08:56
+    categories: ["programming"]
 %}
 
 {% block article %}
--- a/content/blog/2009/01/site-redesign.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2009/01/site-redesign.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "Site Redesign"
     snip: "Yeah, I know.  Again."
     created: 2009-01-11 17:58:23
+    categories: ["programming"]
 %}
 
 {% block article %}
--- a/content/blog/2009/02/how-and-why-i-dj.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2009/02/how-and-why-i-dj.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "How &amp; Why I DJ"
     snip: "I like playing music for dancers."
     created: 2009-02-06 17:53:44
+    categories: ["music", "dancing"]
 %}
 
 {% block article %}
--- a/content/blog/2009/02/how-i-shoot-dances.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2009/02/how-i-shoot-dances.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "How I Shoot Dances"
     snip: "Slow shutter and flash."
     created: 2009-02-09 18:04:36
+    categories: ["photography", "dancing"]
 %}
 
 {% block article %}
--- a/content/blog/2009/03/candy-colored-terminal.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2009/03/candy-colored-terminal.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "Candy Colored Terminal"
     snip: "Better colors for the OS X Terminal."
     created: 2009-03-18 18:26:28
+    categories: ["programming"]
 %}
 
 {% block article %}
--- a/content/blog/2009/03/mercurial-bash-prompts.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2009/03/mercurial-bash-prompts.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "Mercurial Bash Prompts"
     snip: "Always know where you are."
     created: 2009-03-17 21:34:55
+    categories: ["programming"]
 %}
 
 {% block article %}
--- a/content/blog/2009/04/why-people-dont-like-metal.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2009/04/why-people-dont-like-metal.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "Why People Don’t Like Metal"
     snip: "It’s probably not what you think."
     created: 2009-04-02 22:32:27
+    categories: ["music"]
 %}
 
 {% block article %}
--- a/content/blog/2009/05/what-i-hate-about-mercurial.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2009/05/what-i-hate-about-mercurial.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "What I Hate About Mercurial"
     snip: "Hg, I love you, but sometimes you bring me down."
     created: 2009-05-29 19:51:05
+    categories: ["programming"]
 %}
 
 {% block article %}
--- a/content/blog/2009/06/how-to-contribute-to-mercurial.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2009/06/how-to-contribute-to-mercurial.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "How to Contribute to Mercurial"
     snip: "Ten minutes of setup will make it easier."
     created: 2009-06-01 20:09:44
+    categories: ["programming"]
 %}
 
 {% block article %}
--- a/content/blog/2009/08/a-guide-to-branching-in-mercurial.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2009/08/a-guide-to-branching-in-mercurial.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "A Guide to Branching in Mercurial"
     snip: "With illustrations and comparisons to git."
     created: 2009-08-30 20:27:12
+    categories: ["programming"]
 %}
 
 {% block article %}
--- a/content/blog/2009/11/my-sitesprint-project-lindyhub.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2009/11/my-sitesprint-project-lindyhub.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "My SiteSprint Project: LindyHub"
     snip: "I want to make something awesome for dancers."
     created: 2009-11-16 19:15:07
+    categories: ["programming", "dancing"]
 %}
 
 {% block article %}
--- a/content/blog/2010/01/moving-from-django-to-hyde.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/blog/2010/01/moving-from-django-to-hyde.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "Moving from Django to Hyde"
     snip: "Another year, another rewrite."
     created: 2010-01-15 20:14:00
+    categories: ["programming"]
 %}
 
 {% block article %}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/content/blog/dancing.html	Sat Jan 16 14:53:38 2010 -0500
@@ -0,0 +1,7 @@
+{% extends "skeleton/_categorylisting.html" %}
+
+{% hyde
+    title: "Blog"
+    category: "dancing"
+    exclude: True
+%}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/content/blog/music.html	Sat Jan 16 14:53:38 2010 -0500
@@ -0,0 +1,7 @@
+{% extends "skeleton/_categorylisting.html" %}
+
+{% hyde
+    title: "Blog"
+    category: "music"
+    exclude: True
+%}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/content/blog/photography.html	Sat Jan 16 14:53:38 2010 -0500
@@ -0,0 +1,7 @@
+{% extends "skeleton/_categorylisting.html" %}
+
+{% hyde
+    title: "Blog"
+    category: "photography"
+    exclude: True
+%}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/content/blog/programming.html	Sat Jan 16 14:53:38 2010 -0500
@@ -0,0 +1,7 @@
+{% extends "skeleton/_categorylisting.html" %}
+
+{% hyde
+    title: "Blog"
+    category: "programming"
+    exclude: True
+%}
\ No newline at end of file
--- a/content/projects/django-hoptoad.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/projects/django-hoptoad.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "django-hoptoad"
     snip: "Now ponies can ride the toad too."
     created: 2009-07-25 01:16:40
+    categories: ["programming"]
 %}
 
 {% block article %}
--- a/content/projects/fuego.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/projects/fuego.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "Fuego"
     snip: "Photographs of Alex. Studio."
     created: 2009-01-19 01:25:20
+    categories: ["photography"]
 %}
 
 {% block article %}
--- a/content/projects/grabtweets.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/projects/grabtweets.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "grabtweets"
     snip: "A simple tool for backing up your tweets."
     created: 2009-09-12 11:02:46
+    categories: ["programming"]
 %}
 
 {% block article %}
--- a/content/projects/hg-paste.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/projects/hg-paste.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "hg-paste"
     snip: "Send diffs from Mercurial to various pastebin websites."
     created: 2009-09-16 17:52:55
+    categories: ["programming"]
 %}
 
 {% block article %}
--- a/content/projects/hg-prompt.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/projects/hg-prompt.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "hg-prompt"
     snip: "A Mercurial extension for adding repository info to your shell prompt."
     created: 2009-06-19 22:25:17
+    categories: ["programming"]
 %}
 
 {% block article %}
--- a/content/projects/hgtab.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/projects/hgtab.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,8 @@
     title: "hgtab"
     snip: "Smarter tab completion for Mercurial in bash."
     created: 2009-03-10 20:22:44
+    categories: ["programming"]
+    exclude: True
 %}
 
 {% block article %}
--- a/content/projects/lindyjam-com.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/projects/lindyjam-com.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "lindyjam.com"
     snip: "A page for a local weekly swing dance event (and more)."
     created: 2009-01-21 18:28:35
+    categories: ["programming"]
 %}
 
 {% block article %}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/content/projects/photography.html	Sat Jan 16 14:53:38 2010 -0500
@@ -0,0 +1,7 @@
+{% extends "skeleton/_categorylisting.html" %}
+
+{% hyde
+    title: "Programming"
+    category: "photography"
+    exclude: True
+%}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/content/projects/programming.html	Sat Jan 16 14:53:38 2010 -0500
@@ -0,0 +1,7 @@
+{% extends "skeleton/_categorylisting.html" %}
+
+{% hyde
+    title: "Projects"
+    category: "programming"
+    exclude: True
+%}
\ No newline at end of file
--- a/content/projects/stevelosh-com.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/projects/stevelosh-com.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "stevelosh.com"
     snip: "This website."
     created: 2009-01-11 15:40:26
+    categories: ["programming"]
 %}
 
 {% block article %}
--- a/content/projects/t.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/projects/t.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "t"
     snip: "A command-line todo list manager for people that want to <em>finish</em> tasks, not organize them."
     created: 2009-09-11 19:03:29
+    categories: ["programming"]
 %}
 
 {% block article %}
--- a/content/projects/women-in-water.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/content/projects/women-in-water.html	Sat Jan 16 14:53:38 2010 -0500
@@ -4,6 +4,7 @@
     title: "Women in Water"
     snip: "Photographs of women in Lake Ontario."
     created: 2009-08-04 18:57:36
+    categories: ["photography"]
 %}
 
 {% block article %}
--- a/fabfile.py	Fri Jan 15 20:30:20 2010 -0500
+++ b/fabfile.py	Sat Jan 16 14:53:38 2010 -0500
@@ -15,7 +15,7 @@
     local('hyde -g -s .')
 
 def serve():
-    local('hyde -w -s .')
+    local('hyde -w -s . -k')
 
 def reserve():
     regen()
--- a/layout/_post.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/layout/_post.html	Sat Jan 16 14:53:38 2010 -0500
@@ -11,7 +11,15 @@
         <h1><a href="{{ page.url }}">{{ page.title|safe|typogrify }}</a></h1>
     </div>
     
-    <div id="leaf-stats"><p>Posted on {{ page.created|date:"l, F j, Y" }} ({{ page.created|timesince }} ago).</p></div>
+    <div id="leaf-stats">
+        <p>
+            Posted {{ page.created|timesince }} ago on {{ page.created|date:"F j, Y" }}
+            {% if page.categories %}
+                and tagged as
+{% for category in page.categories %}{% if not forloop.first %}{% if forloop.last %} and {% else %}, {% endif %}{% endif %}<a href="{{ page.node.ancestors.1.url }}/{{ category }}/">{{ category }}</a>{% endfor %}.
+            {% endif %}
+        </p>
+    </div>
     
     <div id="leaf-content">
         {% filter typogrify %}
--- a/layout/skeleton/_base.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/layout/skeleton/_base.html	Sat Jan 16 14:53:38 2010 -0500
@@ -8,7 +8,7 @@
     <head>
         <meta http-equiv="content-type" content="text/html; charset=utf-8">
         
-        <title>{% block title %}{{ page.title|safe }} / {{ site.name }}{% endblock %}</title>
+        <title>{% block title %}{% block extra_title %}{% endblock %}{{ page.title|safe }} / {{ site.name }}{% endblock %}</title>
         
         {% block feeds %}
             <link href="{{ site.url }}/blog/atom.xml"
@@ -43,8 +43,9 @@
         <div id="main-wrap">
             <div id="header">
                 <h1>
-                    <a href="/">steve losh</a> <span class="page-title">/ {{ page.title|safe|typogrify }}</span>
+                    <a href="/">steve losh</a> <span class="page-title">/ {{ page.title|safe|typogrify }}{% block extra_header %}{% endblock %}</span>
                 </h1>
+                {% block after_header %}{% endblock %}
             </div>
             
             <div id="nav">
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/layout/skeleton/_categorylisting.html	Sat Jan 16 14:53:38 2010 -0500
@@ -0,0 +1,22 @@
+{% extends "skeleton/_base.html"%}
+
+{% block extra_title %}{{ page.category|capfirst }} / {% endblock %}
+{% block extra_header %} / {{ page.category }}{% endblock %}
+
+{% block content %}
+    <div id="section-listing">
+        <ol>
+            {% with page.node.ancestors|last as cat_root_node %}
+                {% for cat_name, cat in cat_root_node.categories.items %}
+                    {% ifequal cat_name page.category %}
+                        {% for list_page in cat.posts|dictsortreversed:"created" %}
+                            {% if not list_page.exclude %}
+                                {% include "skeleton/_listingitem.html" %}
+                            {% endif %}
+                        {% endfor %}
+                    {% endifequal %}
+                {% endfor %}
+            {% endwith %}
+        </ol>
+    </div>
+{% endblock %}
\ No newline at end of file
--- a/layout/skeleton/_innerlisting.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/layout/skeleton/_innerlisting.html	Sat Jan 16 14:53:38 2010 -0500
@@ -6,14 +6,7 @@
 {% for list_page in node.pages %}
     {% ifnotequal list_page node.listing_page %}
         {% if not list_page.exclude %}
-            <li>
-                <a href="{{ list_page.url }}">
-                    {% with list_page.name_without_extension|remove_date_prefix|unslugify as default_title %}
-                        {{ list_page.title|default_if_none:default_title|safe|typogrify }}
-                    {%endwith%}
-                </a>
-                <span class="snip">{{ list_page.snip|safe|typogrify }}</span>
-            </li>
+            {% include "skeleton/_listingitem.html" %}
         {%endif%}
     {% endifnotequal %}
 {% endfor %}
--- a/layout/skeleton/_listing.html	Fri Jan 15 20:30:20 2010 -0500
+++ b/layout/skeleton/_listing.html	Sat Jan 16 14:53:38 2010 -0500
@@ -1,5 +1,24 @@
 {% extends "skeleton/_base.html"%}
 
+{% block extra_header %}{% if page.node.categories %} / {% endif %}{% endblock %}
+
+{% block after_header %}
+    {% if page.node.categories %}
+        <ul id="section-tags">
+            <span class="section-tags-col">
+            {% for category in page.node.categories.keys %}
+                <li><a href="{{ page.url }}{{ category }}">{{ category }}</a></li>
+                {% if forloop.counter|divisibleby:2 %}
+                    {% if not forloop.last %}
+                        </span><span class="section-tags-col">
+                    {% endif %}
+                {% endif %}
+            {% endfor %}
+            </span>
+        </ul>
+    {% endif %}
+{% endblock %}
+
 {% block content %}
     <div id="section-listing">
         <ol>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/layout/skeleton/_listingitem.html	Sat Jan 16 14:53:38 2010 -0500
@@ -0,0 +1,8 @@
+<li>
+    <a href="{{ list_page.url }}">
+        {% with list_page.name_without_extension|remove_date_prefix|unslugify as default_title %}
+            {{ list_page.title|default_if_none:default_title|safe|typogrify }}
+        {%endwith%}
+    </a>
+    <span class="snip">{{ list_page.snip|safe|typogrify }}</span>
+</li>
\ No newline at end of file
--- a/media/css/base.css	Fri Jan 15 20:30:20 2010 -0500
+++ b/media/css/base.css	Sat Jan 16 14:53:38 2010 -0500
@@ -30,20 +30,22 @@
 }
 
 /* Page header styles. */
-#header {
-    margin-top: 1.5em;
-    margin-bottom: 3em;
+div#header {
+    margin-bottom: 1.5em;
     overflow: visible;
     white-space: nowrap;
 }
-#header h1 {
+div#header h1 {
+	margin-top: 0.5em;
+	margin-bottom: 0;
     letter-spacing: -3px;
     font-size: 3.5em;
     font-weight: normal;
     font-family: "Helvetica Neue", HelveticaNeue, Arial, Helvetica, sans-serif;
-    margin-bottom: 0em;
+    display: inline;
+    line-height: 1.5em;
 }
-#header span.page-title {
+div#header span.page-title {
     color: #666;
     text-transform: lowercase;
 }
@@ -273,3 +275,27 @@
 #dsq-new-post div.dsq-request-user-info a {
     font-size: 14px;
 }
+
+/* Tag styles. */
+ul#section-tags {
+    list-style: none;
+    margin: 0 0 0 0.4em;
+    display: inline-block;
+    font-family: "Helvetica Neue Light", HelveticaNeue-Light, "Helvetica Neue", HelveticaNeue, Arial, Helvetica, sans-serif;
+}
+ul#section-tags li {
+    font-size: 1.2em;
+    line-height: 1.05em;
+    margin: 0;
+}
+ul#section-tags li a {
+	color: #666;
+}
+ul#section-tags li a:hover {
+	color: #e50053;
+	text-decoration: none;
+}
+ul#section-tags span.section-tags-col {
+    display: inline-block;
+    margin-right: 1em;
+}
\ No newline at end of file
--- a/settings.py	Fri Jan 15 20:30:20 2010 -0500
+++ b/settings.py	Sat Jan 16 14:53:38 2010 -0500
@@ -51,6 +51,15 @@
 
 CONTENT_PROCESSORS = {}
 
+SITE_PRE_PROCESSORS = {
+    'blog': {
+        'hydeengine.site_pre_processors.CategoriesManager': {},
+    },
+    'projects': {
+        'hydeengine.site_pre_processors.CategoriesManager': {},
+    },
+}
+
 SITE_POST_PROCESSORS = {
     # 'media/js': {
     #        'hydeengine.site_post_processors.FolderFlattener' : {