You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by js...@apache.org on 2025/03/15 11:12:46 UTC

(airflow-site) 01/01: Remove Twitter links from site

This is an automated email from the ASF dual-hosted git repository.

jscheffl pushed a commit to branch feature/remove-twitter-in-site
in repository https://gitbox.apache.org/repos/asf/airflow-site.git

commit d935911e6be6b2315680f2d392be0e372b8f4651
Author: Jens Scheffler <j_...@gmx.de>
AuthorDate: Sat Mar 15 12:12:25 2025 +0100

    Remove Twitter links from site
---
 landing-pages/site/archetypes/blog.md                       | 1 -
 landing-pages/site/config.toml                              | 6 +-----
 landing-pages/site/content/en/announcements/_index.md       | 2 --
 landing-pages/site/layouts/blog/content.html                | 5 -----
 landing-pages/site/layouts/meetups/list.html                | 2 +-
 landing-pages/site/layouts/partials/boxes/committer.html    | 8 --------
 landing-pages/site/layouts/partials/head.html               | 1 -
 landing-pages/site/layouts/partials/share-social-media.html | 4 ----
 sphinx_airflow_theme/sphinx_airflow_theme/footer.html       | 9 ---------
 9 files changed, 2 insertions(+), 36 deletions(-)

diff --git a/landing-pages/site/archetypes/blog.md b/landing-pages/site/archetypes/blog.md
index 55ec883a39..9ae3106558 100644
--- a/landing-pages/site/archetypes/blog.md
+++ b/landing-pages/site/archetypes/blog.md
@@ -2,7 +2,6 @@
 title: "{{ replace .Name "-" " " | title }}"
 linkTitle: "{{ replace .Name "-" " " | title }}"
 author: "Your Name"
-twitter: "Your Twitter ID (optional, remove if not needed)"
 github: "Your GitHub ID (optional, remove if not needed)"
 linkedin: "Your LinkedIn ID (optional, remove if not needed)"
 description: "Description"
diff --git a/landing-pages/site/config.toml b/landing-pages/site/config.toml
index 7080e93cb4..27f30d77d6 100644
--- a/landing-pages/site/config.toml
+++ b/landing-pages/site/config.toml
@@ -71,7 +71,7 @@ copyright = "The Apache Software Foundation"
 privacy_policy = "https://policies.google.com/privacy"
 blocktype = ["use-case", "testimonial"]
 
-# First one is picked as the Twitter card image if not set on page.
+# First one is picked as the card image if not set on page.
 images = ["images/feature-image.png"]
 
 # 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
     name = "Stack Overflow"
     url = "https://stackoverflow.com/questions/tagged/airflow/"
     iconName = "stackoverflow.svg"
-[[params.links.media]]
-    name = "Twitter"
-    url = "https://twitter.com/apacheairflow/"
-    iconName = "twitter-white.svg"
 [[params.links.media]]
     name = "Youtube"
     url = "https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/"
diff --git a/landing-pages/site/content/en/announcements/_index.md b/landing-pages/site/content/en/announcements/_index.md
index fe36bca970..cbd553bead 100644
--- a/landing-pages/site/content/en/announcements/_index.md
+++ b/landing-pages/site/content/en/announcements/_index.md
@@ -11,8 +11,6 @@ menu:
 &nbsp;
 &nbsp;
 
-**Note:** Follow [@ApacheAirflow](https://twitter.com/ApacheAirflow) on Twitter for the latest news and announcements!
-
 # February 10, 2025
 
 We’ve just released Apache **Airflow 2.10.5**.
diff --git a/landing-pages/site/layouts/blog/content.html b/landing-pages/site/layouts/blog/content.html
index 344811e701..99ee35452c 100644
--- a/landing-pages/site/layouts/blog/content.html
+++ b/landing-pages/site/layouts/blog/content.html
@@ -33,11 +33,6 @@
         <span class="blogpost-content__metadata--author">
             {{ .Params.author }}
         </span>
-        {{ with .Params.twitter }}
-            <a href="https://twitter.com/{{ . }}/" class="blogpost-content__metadata--social-media-icon">
-                {{ with resources.Get "icons/twitter-small.svg" }}{{ .Content | safeHTML }}{{ end }}
-            </a>
-        {{ end }}
         {{ with .Params.github }}
             <a href="https://github.com/{{ . }}/" class="blogpost-content__metadata--social-media-icon">
                 {{ with resources.Get "icons/github-small.svg" }}{{ .Content | safeHTML }}{{ end }}
diff --git a/landing-pages/site/layouts/meetups/list.html b/landing-pages/site/layouts/meetups/list.html
index e5be26257f..ac01c4c078 100644
--- a/landing-pages/site/layouts/meetups/list.html
+++ b/landing-pages/site/layouts/meetups/list.html
@@ -69,7 +69,7 @@ under the License.
             {{ 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.") }}
             {{ 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.") }}
             {{ 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. ") }}
-            {{ 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).") }}
+            {{ 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.") }}
         </div>
     </div>
 {{ end }}
diff --git a/landing-pages/site/layouts/partials/boxes/committer.html b/landing-pages/site/layouts/partials/boxes/committer.html
index 293467a90a..6d15e6aade 100644
--- a/landing-pages/site/layouts/partials/boxes/committer.html
+++ b/landing-pages/site/layouts/partials/boxes/committer.html
@@ -32,14 +32,6 @@
                     </a>
                 {{ end }}
             {{ end }}
-            {{ if .twitter }}
-                {{ $url := .twitter }}
-                {{ with resources.Get "icons/twitter.svg" }}
-                    <a href="{{ $url }}" class="box-event__committer--social-media-icon">
-                        {{ .Content | safeHTML }}
-                    </a>
-                {{ end }}
-            {{ end }}
             {{ if .linkedin }}
                 {{ $url := .linkedin }}
                 {{ with resources.Get "icons/linkedin.svg" }}
diff --git a/landing-pages/site/layouts/partials/head.html b/landing-pages/site/layouts/partials/head.html
index 3b5fefbd9b..8e38c7dba0 100644
--- a/landing-pages/site/layouts/partials/head.html
+++ b/landing-pages/site/layouts/partials/head.html
@@ -33,7 +33,6 @@
 {{- template "_internal/opengraph.html" . -}}
 {{- template "_internal/google_news.html" . -}}
 {{- template "_internal/schema.html" . -}}
-{{- template "_internal/twitter_cards.html" . -}}
 {{ if eq (getenv "HUGO_ENV") "production" }}
 {{ template "_internal/google_analytics_async.html" . }}
 {{ end }}
diff --git a/landing-pages/site/layouts/partials/share-social-media.html b/landing-pages/site/layouts/partials/share-social-media.html
index fe816a4935..ae90872efd 100644
--- a/landing-pages/site/layouts/partials/share-social-media.html
+++ b/landing-pages/site/layouts/partials/share-social-media.html
@@ -20,10 +20,6 @@
 <div class="mt-5">
     <p class="bodytext__medium--greyish-brown font-weight-500 mb-2">Share</p>
     <div class="share-section--icons-wrapper">
-        <div class="share-section--icon"
-             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;">
-            {{ with resources.Get "icons/twitter-small.svg" }}{{ .Content | safeHTML }}{{ end }}
-        </div>
         <div class="share-section--icon"
              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;">
             {{ with resources.Get "icons/linkedin-small.svg" }}{{ .Content | safeHTML }}{{ end }}
diff --git a/sphinx_airflow_theme/sphinx_airflow_theme/footer.html b/sphinx_airflow_theme/sphinx_airflow_theme/footer.html
index 7ac2b5b25d..a87d4af174 100644
--- a/sphinx_airflow_theme/sphinx_airflow_theme/footer.html
+++ b/sphinx_airflow_theme/sphinx_airflow_theme/footer.html
@@ -73,15 +73,6 @@
 
             </a>
 
-            <a class="footer-section__media-section--link" target="_blank" href="https://twitter.com/ApacheAirflow">
-                <svg xmlns="http://www.w3.org/2000/svg" width="44.355" height="44.355" viewBox="0 0 44.355 44.355">
-                    <g id="Group_211" data-name="Group 211" transform="translate(-503 -1382.2)">
-                        <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.7 [...]
-                    </g>
-                </svg>
-
-            </a>
-
             <a class="footer-section__media-section--link" target="_blank" href="https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA">
                 <svg xmlns="http://www.w3.org/2000/svg" width="49.594" height="34.941" viewBox="0 0 49.594 34.941">
                     <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 [...]