Skip to content

Commit

Permalink
modify: 「ワークス」詳細テンプレート:「サービスアイコン」の出力
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamseeker committed Dec 23, 2018
1 parent 05892b1 commit 77ac5da
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions templates/work/_entry.html
Expand Up @@ -34,18 +34,18 @@
<footer> <footer>
<hr class="horz-rule"> <hr class="horz-rule">
<p class="services center"> <p class="services center">
<a href="../services/detail.html"> {% for serviceEntry in entry.servicesPerformed.all() %}
<img src="/assets/images/service-icons/seo.svg" alt="seo"> {# 「サービスアイコン」フィールドを取得 #}
<span class="services-title">SEO</span> {% set image = serviceEntry.serviceIcon.one() %}
</a>
<a href="../services/detail.html"> <a href="{{ serviceEntry.url }}">
<img src="/assets/images/service-icons/email-marketing.svg" alt="email-marketing"> {# 「サービスアイコン」がセットされている場合のみ出力 #}
<span class="services-title">Email Marketing</span> {% if image %}
</a> <img src="{{ image.url }}" alt="{{ image.title }}">
<a href="../services/detail.html"> {% endif %}
<img src="/assets/images/service-icons/strategy.svg" alt="strategy"> <span class="services-title">{{ serviceEntry.title }}</span>
<span class="services-title">Strategy</span> </a>
</a> {% endfor %}
</p> </p>
<hr class="horz-rule"> <hr class="horz-rule">
</footer> </footer>
Expand Down

0 comments on commit 77ac5da

Please sign in to comment.