diff --git a/_data/fields.yml b/_data/fields.yml index 9d9860ca760..dda7f0227ac 100644 --- a/_data/fields.yml +++ b/_data/fields.yml @@ -8,3 +8,9 @@ contents: next: type: String + +nav: + type: String + +seo_title: + type: String diff --git a/_includes/contents.html b/_includes/contents.html index f7ffbee3202..cb27b23f266 100644 --- a/_includes/contents.html +++ b/_includes/contents.html @@ -9,7 +9,7 @@ {% assign subpage = site.pages | where: "path", path | first %} {{ subpage.title }} + href="{{ subpage.url | prepend: site.baseurl }}">{% if subpage.nav == nil %}{{ subpage.title }}{% else %}{{ subpage.nav }}{% endif %} {% if subpage.contents %} {% include contents.html item=subpage %} {% endif %} diff --git a/_includes/head.html b/_includes/head.html index 9e313e5a0f9..ea22787b116 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -4,6 +4,9 @@ + + {% if page.seo_title == nil %}{{ page.title }}{% else %}{{ page.seo_title }}{% endif %} +