wiki/_includes/details.md

33 lines
792 B
Markdown
Raw Normal View History

2017-12-02 02:04:52 -08:00
{% comment %}
2018-04-04 06:49:58 -07:00
引数:
screenshot: スクリーンショット画像名
details: 情報のリスト
キー: <dt>に表示される見出し
値: <dd>に表示される説明
2017-12-02 02:04:52 -08:00
{% endcomment %}
2018-04-04 06:49:58 -07:00
{% assign IMAGE_DIR = site.github.url | append: "/images" %}
{% assign IMAGE_ALT = "スクリーンショット" %}
2017-12-02 02:04:52 -08:00
<p>
{% if include.screenshot %}
2018-04-04 06:49:58 -07:00
{% assign screenshot = IMAGE_DIR | append: include.screenshot %}
2017-12-02 02:04:52 -08:00
<amp-img
class = "screenshot"
layout = "responsive"
height = "1"
width = "2"
2018-04-04 06:49:58 -07:00
alt = "{{ IMAGE_ALT }}"
2017-12-02 02:04:52 -08:00
src = "{{ screenshot }}"
tabindex>
</amp-img>
{% endif %}
<dl>
{% for detail in include.details %}
<dt>{{ detail[0] }}</dt>
<dd>{{ detail[1] }}</dd>
{% endfor %}
</dl>
</p>