Skip to content

Commit

Permalink
Move twitter.com references to x.com
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerjmorg authored May 22, 2024
1 parent fc417a5 commit 90882d1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 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://twitter.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.

3 changes: 3 additions & 0 deletions whatwg.org/img/x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 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/bird-webpage.svg);
#x::before {
background: url(/img/x.svg);
}

#checker::before {
Expand Down Expand Up @@ -173,8 +173,8 @@ <h1>Welcome to the WHATWG community</h1>
<strong>Chat</strong>
<p>Talk to other members of the WHATWG community</p>
</a>
<a href="https://twitter.com/WHATWG" id="twitter">
<strong>Twitter</strong>
<a href="https://x.com/WHATWG" id="x">
<strong>X (Twitter)</strong>
<p>Keep track of spec changes and other announcements</p>
</a>
<a href="https://whatwg.org/validator/" id="checker">
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 90882d1

Please sign in to comment.