Skip to content

Commit

Permalink
update references to twitter to X
Browse files Browse the repository at this point in the history
  • Loading branch information
russbiggs committed May 20, 2024
1 parent fb51d78 commit 30a490b
Show file tree
Hide file tree
Showing 17 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion content/about/people/amrit_sharma.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title = 'Amrit Sharma'
group = 'board'
position = 'Secretary'
email = '[email protected]'
twitter = 'https://www.twitter.com/amrit_sharma'
x = 'https://x.com/amrit_sharma'
linkedin = 'https://www.linkedin.com/in/amritsharma'
image = '/uploads/amrit_sharma.png'
+++
Expand Down
2 changes: 1 addition & 1 deletion content/about/people/antonio-hermano-banze.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type = "about/people"
title = "António Hermano Banze"
group = "ambassadors"
position = "Ambassador"
twitter = "https://twitter.com/Antonio_H_Banze"
x = "https://x.com/Antonio_H_Banze"
image = "/uploads/antonio.png"
country = "Maputo, Mozambique"
+++
Expand Down
2 changes: 1 addition & 1 deletion content/about/people/colleen_rosales.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title = 'Colleen Marciel F. Rosales'
position = 'Strategic Partnerships Director'
group = 'team'
image = '/uploads/colleen_rosales.png'
twitter = 'https://twitter.com/colleenesterase'
x = 'https://x.com/colleenesterase'
linkedin = 'https://www.linkedin.com/in/colleen-marciel-rosales/'
researchgate = 'https://www.researchgate.net/profile/Colleen_Marciel_Rosales'
orcid = 'https://orcid.org/0000-0002-8925-8352'
Expand Down
2 changes: 1 addition & 1 deletion content/about/people/kostadin-kostadinov.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ honorific = "Dr."
title = "Kostadin Kostadinov"
group = "ambassadors"
position = "Ambassador"
twitter = "https://twitter.com/kostadinoffMD"
x = "https://x.com/kostadinoffMD"
linkedin = "https://www.linkedin.com/in/kostadinovmd/"
github = "https://github.com/kostadinoff "
orcid = "https://orcid.org/0000-0003-1414-8738"
Expand Down
2 changes: 1 addition & 1 deletion content/about/people/matt_whitney.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title = 'Matt Whitney'
group = 'board'
image = '/uploads/matt_whitney.png'
linkedin = 'https://www.linkedin.com/in/matt-whitney-a6395265/'
twitter = 'https://twitter.com/mattwhitney10'
x = 'https://x.com/mattwhitney10'
email = '[email protected]'

+++
Expand Down
2 changes: 1 addition & 1 deletion content/about/people/pallavi_pant.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ group = 'board'
image = '/uploads/pallavi_pant.png'
country = 'United States'
linkedin = 'https://www.linkedin.com/in/pallavipant/'
twitter = 'https://twitter.com/pallavipnt'
x = 'https://x.com/pallavipnt'
+++

Pallavi is Head of Global Health at the Health Effects Institute where she supports research, capacity strengthening and science communication in regions with high air pollution. She serves on the editorial boards of several journals and advises Chintan and Sensing Local in India.
2 changes: 1 addition & 1 deletion content/about/people/russ_biggs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title = "Russ Biggs"
group = "team"
position = "Director of Technology"
email = "[email protected]"
twitter = "https://twitter.com/russ_biggs"
x = "https://x.com/russ_biggs"
linkedin = "https://www.linkedin.com/in/russell-biggs-02238019"
github = "https://github.com/russbiggs"
image = "/uploads/russ_biggs.png"
Expand Down
2 changes: 1 addition & 1 deletion content/about/people/tatiana-melissa-kwenkeu-tondji.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type = "about/people"
title = "Tatiana Melissa Kwenkeu Tondji"
group = "ambassadors"
position = "Ambassador"
twitter = "https://twitter.com/MelissaKwenkeu"
x = "https://x.com/MelissaKwenkeu"
linkedin = "https://www.linkedin.com/in/melissa-kwenkeu-332609125"
image = "/uploads/melissa.png"
country = "Douala, Cameroon"
Expand Down
2 changes: 1 addition & 1 deletion static/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ collections:
- { label: 'Position', name: 'position', widget: 'string', required: true }
- { label: 'Biography', name: 'body', widget: 'markdown', required: true }
- { label: 'Email', name: 'email', widget: 'string', required: false }
- { label: 'Twitter', name: 'twitter', widget: 'string', required: false }
- { label: 'X', name: 'x', widget: 'string', required: false }
- { label: 'Linkedin', name: 'linkedin', widget: 'string', required: false }
- { label: 'Mastadon', name: 'mastadon', widget: 'string', required: false }
- { label: 'Github', name: 'github', widget: 'string', required: false }
Expand Down
12 changes: 6 additions & 6 deletions tests/tests/navigation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,17 +376,17 @@ test.describe('footer navigation', () => {
await expect(newPage.url()).toBe('https://www.youtube.com/@openaq4768');
});

test('twitter icon navigates', async ({ page }) => {
test('x icon navigates', async ({ page }) => {
const [newPage] = await Promise.all([
page.waitForEvent('popup'),
await page
.locator(
'.twitter-nav'
'.x-nav'
)
.click()
]);
await newPage.waitForLoadState();
await expect(newPage.url()).toBe('https://twitter.com/openaq');
await expect(newPage.url()).toBe('https://x.com/openaq');
});

test('medium icon navigates', async ({ page }) => {
Expand Down Expand Up @@ -455,17 +455,17 @@ test.describe('social banner navigation', () => {
await expect(newPage.url()).toBe('https://github.com/openaq');
});

test('twitter follow button navigates', async ({ page }) => {
test('x follow button navigates', async ({ page }) => {
const [newPage] = await Promise.all([
page.waitForEvent('popup'),
await page
.locator(
'.social-banner-twitter'
'.social-banner-x'
)
.click()
]);
await newPage.waitForLoadState();
await expect(newPage.url()).toBe('https://twitter.com/openaq');
await expect(newPage.url()).toBe('https://x.com/openaq');
});

test('slack join button navigates', async ({ page }) => {
Expand Down
4 changes: 2 additions & 2 deletions themes/openaq/assets/js/plausible-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
const headerDocsLink = document.querySelector('.js-header-docs-link');
headerDocsLink.addEventListener('click', () => plausible('onClickHeaderDocsLink'));
// footer section
const footerTwitterLink = document.querySelector('.js-footer-twitter-link');
footerTwitterLink.addEventListener('click', () => plausible('onClickFooterTwitterLink'));
const footerXLink = document.querySelector('.js-footer-x-link');
footerXLink.addEventListener('click', () => plausible('onClickFooterXLink'));
const footerGithubLink = document.querySelector('.js-footer-github-link');
footerGithubLink.addEventListener('click', () => plausible('onClickFooterGithubLink'));
const footerSlackLink = document.querySelector('.js-footer-slack-link');
Expand Down
2 changes: 1 addition & 1 deletion themes/openaq/layouts/about/people/person-social.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="person-social">
{{with .Params.twitter}}
{{with .Params.x}}
<a href="{{ . | safeURL }}" target="_blank" rel="noreferrer noopener">
<img src="/svg/X_logo.svg" height="13" width="15" alt="X icon">
</a>
Expand Down
6 changes: 3 additions & 3 deletions themes/openaq/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@

<div class="social-links">
<a
href="https://twitter.com/openaq"
class="social-circle twitter-nav js-footer-twitter-link"
href="https://x.com/openaq"
class="social-circle x-nav js-footer-x-link"
target="_blank"
rel="noreferrer noopener"
>
<img src="/svg/X_logo.svg" alt="twitter" />
<img src="/svg/X_logo.svg" alt="x" />
</a>
<a
href="https://join.slack.com/t/openaq/shared_invite/zt-yzqlgsva-v6McumTjy2BZnegIK9XCVw"
Expand Down
4 changes: 2 additions & 2 deletions themes/openaq/layouts/partials/social-banner.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none"><path fill="#1DA1F2" d="M17.9 37.4A19.1 19.1 0 0 0 37 18.2v-1c1.4-.9 2.5-2 3.4-3.4a14 14 0 0 1-3.9 1 6.8 6.8 0 0 0 3-3.7c-1.3.8-2.8 1.3-4.3 1.6A6.8 6.8 0 0 0 23.8 19a19.2 19.2 0 0 1-14-7 6.8 6.8 0 0 0 2.1 9c-1-.1-2-.4-3-.9a6.8 6.8 0 0 0 5.3 6.7c-1 .3-2 .4-3 .2a6.8 6.8 0 0 0 6.3 4.6 13.6 13.6 0 0 1-10 2.9c3.1 2 6.7 3 10.4 3"/></svg>
</div>
<div class="social-section-description">
<span class="type-subtitle-1 text-white">Stay up to date with OpenAQ news on Twitter</span>
<a href="https://twitter.com/openaq" class="btn btn-secondary social-banner-twitter" target="_blank" rel="noreferrer noopener">Follow</a>
<span class="type-subtitle-1 text-white">Stay up to date with OpenAQ news on X</span>
<a href="https://x.com/openaq" class="btn btn-secondary social-banner-x" target="_blank" rel="noreferrer noopener">Follow</a>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion themes/openaq/layouts/use-cases/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1 class="type-display-1 gradient-title">{{ .Title }}</h1>
<a href="https://www.facebook.com/openaq/" class="social-circle">
<img src="/svg/facebook.svg" alt="facebook">
</a>
<a href="https://twitter.com/openaq" class="social-circle"><img src="/svg/X_logo.svg" alt="twitter"></a>
<a href="https://x.com/openaq" class="social-circle"><img src="/svg/X_logo.svg" alt="x"></a>
<a href="https://www.linkedin.com/company/openaq" class="social-circle"><img src="/svg/linkedin.svg" alt="linkedin"></a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion themes/openaq/layouts/why-air-quality/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1 class="type-display-1 gradient-title">{{ .Title }}</h1>
<a href="https://www.facebook.com/openaq/" class="social-circle" target="_blank" rel="noreferrer noopener">
<img src="/svg/facebook.svg" alt="facebook">
</a>
<a href="https://twitter.com/openaq" class="social-circle" target="_blank" rel="noreferrer noopener"><img src="/svg/X_logo.svg" alt="twitter"></a>
<a href="https://x.com/openaq" class="social-circle" target="_blank" rel="noreferrer noopener"><img src="/svg/X_logo.svg" alt="x"></a>
<a href="https://www.linkedin.com/company/openaq" class="social-circle" target="_blank" rel="noreferrer noopener"><img src="/svg/linkedin.svg" alt="linkedin"></a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion themes/openaq/layouts/why-open-data/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h1 class="type-display-1 gradient-title">{{ .Title }}</h1>
<a href="https://www.facebook.com/openaq/" class="social-circle" target="_blank" rel="noreferrer noopener">
<img src="/svg/facebook.svg" alt="facebook">
</a>
<a href="https://twitter.com/openaq" class="social-circle" target="_blank" rel="noreferrer noopener"><img src="/svg/X_logo.svg" alt="twitter"></a>
<a href="https://x.com/openaq" class="social-circle" target="_blank" rel="noreferrer noopener"><img src="/svg/X_logo.svg" alt="x"></a>
<a href="https://www.linkedin.com/company/openaq" class="social-circle" target="_blank" rel="noreferrer noopener"><img src="/svg/linkedin.svg" alt="linkedin"></a>
</div>
</div>
Expand Down

0 comments on commit 30a490b

Please sign in to comment.