Skip to content

Commit

Permalink
Final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed May 22, 2024
1 parent 9e56a6d commit 326c0cb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
8 changes: 4 additions & 4 deletions convert_sg_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ def create_idea_whatwg_org(db, template):
return wrap_in_site_template(template, "Ideas", content)

def standard_or_idea_to_html(document):
twitter_output = ""
# Optional as ideas currently do not have Twitter accounts
x_output = ""
# Optional as ideas currently do not have X accounts
if "twitter" in document:
twitter_output = " (<a href=\"https://x.com/{0}\">@{1}</a>)".format(document["twitter"], document["twitter"])
output = "\n <dt><a href=\"{0}\">{1}</a>{2}</dt>".format(document["href"], document["name"], twitter_output)
x_output = " (<a href=\"https://x.com/{0}\">@{1}</a>)".format(document["twitter"], document["twitter"])
output = "\n <dt><a href=\"{0}\">{1}</a>{2}</dt>".format(document["href"], document["name"], x_output)
return output + "\n <dd>{}</dd>\n".format(markdown(document["description"])[:-1]) # Strip trailing \n


Expand Down
4 changes: 0 additions & 4 deletions whatwg.org/img/bird-webpage.svg

This file was deleted.

File renamed without changes
6 changes: 3 additions & 3 deletions whatwg.org/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@
background: url(/img/chat.svg);
}

#twitter::before {
background: url(/img/x-webpage.svg);
#x::before {
background: url(/img/x.svg);
}

#checker::before {
Expand Down Expand Up @@ -173,7 +173,7 @@ <h1>Welcome to the WHATWG community</h1>
<strong>Chat</strong>
<p>Talk to other members of the WHATWG community</p>
</a>
<a href="https://x.com/WHATWG" id="twitter">
<a href="https://x.com/WHATWG" id="x">
<strong>X (Twitter)</strong>
<p>Keep track of spec changes and other announcements</p>
</a>
Expand Down
4 changes: 2 additions & 2 deletions whatwg.org/service-worker.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"use strict";

self.cacheKey = "v5";
self.cacheKey = "v6";
self.toCache = [
"/img/arrow.svg",
"/img/bird-webpage.svg",
"/img/checker.svg",
"/img/chat.svg",
"/img/participate.svg",
"/img/x.svg",
"/validator/",
"/faq",
"/chat",
Expand Down

0 comments on commit 326c0cb

Please sign in to comment.