Initial commit
This commit is contained in:
@@ -1,17 +1,30 @@
|
||||
<!-- Featured Post -->
|
||||
{{ $data := .siteData }}
|
||||
{{ range .firstpost }}
|
||||
{{ if .Params.pinned }}
|
||||
<section class="posts">
|
||||
<article>
|
||||
<header>
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
</header>
|
||||
{{ if .Params.image }}
|
||||
<a href="{{ .Permalink }}" class="image main"><img src="{{ .Params.image | relURL }}" alt="" /></a>
|
||||
{{ end }}
|
||||
</article>
|
||||
</section>
|
||||
{{ else if not .Params.pinned }}
|
||||
<article class="post featured">
|
||||
<header class="major">
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
{{ if .Description }}
|
||||
<p>{{ .Description }}</p>
|
||||
<p class="featured-description">{{ .Description }}</p>
|
||||
{{ else }}
|
||||
<p>{{ .Summary }}</p>
|
||||
<p class="featured-description">{{ .Summary }}</p>
|
||||
{{ end }}
|
||||
</header>
|
||||
{{ if .Params.image }}
|
||||
<a href="{{ .Permalink }}" class="image main"><img src="{{ .Params.image | relURL }}" alt="" /></a>
|
||||
<a href="{{ .Permalink }}" class="image main featured-image"><img src="{{ .Params.image | relURL }}" alt="" /></a>
|
||||
{{ end }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user