Skip to content

Commit 417c00b

Browse files
authored
Make the Policies page fit in
Fixes #458.
1 parent f87da86 commit 417c00b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

convert_policy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def postprocess_html(policy_html, template, title):
6565
result = adjust_headers(policy_html)
6666
result = template.replace("@CONTENT_GOES_HERE@", result)
6767
result = result.replace("@TITLE_GOES_HERE@", title)
68+
result = result.replace("@POLICIES_LINK_GOES_HERE@", "<a" + ("" if title == "Policies" else " href=\"https://whatwg.org/policies\"") + ">Policies</a>")
6869
result = result.replace("<p>EXAMPLE: ", "<p class=\"example\">")
6970
result = result.replace("<p>NOTE: ", "<p class=\"note\">")
7071
result = result.replace("<hr>\n<footer>", "<footer>")

site-template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h1>
2323
<nav class="buttonish-links">
2424
<a href="https://spec.whatwg.org/">Standards</a>
2525
<a href="https://whatwg.org/faq">FAQ</a>
26-
<a href="https://whatwg.org/policies">Policies</a>
26+
@POLICIES_LINK_GOES_HERE@
2727
<a href="https://participate.whatwg.org/">Participate</a>
2828
</nav>
2929

whatwg.org/service-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
self.cacheKey = "v6";
3+
self.cacheKey = "v7";
44
self.toCache = [
55
"/img/arrow.svg",
66
"/img/checker.svg",

0 commit comments

Comments
 (0)