From dd3a8ba9cf06b4757e9a6a65ec4034cd6b145781 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 28 Feb 2020 15:15:13 -0700 Subject: [PATCH] docs: Customize OG meta tags so title is individualized --- src/docs/index.html | 5 ++++- src/includes/head.html | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/docs/index.html b/src/docs/index.html index e0ab280..87703f9 100644 --- a/src/docs/index.html +++ b/src/docs/index.html @@ -2,11 +2,14 @@ {{$markdownFilename := default "index" (slice $pathParts 2 | join "/")}} {{$markdownFilePath := printf "/docs/markdown/%s.md" $markdownFilename}} {{$markdownFile := (include $markdownFilePath | splitFrontMatter)}} +{{$title := default $markdownFilename $markdownFile.Meta.title}} - {{default $markdownFilename $markdownFile.Meta.title}} — Caddy Documentation + {{$title}} — Caddy Documentation {{include "/includes/docs-head.html"}} + + diff --git a/src/includes/head.html b/src/includes/head.html index d8d234e..a32c5d9 100644 --- a/src/includes/head.html +++ b/src/includes/head.html @@ -12,14 +12,12 @@ - -