content*.mdをincludeする際の変なデータ渡しを修正

gh-pages
Rui 2019-07-03 22:29:42 +09:00
parent 7d2243bdbd
commit ad320d0936
8 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
<!-- 渡されてきたデータ -->
{% assign data = include.list[include.key] %}
{% assign data = include.data %}
<!-- 空のリストを作成 -->
{% assign details = "" | split: "|" %}

View File

@ -1,5 +1,5 @@
<!-- 渡されてきたデータ -->
{% assign data = include.list[include.key] %}
{% assign data = include.data %}
<!-- 空のリストを作成 -->
{% assign details = "" | split: "|" %}

View File

@ -1,5 +1,5 @@
<!-- 渡されてきたデータ -->
{% assign data = include.list[include.key] %}
{% assign data = include.data %}
<!-- 空のリストを作成 -->
{% assign details = "" | split: "|" %}

View File

@ -1,5 +1,5 @@
<!-- 渡されてきたデータ -->
{% assign data = include.list[include.key] %}
{% assign data = include.data %}
<!-- 空のリストを作成 -->
{% assign details = "" | split: "|" %}

View File

@ -1,5 +1,5 @@
<!-- 渡されてきたデータ -->
{% assign data = include.list[include.key] %}
{% assign data = include.data %}
<!-- 空のリストを作成 -->
{% assign details = "" | split: "|" %}

View File

@ -21,6 +21,7 @@
<!-- ソートしたアンカー順でリスト展開 -->
<!-- NOTE: Markdownはインデントできないのでforの中身はインデントなし -->
{% for anchor in sorted-anchors %}
# {{ include.list[anchor].name }} {#{{ anchor }}}
{% include {{ template-name }} list=include.list key=anchor %}
{% assign content-data = include.list[anchor] %}
# {{ content-data.name }} {#{{ anchor }}}
{% include {{ template-name }} data=content-data %}
{% endfor %}

View File

@ -10,7 +10,7 @@ date:
# Pipeworksとは
{% include content-mod.md list=site.data.mods-industry key=pipeworks %}
{% include content-mod.md data=site.data.mods-industry.pipeworks %}
アイテムや水を輸送することを目的としたModです。また、輸送されたアイテムを使用する機械なども含まれています。
MeseconsやTechnic等を組み合わせることにより様々なことが可能となるModです。

View File

@ -10,8 +10,7 @@ date:
# Technicとは
{% assign data = site.data.mods-industry.technic %}
{% include content-mod.md %}
{% include content-mod.md data=site.data.mods-industry.technic %}
「Technic」はMinetestの工業化Modです。
『電力(EU)』という新しい仕組みを使って、いろいろな作業を自動化したり、新しい道具や機械を開発したりできます。