Skip to content

Commit fa7cb63

Browse files
authored
Remove Twitter links from site (#1141)
1 parent e38a727 commit fa7cb63

File tree

9 files changed

+2
-36
lines changed

9 files changed

+2
-36
lines changed

landing-pages/site/archetypes/blog.md

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: "{{ replace .Name "-" " " | title }}"
33
linkTitle: "{{ replace .Name "-" " " | title }}"
44
author: "Your Name"
5-
twitter: "Your Twitter ID (optional, remove if not needed)"
65
github: "Your GitHub ID (optional, remove if not needed)"
76
linkedin: "Your LinkedIn ID (optional, remove if not needed)"
87
description: "Description"

landing-pages/site/config.toml

+1-5
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ copyright = "The Apache Software Foundation"
7171
privacy_policy = "https://policies.google.com/privacy"
7272
blocktype = ["use-case", "testimonial"]
7373

74-
# First one is picked as the Twitter card image if not set on page.
74+
# First one is picked as the card image if not set on page.
7575
images = ["images/feature-image.png"]
7676

7777
# Menu title if your navbar has a versions selector to access old versions of your site.
@@ -125,10 +125,6 @@ no = 'Sorry to hear that. Please <a href="https://github.com/USERNAME/REPOSITORY
125125
name = "Stack Overflow"
126126
url = "https://stackoverflow.com/questions/tagged/airflow/"
127127
iconName = "stackoverflow.svg"
128-
[[params.links.media]]
129-
name = "Twitter"
130-
url = "https://twitter.com/apacheairflow/"
131-
iconName = "twitter-white.svg"
132128
[[params.links.media]]
133129
name = "Youtube"
134130
url = "https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/"

landing-pages/site/content/en/announcements/_index.md

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ menu:
1111
&nbsp;
1212
&nbsp;
1313

14-
**Note:** Follow [@ApacheAirflow](https://twitter.com/ApacheAirflow) on Twitter for the latest news and announcements!
15-
1614
# February 10, 2025
1715

1816
We’ve just released Apache **Airflow 2.10.5**.

landing-pages/site/layouts/blog/content.html

-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@
3333
<span class="blogpost-content__metadata--author">
3434
{{ .Params.author }}
3535
</span>
36-
{{ with .Params.twitter }}
37-
<a href="https://twitter.com/{{ . }}/" class="blogpost-content__metadata--social-media-icon">
38-
{{ with resources.Get "icons/twitter-small.svg" }}{{ .Content | safeHTML }}{{ end }}
39-
</a>
40-
{{ end }}
4136
{{ with .Params.github }}
4237
<a href="https://github.com/{{ . }}/" class="blogpost-content__metadata--social-media-icon">
4338
{{ with resources.Get "icons/github-small.svg" }}{{ .Content | safeHTML }}{{ end }}

landing-pages/site/layouts/meetups/list.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ <h4 class="page-header host-header">Want to host a meetup?</h4>
6969
{{ partial "text-with-icon" (dict "logo_path" "icons/meetup-icon.svg" "header" "Create an event" "text" "Create an event using meetup.com or Facebook and recruit some interesting speakers. Drinks and snacks are always nice.") }}
7070
{{ partial "text-with-icon" (dict "logo_path" "icons/intent-icon.svg" "header" "Voice your intent" "text" "In describing your event, remember to specify the intended audience -- e.g., beginners, intermediates, developers, or architects.") }}
7171
{{ partial "text-with-icon" (dict "logo_path" "icons/date-icon.svg" "header" "Select a date" "text" "Choosing the right day and time is essential for a good turnout. Midweek in the evening tends to work best. ") }}
72-
{{ partial "text-with-icon" (dict "logo_path" "icons/promote-icon.svg" "header" "Promote it!" "text" "Publicize your meetup as widely as possible! Reach out to the community team, and we will publish your event in the [#announcements](https://apache-airflow.slack.com/messages/announcements) channel and tweet about it from [@ApacheAirflow](https://twitter.com/ApacheAirflow).") }}
72+
{{ partial "text-with-icon" (dict "logo_path" "icons/promote-icon.svg" "header" "Promote it!" "text" "Publicize your meetup as widely as possible! Reach out to the community team, and we will publish your event in the [#announcements](https://apache-airflow.slack.com/messages/announcements) channel.") }}
7373
</div>
7474
</div>
7575
{{ end }}

landing-pages/site/layouts/partials/boxes/committer.html

-8
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@
3232
</a>
3333
{{ end }}
3434
{{ end }}
35-
{{ if .twitter }}
36-
{{ $url := .twitter }}
37-
{{ with resources.Get "icons/twitter.svg" }}
38-
<a href="{{ $url }}" class="box-event__committer--social-media-icon">
39-
{{ .Content | safeHTML }}
40-
</a>
41-
{{ end }}
42-
{{ end }}
4335
{{ if .linkedin }}
4436
{{ $url := .linkedin }}
4537
{{ with resources.Get "icons/linkedin.svg" }}

landing-pages/site/layouts/partials/head.html

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
{{- template "_internal/opengraph.html" . -}}
3434
{{- template "_internal/google_news.html" . -}}
3535
{{- template "_internal/schema.html" . -}}
36-
{{- template "_internal/twitter_cards.html" . -}}
3736
{{ if eq (getenv "HUGO_ENV") "production" }}
3837
{{ template "_internal/google_analytics_async.html" . }}
3938
{{ end }}

landing-pages/site/layouts/partials/share-social-media.html

-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
<div class="mt-5">
2121
<p class="bodytext__medium--greyish-brown font-weight-500 mb-2">Share</p>
2222
<div class="share-section--icons-wrapper">
23-
<div class="share-section--icon"
24-
onclick="window.open(`https://twitter.com/intent/tweet?url=${window.location.href}&original_referer=${window.location.origin}`,'targetWindow', `toolbar=no, location=no, status=no, menubar=no, directories=no, scrollbars=no, resizable=no, centerscreen=yes, chrome=yes, width=550, height=400, top=${window.outerHeight / 2 + (window.screenY || window.screenTop || 0) - 200} left=${window.outerWidth / 2 + (window.screenX || window.screenLeft || 0) - 275}`); return false;">
25-
{{ with resources.Get "icons/twitter-small.svg" }}{{ .Content | safeHTML }}{{ end }}
26-
</div>
2723
<div class="share-section--icon"
2824
onclick="window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${window.location.href}`,'targetWindow', `toolbar=no, location=no, status=no, menubar=no, directories=no, scrollbars=no, resizable=no, centerscreen=yes, chrome=yes, width=750, height=600, top=${window.outerHeight / 2 + (window.screenY || window.screenTop || 0) - 300} left=${window.outerWidth / 2 + (window.screenX || window.screenLeft || 0) - 375}`); return false;">
2925
{{ with resources.Get "icons/linkedin-small.svg" }}{{ .Content | safeHTML }}{{ end }}

sphinx_airflow_theme/sphinx_airflow_theme/footer.html

-9
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,6 @@
7373

7474
</a>
7575

76-
<a class="footer-section__media-section--link" target="_blank" href="https://twitter.com/ApacheAirflow">
77-
<svg xmlns="http://www.w3.org/2000/svg" width="44.355" height="44.355" viewBox="0 0 44.355 44.355">
78-
<g id="Group_211" data-name="Group 211" transform="translate(-503 -1382.2)">
79-
<path id="Path_221" d="M541.811 1382.2h-33.267a5.546 5.546 0 0 0-5.544 5.544v33.266a5.547 5.547 0 0 0 5.544 5.545h33.267a5.546 5.546 0 0 0 5.544-5.545v-33.266a5.546 5.546 0 0 0-5.544-5.544zm-5.611 16.533c.011.244.011.488.011.732 0 7.507-5.722 16.178-16.179 16.178a16.173 16.173 0 0 1-8.7-2.539 10.92 10.92 0 0 0 1.353.078 11.4 11.4 0 0 0 7.064-2.44 5.685 5.685 0 0 1-5.311-3.947 5.725 5.725 0 0 0 2.561-.1 5.7 5.7 0 0 1-4.557-5.578v-.078a5.752 5.752 0 0 0 2.572.71 5.709 5.709 0 0 1-1.763-7.6 16.146 16.146 0 0 0 11.721 5.944 6.282 6.282 0 0 1-.144-1.3 5.688 5.688 0 0 1 9.836-3.892 11.3 11.3 0 0 0 3.615-1.375 5.721 5.721 0 0 1-2.506 3.149 11.538 11.538 0 0 0 3.271-.9 11.585 11.585 0 0 1-2.844 2.958z" fill="#fff" data-name="Path 221"></path>
80-
</g>
81-
</svg>
82-
83-
</a>
84-
8576
<a class="footer-section__media-section--link" target="_blank" href="https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA">
8677
<svg xmlns="http://www.w3.org/2000/svg" width="49.594" height="34.941" viewBox="0 0 49.594 34.941">
8778
<path id="Path_223" d="M1124.557 1230a6.232 6.232 0 0 0-4.385-4.413c-3.867-1.043-19.376-1.043-19.376-1.043s-15.508 0-19.376 1.043a6.232 6.232 0 0 0-4.385 4.413c-1.036 3.893-1.036 12.014-1.036 12.014s0 8.122 1.036 12.015a6.232 6.232 0 0 0 4.385 4.413c3.867 1.043 19.376 1.043 19.376 1.043s15.509 0 19.376-1.043a6.232 6.232 0 0 0 4.385-4.413c1.036-3.893 1.036-12.015 1.036-12.015s.001-8.123-1.036-12.014zm-28.833 19.388v-14.748l12.962 7.374z" fill="#fff" data-name="Path 223" transform="translate(-1076 -1224.542)"></path>

0 commit comments

Comments
 (0)