wiki/_includes/content-tool.md

48 lines
1.5 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
<!-- プラットフォーム -->
2018-06-08 22:16:38 -07:00
{% if data.platform %}
{% assign platform = "" | split: "|" %}
{% assign platform = platform | push: "プラットフォーム" %}
{% assign platform = platform | push: data.platform %}
{% assign details = details | push: platform %}
{% endif %}
2017-12-02 02:04:52 -08:00
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 %}
2017-12-02 02:04:52 -08: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 %}
2017-12-02 02:04:52 -08:00
2018-08-12 00:29:14 -07:00
<!-- リンク -->
2018-06-08 22:16:38 -07:00
{% if data.links %}
{% capture link_list %}
{% for link_data in data.links %}
{% if forloop.first != true %}/{% endif %}
<a href="{{ link_data.url }}">{{ link_data.text }}</a>
{% endfor %}
{% endcapture %}
{% assign links = "" | split: "|" %}
{% assign links = links | push: "リンク" %}
{% assign links = links | push: link_list %}
{% assign details = details | push: links %}
2017-12-02 02:04:52 -08:00
{% endif %}
2018-08-12 00:29:14 -07:00
<!-- テンプレートをインクルード -->
{% include content.md screenshot=data.screenshot details=details %}