forked from oyd/ozgurkon-theme-hugo
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.
32 lines
783 B
32 lines
783 B
5 years ago
|
{{ define "main" }}
|
||
|
|
||
|
{{ $lang := $.Page.Language.Lang }}
|
||
|
|
||
|
<div class="hero">
|
||
|
<h1>{{ $.Page.Params.Title }}</h1>
|
||
|
<div class="description">
|
||
|
{{ .Content }}
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<section class="blogs">
|
||
|
{{ range .Pages }}
|
||
|
<article>
|
||
|
<a class="visually-hidden" aria-hidden="true" href="{{ .Permalink }}">{{ .Title }}</a>
|
||
|
<a class="blog" href="{{ .Permalink }}">
|
||
|
<div class="img" style="background-image: url({{ .Params.image }});"></div>
|
||
|
<div class="info">
|
||
|
<div class="date">{{ partial "date-short.html" (dict "time" .Date "lang" $lang) }}</div>
|
||
|
<h2>{{ .Title }}</h2>
|
||
|
<span class="brief">{{ .Params.brief }}</span>
|
||
|
<!-- <div class="reading">{{ .ReadingTime }}</div> -->
|
||
|
<p>{{ .Summary }} ...</p>
|
||
|
</div>
|
||
|
</a>
|
||
|
</article>
|
||
|
{{ end }}
|
||
|
</section>
|
||
|
|
||
|
|
||
|
{{ end }}
|