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 1f57ca7 commit a618bbb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Expand Up @@ -19,4 +19,9 @@

{# main ブロック #}
{% block main %}
<ul>
{% for entry in craft.entries.section('services').all() %}
<li><a href="{{ entry.url }}">{{ entry.title }}</a></li>
{% endfor %}
</ul>
{% endblock %}
5 changes: 5 additions & 0 deletions templates/work/index.html → templates/work/_index.html
Expand Up @@ -19,4 +19,9 @@

{# main ブロック #}
{% block main %}
<ul>
{% for entry in craft.entries.section('work').all() %}
<li><a href="{{ entry.url }}">{{ entry.title }}</a></li>
{% endfor %}
</ul>
{% endblock %}

0 comments on commit a618bbb

Please sign in to comment.