Squarespace 显示非精选帖子
Squarespace display not featured posts
我想在我的 css 网格中显示我的非特色 post。我在我的 squarespace 查询中尝试了参数 featured = false
但它没有用。
我发现这个 post 有类似的问题:http://answers.squarespace.com/questions/18544/i-have-a-query-and-my-list-on-the-same-page-i-need-the-items-to-not-be-in-both-places
而且我尝试了不同的解决方案....
<squarespace:query collection="blog" limit="4" featured="false">
{.repeated section items}
{.if starred}
<!-- skip featured items -->
{.or}
<div class="col-1-3">
<div class="module-container">
{.main-image?}
<a href="{fullUrl}">
<img {@|image-meta} />
</a>
{.end}
<div class="caption-container">
<small>{categories}</small>
<a href="{fullUrl}><h2 class="caption">{title}</h2</a>
</div>
</div>
</div>
{.end}
{.end}
</squarespace:query>
但是...即使我输入了 {.if starred}
语句 .. 之后我的查询也被限制为 post 的总数,因此它不会显示限制金额, 但 less cos 正在计算我不想显示的特色 posts。
有几个选项。
选项 1(使用 JS):
使用 AJAX 获取内容并将其过滤为 4 篇博文,这些博文不是精选内容。
选项 2(使用 JS 或 CSS):
创建更大的查询并使用 CSS(隐藏)或 JS(删除)第 4 个
之后的博客帖子
选项 3(带摘要块):
另一种选择是使用摘要块并为您的非精选帖子添加特定类别,并使用该类别过滤它们。
我想在我的 css 网格中显示我的非特色 post。我在我的 squarespace 查询中尝试了参数 featured = false
但它没有用。
我发现这个 post 有类似的问题:http://answers.squarespace.com/questions/18544/i-have-a-query-and-my-list-on-the-same-page-i-need-the-items-to-not-be-in-both-places
而且我尝试了不同的解决方案....
<squarespace:query collection="blog" limit="4" featured="false">
{.repeated section items}
{.if starred}
<!-- skip featured items -->
{.or}
<div class="col-1-3">
<div class="module-container">
{.main-image?}
<a href="{fullUrl}">
<img {@|image-meta} />
</a>
{.end}
<div class="caption-container">
<small>{categories}</small>
<a href="{fullUrl}><h2 class="caption">{title}</h2</a>
</div>
</div>
</div>
{.end}
{.end}
</squarespace:query>
但是...即使我输入了 {.if starred}
语句 .. 之后我的查询也被限制为 post 的总数,因此它不会显示限制金额, 但 less cos 正在计算我不想显示的特色 posts。
有几个选项。
选项 1(使用 JS): 使用 AJAX 获取内容并将其过滤为 4 篇博文,这些博文不是精选内容。
选项 2(使用 JS 或 CSS): 创建更大的查询并使用 CSS(隐藏)或 JS(删除)第 4 个
之后的博客帖子选项 3(带摘要块): 另一种选择是使用摘要块并为您的非精选帖子添加特定类别,并使用该类别过滤它们。