-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/content/telemetrygodev: add missing privacy.html
CL 599275 inadvertently broke the telemetry privacy policy rendering, as it removed the base.html used by privacy policy markdown rendering (see also Chesterton's Fence...). Fix this by adding back a root template for markdown rendering, which can no longer share a common base with other layouts that have since been modified to manage their own content layout. Also: - temporarily move necessary template funcs into the content package - add a test that would have caught this breakage Fixes golang/go#68859 Change-Id: I4afa76387b97fe5219bebb6c1147266775c16bea Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/604798 TryBot-Bypass: Robert Findley <[email protected]> Reviewed-by: Hongxiang Jiang <[email protected]> Auto-Submit: Robert Findley <[email protected]> Commit-Queue: Robert Findley <[email protected]>
- Loading branch information
Showing
6 changed files
with
51 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!-- | ||
Copyright 2023 The Go Authors. All rights reserved. | ||
Use of this source code is governed by a BSD-style | ||
license that can be found in the LICENSE file. | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>{{block "title" .}}{{.Title}}{{end}}</title> | ||
<link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | ||
<link rel="stylesheet" href="/static/base.min.css"> | ||
</head> | ||
<body> | ||
<div class="Container"> | ||
<div class="Content"> | ||
{{block "content" .}}{{.Content}}{{end}} | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
Title: Go Telemetry Privacy Policy | ||
Layout: base.html | ||
Layout: privacy.html | ||
--- | ||
|
||
# Privacy Policy | ||
|