aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2023-12-15 09:26:02 -0500
committerRuss Cox <rsc@golang.org>2023-12-15 20:45:51 +0000
commit5f31ab0a4d90318ae0bd84d9b0d5ecbc7480255a (patch)
tree704a86fb388a79a8b3e791a3b2674c8ed8178389
parent277b202ae2a6edfa32080b5a38ec48bea6fbdf25 (diff)
downloadgo-x-website-5f31ab0a4d90318ae0bd84d9b0d5ecbc7480255a.tar.xz
_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 <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
-rw-r--r--_content/site.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/_content/site.tmpl b/_content/site.tmpl
index 2057dc0c..43f01495 100644
--- a/_content/site.tmpl
+++ b/_content/site.tmpl
@@ -30,8 +30,8 @@
<!-- End Google Tag Manager -->
<script src="/js/site.js"></script>
<meta name="og:url" content="https://go.dev{{.URL}}">
-<meta name="og:title" content="{{.title}}{{if ne .URL "/"}} - The Go Programming Language{{end}}">
-<title>{{.title}}{{if ne .URL "/"}} - The Go Programming Language{{end}}</title>
+<meta name="og:title" content="{{if strings.HasPrefix .URL "/wiki/"}}Go Wiki: {{end}}{{.title}}{{if ne .URL "/"}} - The Go Programming Language{{end}}">
+<title>{{if strings.HasPrefix .URL "/wiki/"}}Go Wiki: {{end}}{{.title}}{{if ne .URL "/"}} - The Go Programming Language{{end}}</title>
{{if .summary}}
<meta name="og:description" content="{{.summary}}">
<meta name="description" content="{{.summary}}">