details.md: クリーンアップ

gh-pages
Rui 2018-04-04 22:49:58 +09:00
parent da7ff83823
commit 85e32a6b6f
1 changed files with 10 additions and 16 deletions

View File

@ -1,34 +1,28 @@
{% comment %} {% comment %}
引数: 引数:
screenshot: スクリーンショット画像名 screenshot: スクリーンショット画像名
details: 情報のリスト details: 情報のリスト
キー: <dt>に表示される見出し キー: <dt>に表示される見出し
値: <dd>に表示される説明 値: <dd>に表示される説明
{% endcomment %} {% endcomment %}
{% assign IMAGE_DIR = site.github.url | append: "/images" %}
{% assign IMAGE_ALT = "スクリーンショット" %}
<p> <p>
{% comment %}
スクリーンショット
{% endcomment %}
{% if include.screenshot %} {% if include.screenshot %}
{% comment %} {% assign screenshot = IMAGE_DIR | append: include.screenshot %}
スクリーンショット画像のパス
{% endcomment %}
{% assign screenshot = (site.github.url | append: "/images" | append: include.screenshot) %}
<amp-img <amp-img
class = "screenshot" class = "screenshot"
layout = "responsive" layout = "responsive"
height = "1" height = "1"
width = "2" width = "2"
alt = "スクリーンショット" alt = "{{ IMAGE_ALT }}"
src = "{{ screenshot }}" src = "{{ screenshot }}"
tabindex> tabindex>
</amp-img> </amp-img>
{% endif %} {% endif %}
{% comment %}
詳細情報
{% endcomment %}
<dl> <dl>
{% for detail in include.details %} {% for detail in include.details %}
<dt>{{ detail[0] }}</dt> <dt>{{ detail[0] }}</dt>