forked from HaxeFoundation/code-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
table-of-content-category.mtt
36 lines (32 loc) · 1.99 KB
/
table-of-content-category.mtt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<small class="crumb" itemscope="itemscope" itemtype="https://schema.org/BreadcrumbList">
::set hasParent = currentPage.category.parent!=null::
<span itemprop="itemListElement" itemscope="itemscope" itemtype="https://schema.org/ListItem"><a itemprop="name" href="/">Haxe programming cookbook</a><meta itemprop="position" content="1" /></span>
<span itemprop="itemListElement" itemscope="itemscope" itemtype="https://schema.org/ListItem" ::cond hasParent::><a itemprop="name" href="::currentPage.category.parent.outputPath::">::currentPage.category.parent.title::</a><meta itemprop="position" content="2" /></span>
<span itemprop="itemListElement" itemscope="itemscope" itemtype="https://schema.org/ListItem"><a itemprop="name" href="::currentPage.outputPath::">::currentCategory.title::</a><meta itemprop="position" content="::if hasParent::3::else::2::end::" /></span>
</small>
<h1 itemprop="name"><i class="fa fa-book"></i> ::currentCategory.title:: </h1>
<p>::currentPage.description::</p>
<ul class="page-list unstyled">
::foreach page currentCategory.pages::
<li class="page-list-item" itemscope="itemscope" itemtype="https://schema.org/Thing" ::cond page.visible ::>
<h4><small class="category-count" ::cond page.dates.created !=null::>::DateTools.format(page.dates.created, "%b %d, %Y")::</small>
::if page.isSerieHome()::
::page.category.parent.title::
::else::
::page.category.title::
::end::
<small class="category-count">/</small> <a href="::page.outputPath::" class="list-group-item" itemprop="url"><span itemprop="name">::page.title::</span></a>
</h4>
<p class="tags" ::cond page.visible && page.tags!=null && page.tags.length>0::>
::foreach tag page.tags::
<small class="tag"><i class="fa fa-tag"></i> <a href="tag/::tag::.html">::tag::</a></small>
::end::
</p>
<p><em>::page.description::</em></p>
</li>
::end::
</ul>
<hr/>
<div class="contribution">
<i class="fa fa-plus-circle"></i> <a href="::currentPage.addLinkUrl::" rel="external">Add new page</a>
</div>