wiki/_includes/content-map.md

40 lines
1.2 KiB
Markdown
Raw Normal View History

2018-08-12 00:29:14 -07:00
<!-- 渡されてきたデータ -->
{% assign data = include.data %}
2017-12-02 02:04:52 -08:00
2018-08-12 00:29:14 -07:00
<!-- 空のリストを作成 -->
2017-12-02 02:04:52 -08:00
{% assign details = "" | split: "|" %}
2018-08-12 00:29:14 -07:00
<!-- 製作者 -->
{% if data.author %}
{% assign author = "" | split: "|" %}
{% assign author = author | push: "製作者" %}
{% assign author = author | push: data.author %}
{% assign details = details | push: author %}
{% endif %}
2018-06-08 22:16:38 -07:00
2018-08-12 00:29:14 -07:00
<!-- 説明 -->
{% if data.description %}
{% assign description = "" | split: "|" %}
{% assign description = description | push: "説明" %}
{% assign description = description | push: data.description %}
{% assign details = details | push: description %}
{% endif %}
2018-06-08 22:16:38 -07:00
2018-08-12 00:29:14 -07:00
<!-- リンク -->
{% if data.links %}
{% capture link_list %}
2018-04-20 22:12:08 -07:00
{% for link_data in data.links %}
{% if forloop.first != true %}/{% endif %}
<a href="{{ link_data.url }}">{{ link_data.text }}</a>
{% endfor %}
{% endcapture %}
2017-12-02 02:04:52 -08:00
{% assign links = "" | split: "|" %}
{% assign links = links | push: "リンク" %}
{% assign links = links | push: link_list %}
{% assign details = details | push: links %}
{% endif %}
2017-12-02 02:04:52 -08:00
2018-08-12 00:29:14 -07:00
<!-- テンプレートをインクルード -->
{% include content.md screenshot=data.screenshot details=details %}