forked from nanjizal/code-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.mtt
71 lines (64 loc) · 2.85 KB
/
index.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<header class="hero-unit">
<div class="container">
<h1>Haxe Code Cookbook</h1>
<h3 class="lead">
Easy to read <a href="http://haxe.org/">Haxe</a> coding examples.
</h3>
</div>
</header>
<hr/>
<section class="container">
<h3><i class="fa fa-book"></i> Start browsing..</h3>
<div itemscope="itemscope" itemtype="http://schema.org/BreadcrumbList">
::foreach category sitemap::
<span itemprop="itemListElement" itemscope="itemscope" itemtype="http://schema.org/ListItem" ::cond !category.isSerie::><a href="::category.outputPath::" class="btn btn-large" itemprop="item"><strong itemprop="name">::category.title::</strong> <small class="category-count">(::category.getPageCount()::)</small></a></span>
::end::
</div>
<hr/>
<h3><i class="fa fa-tags"></i> Tags</h3>
<div>
::foreach tag tags.keys()::
<span class="tag"><i class="fa fa-tag"></i> <a href="tag/::tag::.html">::tag::</a> <small class="category-count">(::tags.get(tag).length::)</small></span>
::end::
</div>
<hr/>
<h3><i class="fa fa-book"></i> Newest articles</h3>
<div class="row">
::foreach page latestCreatedPages(3)::
<div class="span4">
<h4><small class="category-count" ::cond page.dates.created !=null::>::DateTools.format(page.dates.created, "%d-%m-%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">::page.title::</a>
</h4>
<p ::cond page.isSerieHome()::><small class="category-count">This article consist of ::page.category.pages.length-1:: pages</small></p>
<p>::page.description::..</p>
<a href="::page.outputPath::" class="btn btn-small btn-default" title="Read ::page.title::">Read »</a>
</div>
::end::
</div>
<hr/>
<div class="row">
<div class="span4">
<h3><i class="fa fa-big fa-rocket"></i> Learning by example</h3>
<p>The Haxe Foundation facilitates the following code cookbook for the Haxe commmunity.
Enjoy learning Haxe; It is great!</p>
</div>
<div class="span4">
<h3><i class="fa fa-big fa-gears"></i> More documentation</h3>
<p>
<p><i class="fa fa-external-link"></i> <a href="http://haxe.org/manual" rel="external">Haxe Manual</a></p>
<p><i class="fa fa-external-link"></i> <a href="http://api.haxe.org" rel="external">Haxe API documentation</a></p>
<p>You can try Haxe in the browser! <a href="http://try.haxe.org" rel="external">try.haxe.org</a></p>
</p>
</div>
<div class="span4">
<h3><i class="fa fa-big fa-globe"></i> Contribution is easy</h3>
<p>The project is being developed on GitHub. Feel free to contribute code snippets.</p>
<p><i class="fa fa-github"></i> <a href="https://github.com/HaxeFoundation/code-cookbook" rel="external">Haxe Code Cookbook on Github</a></p>
</div>
</div>
</section>