mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 13:06:16 -04:00
docs: Customize OG meta tags so title is individualized
This commit is contained in:
parent
aea9c986d1
commit
dd3a8ba9cf
2 changed files with 4 additions and 3 deletions
|
@ -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}}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{default $markdownFilename $markdownFile.Meta.title}} — Caddy Documentation</title>
|
||||
<title>{{$title}} — Caddy Documentation</title>
|
||||
{{include "/includes/docs-head.html"}}
|
||||
<meta property="og:title" content="{{$title}} - Caddy Documentation">
|
||||
<meta name="twitter:title" value="{{$title}} - Caddy Documentation">
|
||||
<link rel="stylesheet" href="/resources/css/chroma.css">
|
||||
</head>
|
||||
<body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue