Skip to content

Commit 5f31ab0

Browse files
committed
_content: add "Go Wiki:" to <title> tag on wiki pages
We already add it to the actual <h1>. Add to the title too. Change-Id: I9cbb3d0f35a2a49d63469075f9e5cb38167de88c Reviewed-on: https://go-review.googlesource.com/c/website/+/550136 Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 277b202 commit 5f31ab0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_content/site.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
<!-- End Google Tag Manager -->
3131
<script src="/js/site.js"></script>
3232
<meta name="og:url" content="https://go.dev{{.URL}}">
33-
<meta name="og:title" content="{{.title}}{{if ne .URL "/"}} - The Go Programming Language{{end}}">
34-
<title>{{.title}}{{if ne .URL "/"}} - The Go Programming Language{{end}}</title>
33+
<meta name="og:title" content="{{if strings.HasPrefix .URL "/wiki/"}}Go Wiki: {{end}}{{.title}}{{if ne .URL "/"}} - The Go Programming Language{{end}}">
34+
<title>{{if strings.HasPrefix .URL "/wiki/"}}Go Wiki: {{end}}{{.title}}{{if ne .URL "/"}} - The Go Programming Language{{end}}</title>
3535
{{if .summary}}
3636
<meta name="og:description" content="{{.summary}}">
3737
<meta name="description" content="{{.summary}}">

0 commit comments

Comments
 (0)