Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html « layouts - github.com/vividvilla/ezhil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bd08629f63515d13ea71d42e255b86020999954a (plain)
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
<!DOCTYPE html>
<html>
{{ partial "header.html" . }}
<body>
	<div class="container wrapper">
		 {{ partial "head.html" . }}

		<div class="recent-posts section">
			<h2 class="section-header">
				Recent posts
			</h2>
			<div class="posts">
				{{- range first .Site.Params.SidebarRecentLimit .Data.Pages -}}
				<div class="post">
					<div class="meta">{{ dateFormat "Jan 2, 2006" .Date }}</div>
					<a class="title" href="{{ .RelPermalink }}">{{.Title}}</a> &mdash;
					<span class="description">
						{{ if isset .Params "description" }}
							{{ .Description }}
						{{ else if gt (len .RawContent) 120 }}
							{{ slicestr .RawContent 0 120 }}...
						{{ else }}
							{{ .RawContent }}
						{{ end }}
					</span>
				</div>
				{{- end -}}

				<a href="/posts">All articles →</a>
			</div>
		</div>
	</div>
	{{ partial "footer.html" . }}
	{{ template "_internal/google_analytics_async.html" . }}
</body>
</html>