From 0a2d6bf28841f8ff453263be26b86af455349fd6 Mon Sep 17 00:00:00 2001 From: Oscar Date: Mon, 18 Nov 2019 21:36:10 +0100 Subject: [PATCH] docs: fix headline breaking the layout --- 11ty/_includes/layouts/page.njk | 5 +++++ 11ty/documentation/front-matter.md | 5 ++++- 11ty/documentation/index.md | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/11ty/_includes/layouts/page.njk b/11ty/_includes/layouts/page.njk index cf732798..44734a79 100644 --- a/11ty/_includes/layouts/page.njk +++ b/11ty/_includes/layouts/page.njk @@ -8,6 +8,11 @@

A modern dictionary about us.
We define our words, but they don't define us.

+ {%- if parent -%} +
+ {{ parent.title }} +
+ {% endif %}

{{ title }}

{{ content | safe }}
diff --git a/11ty/documentation/front-matter.md b/11ty/documentation/front-matter.md index cbae3318..efc199da 100644 --- a/11ty/documentation/front-matter.md +++ b/11ty/documentation/front-matter.md @@ -1,5 +1,8 @@ --- -title: Front Matter Documentation +title: Front Matter +parent: + title: Documentation + href: '/documentation' --- We use Front Matter for a range of things. Of course, we provide basic information through it. But also more advanced stuff (technical term) such as sub terms for items in the table of content or further reading links for the definition. diff --git a/11ty/documentation/index.md b/11ty/documentation/index.md index f5459339..74944d78 100644 --- a/11ty/documentation/index.md +++ b/11ty/documentation/index.md @@ -1,5 +1,5 @@ --- -title: Documentation +title: Docs --- As always, documentation is a work in progress. However, this is what we have so far: