diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 5279e22..84ddca9 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -1,15 +1,35 @@ --- layout: layouts/parent.njk --- -
-
- {{ content | safe }} -
-
+
+ {%- if parent -%} +
+ {%- for post in collections.all -%} + {%- if post.data.title == parent -%}{{ post.data.title }}{%- endif -%} + {%- endfor -%} +
+ {%- endif -%} +
+
+ {{ content | safe }} +
+
+
diff --git a/_includes/layouts/home.njk b/_includes/layouts/home.njk index b30f7c2..84ddca9 100644 --- a/_includes/layouts/home.njk +++ b/_includes/layouts/home.njk @@ -1,8 +1,35 @@ --- layout: layouts/parent.njk --- -
-
- {{ content | safe }} +
+ {%- if parent -%} +
+ {%- for post in collections.all -%} + {%- if post.data.title == parent -%}{{ post.data.title }}{%- endif -%} + {%- endfor -%} +
+ {%- endif -%} +
+
+ {{ content | safe }} +
+
+
+ +
+ + {%- for tag in models -%} +
+

{{ tag }}

+ +
+ {%- endfor -%} + diff --git a/_includes/layouts/model.njk b/_includes/layouts/model.njk index 4213a1f..9ee583a 100644 --- a/_includes/layouts/model.njk +++ b/_includes/layouts/model.njk @@ -1,26 +1,18 @@ --- layout: layouts/parent.njk --- -
- - -
+
+
{{ content | safe }} -
-
+ +