Unquoting true value for Params.featured
I had to unquote the true value in the where expression on Params.featured to make it work. My Hugo version is: Hugo Static Site Generator v0.54.0/extended darwin/amd64 BuildDate: unknown
This commit is contained in:
parent
cbc21e8492
commit
b1ed0f1c0f
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
<span class="section__title">{{ .Title | default "Projects" }}</span>
|
<span class="section__title">{{ .Title | default "Projects" }}</span>
|
||||||
<div class="portfolio__content">
|
<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">
|
<section class="portfolio__featured-project">
|
||||||
<div class="section-inner">
|
<div class="section-inner">
|
||||||
<div class="portfolio_content">
|
<div class="portfolio_content">
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
<section>
|
<section>
|
||||||
<div class="portfolio_content">
|
<div class="portfolio_content">
|
||||||
<hr class="divider">
|
<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="row">
|
||||||
<div class="col-md-4 col-sm-4 col-xs-12" href="{{ .Params.link }}"
|
<div class="col-md-4 col-sm-4 col-xs-12" href="{{ .Params.link }}"
|
||||||
target="_blank" rel="noopener noreferrer">
|
target="_blank" rel="noopener noreferrer">
|
||||||
|
|
Loading…
Reference in a new issue