details.md: クリーンアップ
parent
da7ff83823
commit
85e32a6b6f
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue