From 85e32a6b6f2df1c70a26150c36b1b60b952ab9cf Mon Sep 17 00:00:00 2001 From: Rui Date: Wed, 4 Apr 2018 22:49:58 +0900 Subject: [PATCH] =?UTF-8?q?details.md:=20=E3=82=AF=E3=83=AA=E3=83=BC?= =?UTF-8?q?=E3=83=B3=E3=82=A2=E3=83=83=E3=83=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _includes/details.md | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/_includes/details.md b/_includes/details.md index 506f4b8..407688a 100644 --- a/_includes/details.md +++ b/_includes/details.md @@ -1,34 +1,28 @@ {% comment %} -引数: - screenshot: スクリーンショット画像名 - details: 情報のリスト - キー:
に表示される見出し - 値:
に表示される説明 + 引数: + screenshot: スクリーンショット画像名 + details: 情報のリスト + キー:
に表示される見出し + 値:
に表示される説明 {% endcomment %} +{% assign IMAGE_DIR = site.github.url | append: "/images" %} +{% assign IMAGE_ALT = "スクリーンショット" %} +

- {% comment %} - スクリーンショット - {% endcomment %} {% if include.screenshot %} - {% comment %} - スクリーンショット画像のパス - {% endcomment %} - {% assign screenshot = (site.github.url | append: "/images" | append: include.screenshot) %} + {% assign screenshot = IMAGE_DIR | append: include.screenshot %} {% endif %} - {% comment %} - 詳細情報 - {% endcomment %}

{% for detail in include.details %}
{{ detail[0] }}