You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ozgurkon-site/themes/devfest-theme-hugo/layouts/blog/list.html

28 lines
612 B

6 years ago
{{ define "main" }}
<div class="hero">
<h1>{{ $.Page.Params.Title }}</h1>
<div class="description">
{{ .Content }}
</div>
</div>
<section class="blogs">
{{ range .Pages }}
<article>
<a class="blog" href="{{ .URL }}">
<div class="img" style="background-image: url({{ path.Join .URL .Params.image }});"></div>
<div class="info">
<h2>{{ .Title }}</h2>
<span>{{ .Params.brief }}</span>
<div class="date">{{ dateFormat "2 Jan 2016" .Date }}</div>
<div class="reading">{{ .ReadingTime }}</div>
</div>
<p>{{ .Summary }} ...</p>
</a>
</article>
{{ end }}
</section>
{{ end }}