Fork of the Hugo theme hyde-hyde that introduces some necessary cleanup and changes.
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.

53 lines
2.2 KiB

3 years ago
<span class="section__title">{{ .Title | default "Blog" }}</span>
<div class="blog__content">
{{ range first 1 (where .Data.Pages "Params.featured" "==" true) }}
<section class="blog__featured-post">
<div class="section-inner">
<div class="blog_content">
<div class="item featured text-center">
<span class="blog__title">
<a href="{{ .RelPermalink }}" target="_blank" rel="noopener noreferrer">{{ .Title }}</a>
</span>
<div class="blog__featured-image">
{{ if .Params.image }}
<img src="{{ .Params.image }}" alt="{{ .Title }}">
{{ end }}
</div>
<span class="blog__meta">
{{ partial "page-single/post-meta.html" . }}
</span>
<div class="blog__summary">
{{ .Summary }}
</div>
<span class="read_more">
1 year ago
<a href="{{ .RelPermalink }}" target="_blank" rel="noopener noreferrer">READ MORE</a>
</span>
3 years ago
</div>
</div>
</div>
</section>
{{ end }}
<section>
<div class="blog_content">
<hr class="divider">
{{ range (where .Data.Pages "Params.featured" "!=" true).ByDate.Reverse }}
<div class="col-md-8 col-sm-8 col-xs-12">
<span class="blog__title">
<a href="{{ .RelPermalink }}" target="_blank" rel="noopener noreferrer">{{ .Title }}</a>
</span>
<span class="blog__meta">
{{ partial "page-single/post-meta.html" . }}
</span>
<span class="blog__summary">
{{ .Summary }}
</span>
1 year ago
<span class="read_more">
<a href="{{ .RelPermalink }}" target="_blank" rel="noopener noreferrer">READ MORE</a>
</span>
</div>
3 years ago
<div class="row-space">&nbsp;</div>
{{ end }}
</div>
</section>
</div>