-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathblog.html
53 lines (49 loc) · 1.39 KB
/
blog.html
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
{{ partial "header.html" . }}
<body>
{{ partial "navigation.html" . }}
<section id="content" class="container">
<div class="hero-unit">
<h1>{{ .Title }}</h1>
</div>
<hr />
<div class="row" id="blog">
<div class="span12">
{{ $section := .Section }}
{{ $lang := .Lang }}
{{ range $page := sort $.Site.AllPages "Weight" "asc" }}
{{ if and (eq .Lang $lang) (eq .Section $section) .IsPage }}
<article class="post">
<div class="entry-body">
<a href="{{ $page.Permalink }}">
<h2 class="entry-title">{{ $page.Title }}</h2>
</a>
<p>{{ $page.Summary }}</p>
</div>
<div class="entry-meta">
<span class="entry-type"></span>
<span class="entry-date">{{ dateFormat "Monday, Jan 2, 2006" $page.Date }}</span>
<span class="entry-date">{{ $page.Params.author }}</span>
<div class="entry-meta">
<ul class="categories">
{{ range $cat := $page.Params.categories}}
<li><a href="/categories/{{$cat}}/">{{$cat}}</a></li>
{{ end }}
</ul>
</div>
<div class="widget">
<ul class="tags">
{{ range $cat := $page.Params.tags}}
<li><a href="/tags/{{$cat}}/">{{$cat}}</a></li>
{{ end }}
</ul>
</div>
</div>
<div class="clr"></div>
</article><!-- end item -->
<hr />
{{ end }}
{{ end }}
</div><!-- end .span8 -->
</div><!-- end #blog -->
</section>
{{ partial "footer.html" . }}