{{tpl:extends parent="__layout.html"}}

<tpl:Block name="head-title">
  <title>{{tpl:lang Categories Page}} - {{tpl:BlogName encode_html="1"}}</title>
</tpl:Block>

<tpl:Block name="meta-robots">
  <meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX"}}" />
</tpl:Block>

<tpl:Block name="head-linkrel">
  <link rel="contents" title="{{tpl:lang Archives}}" href="{{tpl:BlogArchiveURL}}" />

  <tpl:Categories>
  <link rel="section" href="{{tpl:CategoryURL}}" title="{{tpl:CategoryTitle encode_html="1"}}" />
  </tpl:Categories>

  <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" />
</tpl:Block>

<tpl:Block name="body-tag"><body class="dc-categories"></tpl:Block>

<tpl:Block name="main-content">
  <div id="content-info">
    <h2>{{tpl:lang Categories}}</h2>
  </div>

  <div class="content-inner">
		<tpl:Categories>
    <div class="category post">
    <h3><a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a> ({{tpl:CategoryCount}})</h3>
    <div>{{tpl:CategoryDescription}}</div>

     <tpl:CategoryIf has_entries="1">
		<div class="metacat">
        <div class="cat">
        <!-- # cat/ss-cat -->
          <tpl:CategoryFirstChildren>
		      <tpl:CategoriesHeader><p>{{tpl:lang Subcategories}}<span class="item"></tpl:CategoriesHeader><a href="{{tpl:CategoryURL}}">{{tpl:CategoryTitle encode_html="1"}}</a><tpl:LoopPosition start="1" length="-1">, </tpl:LoopPosition>
		      <tpl:CategoriesFooter></span></p></tpl:CategoriesFooter>
          </tpl:CategoryFirstChildren>
         <!-- # flux -->
		      <img alt="{{tpl:lang This category's entries Atom feed}}" src="{{tpl:BlogThemeURL}}/images/icons/feed-icon-16x16.gif" /><span class="flux"><a type="application/atom+xml" href="{{tpl:CategoryFeedURL type="atom"}}"
		      title="{{tpl:lang This category's entries Atom feed}}" class="feed">{{tpl:lang Entries feed}}</a></span>
        <tpl:SysIf comments_active="1">
		      <img alt="{{tpl:lang This category's comments Atom feed}}" src="{{tpl:BlogThemeURL}}/images/icons/feed-icon-16x16.gif" /><span class="flux"><a type="application/atom+xml" href="{{tpl:CategoryFeedURL type="atom"}}/comments"
		      title="{{tpl:lang This category's comments Atom feed}}" class="feed">{{tpl:lang Comments feed}}</a></span>
		      </tpl:SysIf>
        </div>
    </div>
		  </tpl:CategoryIf>
    </div>
	</tpl:Categories>
  </div>
</tpl:Block>