Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed twitter from end of blogs and all lines of code #3715

Merged
merged 2 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions src/main/content/_assets/css/certification.scss
Original file line number Diff line number Diff line change
Expand Up @@ -247,20 +247,6 @@
}
}

.twitter_link {
display: inline-block;
width: 27px;
height: 23px;
background-image: url('/img/twitter_link.svg');
background-repeat: no-repeat;
vertical-align: middle;
transition: all .2s;

&:hover {
background-image: url('/img/twitter_link_hover.svg');
}
}

.reddit_link {
display: inline-block;
width: 30px;
Expand Down
6 changes: 1 addition & 5 deletions src/main/content/_assets/css/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,7 @@
width: 95%;
border-top: 1px solid rgba(201, 214, 254, 0.35);
}

#header_twitter_link {
background-image: url("/img/Header_TwitterBird.svg");
}


#header_stackoverflow_link {
background-image: url("/img/Header_StackO.svg");
}
Expand Down
47 changes: 0 additions & 47 deletions src/main/content/_assets/css/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -678,55 +678,12 @@ body {
font-size: 16px;
}

#twitter_follow_div {
box-shadow: 0 2px 4px 0 rgba(63, 70, 89, 0.31);
border-radius: 3px;
padding: 14px 22px;
margin-bottom: 18px;
background: #ffffff;
}

#ufo_logo {
width: 59px;
height: 43px;
}

#twitter_handle {
display: inline-block;
font-size: 22px;
color: #5d6a8e;
margin-bottom: 0px;

&:hover {
color: #3f4659;
}
}

#twitter_link {
display: inline-block;
float: right;
font-size: 16px;
font-weight: 500;
color: #24253a;
background-color: #abd155;
border-radius: 7px;
padding: 8px 0px;
text-align: center;
transition: background-color 0.2s;
width: 130px;

&:hover {
color: #24253a;
background-color: #c7ee63;
}
}

#twitter_iframe_div {
box-shadow: 0 2px 4px 0 rgba(63, 70, 89, 0.31);
border-radius: 3px;
margin-bottom: 60px;
}

/* SUPPORT */

#support_background {
Expand Down Expand Up @@ -1466,10 +1423,6 @@ body {
display: none;
}

#twitter_link {
margin-top: -3px;
}

#support_container {
padding-top: 60px;
}
Expand Down
7 changes: 0 additions & 7 deletions src/main/content/_assets/css/openliberty.scss
Original file line number Diff line number Diff line change
Expand Up @@ -489,13 +489,6 @@ footer {
}
}

#footer_twitter_link {
background-image: url("/img/Footer_TwitterBird.svg");
&:hover {
background-image: url("/img/Footer_TwitterBird_Hover.svg");
}
}

#footer_stackoverflow_link {
background-image: url("/img/Footer_StackO.svg");
&:hover {
Expand Down
14 changes: 0 additions & 14 deletions src/main/content/_assets/css/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -268,20 +268,6 @@ $tag_lang_font_size: 14px;
}
}

.twitter_link {
display: inline-block;
width: 27px;
height: 23px;
background-image: url('/img/twitter_link.svg');
background-repeat: no-repeat;
vertical-align: middle;
transition: all .2s;

&:hover {
background-image: url('/img/twitter_link_hover.svg');
}
}

.reddit_link {
display: inline-block;
width: 30px;
Expand Down
19 changes: 0 additions & 19 deletions src/main/content/_assets/css/support.scss
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,6 @@ body {
margin-bottom: 0px;
}

#twitter_logo {
position: relative;
width: 120px;
height: 94px;
top: 50px;
}

#stack_overflow_logo {
position: relative;
width: 100px;
Expand Down Expand Up @@ -496,18 +489,6 @@ body {
width: 77px;
height: 79px;
}

#twitter_logo_background {
margin-bottom: -82px;
}

#twitter_logo {
position: relative;
width: 45px;
height: 35px;
top: 23px;
margin-left: 16px !important;
}

#stack_overflow_logo_background {
margin-bottom: -94px;
Expand Down
7 changes: 0 additions & 7 deletions src/main/content/_assets/js/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ function startAnimation() {
}

$(document).ready(function() {
// add custom css to twitter iframe
$('#twitter_iframe_div').on('DOMSubtreeModified propertychange',"#twitter-widget-0", function() {
$(".twitter-timeline").contents().find(".timeline-Tweet-media").css("display", "none");
$(".twitter-timeline").contents().find(".timeline-Tweet-text").css({"font-size": "16px", "margin-bottom": "-10px"});
$(".twitter-timeline").contents().find(".timeline-Body").css("border-bottom", "none");
});

$(window).on('scroll', function(event) {
// start animation if images are in viewport
if ($('#beam').isInViewport()) {
Expand Down
1 change: 0 additions & 1 deletion src/main/content/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ description: >
Open Liberty is the most flexible server runtime available to Earth’s Java developers.
baseurl: ""
url: "https://openliberty.io"
twitter_username: openlibertyio
github_username: NottyCode

asciidoctor:
Expand Down
6 changes: 2 additions & 4 deletions src/main/content/_i18n/en.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
global:
openliberty: Open Liberty
ol_logo_subtitile: An IBM Open Source Project
twitter: Twitter
learnmore: Learn more
readmore: Read more
and: and
Expand Down Expand Up @@ -246,9 +245,8 @@ blog:
posts_in_other_languages: Posts in other languages
post_in_other_lang: Post available in languages
follow:
part1: Follow
part2: on Twitter or subscribe to our
part3: feed.
part1: Subscribe to our
part2: feed.
tags:
announcements: announcements
microprofile: microprofile
Expand Down
5 changes: 1 addition & 4 deletions src/main/content/_i18n/ja.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
global:
openliberty: Open Liberty
ol_logo_subtitile: An IBM Open Source Project
twitter: Twitter
learnmore: Learn more
readmore: 詳細はこちら
and: and
Expand Down Expand Up @@ -246,9 +245,7 @@ blog:
posts_in_other_languages: 他の言語での投稿
post_in_other_lang: 他言語版へのリンク
follow:
part1: Twitter で
part2: をフォローするか、
part3: フィードを購読します。
part2: フィードを購読します。
tags:
announcements: 発表
microprofile: microprofile
Expand Down
6 changes: 2 additions & 4 deletions src/main/content/_i18n/zh-Hans.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
global:
openliberty: Open Liberty
ol_logo_subtitile: IBM 开放式源代码项目
twitter: Twitter
learnmore: Learn more
readmore: 阅读更多
and: and
Expand Down Expand Up @@ -245,9 +244,8 @@ blog:
posts_in_other_languages: 其他语文的员额
post_in_other_lang: 以其他语言提供的职位
follow:
part1: 请务必在 Twitter 上关注
part2: 或订阅我们的
part3: 订阅源。
part1: 订阅我们的
part2: 订阅源。
tags:
announcements: 公告
microprofile: microprofile
Expand Down
4 changes: 0 additions & 4 deletions src/main/content/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
<link href="https://fonts.googleapis.com/css?family=Asap:400,500" rel="stylesheet">

<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@OpenLibertyIO" />
<meta name="twitter:title" content="{% if page.seo-title %}{{ page.seo-title }}{% else %}{{site.title}}{% endif %}" />
<meta name="twitter:description" content="{{ description }}" />

<meta property='og:title' content="{% if page.seo-title %}{{ page.seo-title }}{% else %}{{site.title}}{% endif %}" />
<meta property='og:image' content="{% if page.open-graph-image %}{{page.open-graph-image}}{% else %}{{default_image}}{% endif %}" />
Expand Down
16 changes: 0 additions & 16 deletions src/main/content/antora_ui/src/partials/head-meta.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,6 @@
<meta name="description" content="Open Liberty documentation and reference materials for developers to build applications and for administrators and operation teams to manage DevOps and deploy workloads to clouds by using open cloud-native Java. This content covers Open Liberty basics, development, security, deployment, and operations topics. It also includes Javadoc for Jakarta EE APIs, MicroProfile APIs, Java EE APIs, and Open Liberty APIs and SPIs.">
{{/if}}

<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@OpenLibertyIO" />
{{#if page.attributes.seo-title }}
<meta name="twitter:title" content="{{ page.attributes.seo-title }}" />
{{ else }}
<meta name="twitter:title" content="{{ site.title }}" />
{{/if}}
{{#if page.attributes.seo-description }}
<meta name="twitter:description" content="{{ page.attributes.seo-description }}" />
{{else if page.attributes.description }}
<meta name="twitter:description" content="{{ page.attributes.description }}" />
{{ else }}
<meta name="twitter:description" content="Open Liberty documentation and reference materials for developers to build applications and for administrators and operation teams to manage DevOps and deploy workloads to clouds by using open cloud-native Java. This content covers Open Liberty basics, development, security, deployment, and operations topics. It also includes Javadoc for Jakarta EE APIs, MicroProfile APIs, Java EE APIs, and Open Liberty APIs and SPIs." />
{{/if}}
<meta name="twitter:image" content="https://openliberty.io/img/twitter_card.jpg" />


{{!-- OpenGraph Tags --}}
{{#if page.attributes.seo-title }}
Expand Down
6 changes: 1 addition & 5 deletions src/main/content/antora_ui/src/sass/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,7 @@
width: 95%;
border-top: 1px solid rgba(201, 214, 254, 0.35);
}

#header_twitter_link {
background-image: url("../../_/img/Header_TwitterBird.svg");
}


#header_stackoverflow_link {
background-image: url("../../_/img/Header_StackO.svg");
}
Expand Down
7 changes: 0 additions & 7 deletions src/main/content/antora_ui/src/sass/openliberty.scss
Original file line number Diff line number Diff line change
Expand Up @@ -454,13 +454,6 @@ footer {
}
}

#footer_twitter_link {
background-image: url("../../_/img/Footer_TwitterBird.svg");
&:hover {
background-image: url("../../_/img/Footer_TwitterBird_Hover.svg");
}
}

#footer_stackoverflow_link {
background-image: url("../../_/img/Footer_StackO.svg");
&:hover {
Expand Down
10 changes: 4 additions & 6 deletions src/main/content/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -395,15 +395,13 @@ <h2 class="blog_post_title_condensed">
{% t blog.stay_light_years_ahead %}
</p>
<p>
{% t blog.follow.part1 %}
<a class="orange_link_light_background" href="https://twitter.com/OpenLibertyIO" rel="noopener" target="_blank">
@openliberty.io
</a>
{% t blog.follow.part2 %}
{% if site.lang != 'ja' %}
{% t blog.follow.part1 %}
{% endif %}
<a class="orange_link_light_background" href='{{ "/feed.xml" | relative_url }}' rel="noopener" target="_blank">
RSS
</a>
{% t blog.follow.part3 %}
{% t blog.follow.part2 %}
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/openliberty/website/SecurityFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain
response.setHeader("X-Content-Type-Options", "nosniff");
// Mitigating cross site scripting (XSS) from other domains.
response.setHeader("Content-Security-Policy",
"default-src 'self' 'unsafe-inline' 'unsafe-eval' cdn.jsdelivr.net fonts.googleapis.com ajax.googleapis.com code.jquery.com fonts.gstatic.com *.githubusercontent.com api.github.com www.googletagmanager.com tagmanager.google.com www.google-analytics.com cdnjs.cloudflare.com data: buttons.github.io www.youtube.com *.twitter.com *.twimg.com video.ibm.com https://start.openliberty.io/ gitlab.com starter-staging.rh9j6zz75er.us-east.codeengine.appdomain.cloud https://docs.oracle.com/javase/8/docs/api/");
"default-src 'self' 'unsafe-inline' 'unsafe-eval' cdn.jsdelivr.net fonts.googleapis.com ajax.googleapis.com code.jquery.com fonts.gstatic.com *.githubusercontent.com api.github.com www.googletagmanager.com tagmanager.google.com www.google-analytics.com cdnjs.cloudflare.com data: buttons.github.io www.youtube.com video.ibm.com https://start.openliberty.io/ gitlab.com starter-staging.rh9j6zz75er.us-east.codeengine.appdomain.cloud https://docs.oracle.com/javase/8/docs/api/");

// Limits the information sent cross-domain and does not send the origin name.
response.setHeader("Referrer-Policy", "no-referrer");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/openliberty/website/TLSFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain
response.setHeader("X-Content-Type-Options", "nosniff");
// Mitigating cross site scripting (XSS) from other domains.
response.setHeader("Content-Security-Policy",
"default-src 'self' 'unsafe-inline' 'unsafe-eval' cdn.jsdelivr.net fonts.googleapis.com ajax.googleapis.com code.jquery.com fonts.gstatic.com *.githubusercontent.com api.github.com www.googletagmanager.com tagmanager.google.com www.google-analytics.com cdnjs.cloudflare.com data: buttons.github.io www.youtube.com *.twitter.com *.twimg.com video.ibm.com https://start.openliberty.io/ gitlab.com starter-staging.rh9j6zz75er.us-east.codeengine.appdomain.cloud https://docs.oracle.com/javase/8/docs/api/");
"default-src 'self' 'unsafe-inline' 'unsafe-eval' cdn.jsdelivr.net fonts.googleapis.com ajax.googleapis.com code.jquery.com fonts.gstatic.com *.githubusercontent.com api.github.com www.googletagmanager.com tagmanager.google.com www.google-analytics.com cdnjs.cloudflare.com data: buttons.github.io www.youtube.com video.ibm.com https://start.openliberty.io/ gitlab.com starter-staging.rh9j6zz75er.us-east.codeengine.appdomain.cloud https://docs.oracle.com/javase/8/docs/api/");

// Limits the information sent cross-domain and does not send the origin name.
response.setHeader("Referrer-Policy", "no-referrer");
Expand Down
Loading