Merge pull request #70 from JCapul/patch-1

Unquoting true value for Params.featured
This commit is contained in:
Huy Tran 2019-04-30 07:03:43 +07:00 committed by GitHub
commit 3551425f3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
<span class="section__title">{{ .Title | default "Projects" }}</span>
<div class="portfolio__content">
{{ range first 1 (where .Data.Pages "Params.featured" "==" "true") }}
{{ range first 1 (where .Data.Pages "Params.featured" "==" true) }}
<section class="portfolio__featured-project">
<div class="section-inner">
<div class="portfolio_content">
@ -27,7 +27,7 @@
<section>
<div class="portfolio_content">
<hr class="divider">
{{ range (where .Data.Pages "Params.featured" "!=" "true").ByDate.Reverse }}
{{ range (where .Data.Pages "Params.featured" "!=" true).ByDate.Reverse }}
<div class="row">
<div class="col-md-4 col-sm-4 col-xs-12" href="{{ .Params.link }}"
target="_blank" rel="noopener noreferrer">