Skip to content

Commit

Permalink
modify: 「固定表示フラグ」が ON の最新エントリを最初のページだけに出力するよう調整
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamseeker committed Dec 15, 2018
1 parent 43f5c0b commit 7df6a9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/news/index.html
Expand Up @@ -45,8 +45,8 @@ <h1 class="alpha center reverse">Brew News</h1>
</header><!-- /.alt2 -->
<div class="flex">

{# 「固定表示フラグ」が ON の最新エントリ #}
{% if featuredEntry %}
{# 「固定表示フラグ」が ON の最新エントリが存在する、かつ、最初のページのみ #}
{% if featuredEntry and pageInfo.currentPage == 1 %}
{# 「メイン画像」を取得 #}
{% set image = featuredEntry.featuredImage.one() %}

Expand Down

0 comments on commit 7df6a9c

Please sign in to comment.