Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

End of Kabanero Website Updates #379

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 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
10 changes: 1 addition & 9 deletions src/main/content/_assets/js/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,7 @@
function loadWhatsNewModal(){
let currentVersion = String($('#modal-title').data('version'));

if (localStorage.didOpenWhatsNew === 'false') {
// shows the header with "Learn More" button to show the modal about the latest release
$('#whats-new-toast').toast('show');
}
else if (currentVersion !== localStorage.getItem('whatsNewVersion')){
localStorage.setItem('whatsNewVersion', currentVersion);
localStorage.setItem('didOpenWhatsNew', false);
$('#whats-new-toast').toast('show');
}
$('#whats-new-toast').toast('show');

$('#whats-new-modal').on('show.bs.modal', function () {
// nav bar would be on top of modal on scroll so take it away and put it back on hide
Expand Down
18 changes: 3 additions & 15 deletions src/main/content/_includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

<!-- New release notification toast -->
<div aria-atomic="true" id="whats-new-toast" class="toast hide-toast-div" data-autohide="false">
<strong class="mr-auto toast-text">Check out what's in the latest release of Kabanero</strong>
<strong class="mr-auto toast-text">Development of Kabanero as a standalone project has ended. See blog post for details.</strong>
<button type="button" class="ml-2 mb-1 close close-button" data-dismiss="toast" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<a class="col-md-5" id="learn-more-modal-button" data-toggle="modal" data-target="#whats-new-modal">Learn More</a>
<a class="col-md-5" id="learn-more-modal-button" href="./blog/2021/03/30/adios.html">Learn More</a>
</div>

<nav class="navbar navbar-expand-md navbar-light bg-custom">
Expand All @@ -29,7 +29,7 @@
<a class="nav-link" href="/guides">Guides</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="/blog">Blog</a>
<a class="nav-link" href="/blog/2021/03/30/adios.html">Blog</a>
</li>

<!--
Expand All @@ -50,24 +50,12 @@
</li> -->
</ul>
<div class="form-inline my-2 my-lg-0">
<div class="dropdown">
<a class="float_right_section ml-3" href="#" id="header-slack-icon" data-toggle="dropdown">
<img src="/img/slack_Icon.svg" id="slack-icon" class="img-fluid header-icon" title="Kabanero Slack" alt="slack logo">
</a>
<div class="dropdown-menu" id="slack-dropdown">
<a class="dropdown-item" href={{site.slack_invite_url}} target="_blank">Request an Invite</a>
<a class="dropdown-item" href={{site.slack_url}} target="_blank">Go to the Channel</a>
</div>
</div>
<a class="float_right_section" target="_blank" href="{{site.stackoverflow_url}}">
<img id="header_stackoverflow_img" src="/img/Header_StackO.svg" class="img-fluid header-icon" title="Kabanero StackOverflow" alt="stackoverflow logo">
</a>
<a class="float_right_section" target="_blank" href="{{site.github_url}}">
<img id="header_github_img" src="/img/header_github_icon.svg" class="img-fluid header-icon" title="Kabanero GitHub" alt="github logo">
</a>
<a class="float_right_section" target="_blank" href="{{site.twitter_url}}">
<img id="header_twitter_img" src="/img/header_twitter_icon.svg" class="img-fluid header-icon" title="Kabanero Twitter" alt="twitter logo">
</a>
<a class="float_right_section" data-toggle="modal" data-target="#whats-new-modal">
<img id="whats-new-modal-svg-icon" src="/img/info-icon.svg" class="img-fluid header-icon" title="Kabanero what’s new" alt="info logo">
</a>
Expand Down
18 changes: 0 additions & 18 deletions src/main/content/_layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
<div class="col-sm-12">
<a href="/blog"><span class="leftArrow kabanero-colored-link"></span>
<h1 class="col-md-1 blog-title">Blog</h1></a>
<p>Follow <a class="kabanero-colored-link" href="{{site.twitter_url}}" target="_blank" rel="noopener">@{{site.twitter_username}}</a> on Twitter or subscribe to our <a class="kabanero-colored-link" href="https://kabanero.io/feed.xml" target="_blank" rel="noopener">RSS feed</a>.</p>
</div>
<div id="post_column" class="col-sm-12">
<div id="article_container">
Expand Down Expand Up @@ -59,27 +58,10 @@ <h1 itemprop="name headline">{{ page.title | escape }}</h1>
{{ content }}
</div>
</div>
<div id="share_post_container">
Share this post:
<div class="linksContainer">
{% assign page_title = page.title | replace: "'" , "\\'" %}
<a target="_blank" href="//twitter.com/intent" onclick="window.open('https://twitter.com/intent/tweet?text=' + encodeURIComponent('{{ page_title }}') + '&url=' + encodeURIComponent(window.location)); return false">
<img id="share_blog_twitter_img" src="/img/header_twitter_icon_orange.svg" class="img-fluid" alt="twitter logo">
</a>
<a target="_blank" href="//www.reddit.com/submit" onclick="window.open('https://www.reddit.com/submit?url=' + encodeURIComponent(window.location)); return false">
<img id="reddit_img" src="/img/Reddit_Icon.svg" class="img-fluid" alt="reddit logo">
</a>
</div>
</div>
{% if site.disqus.shortname %} {% include disqus_comments.html %} {% endif %}
</article>
</div>
</div>
</div>
</div>
</div>

<div class="d-none">
<img src="/img/twitter_link_hover.svg">
<img src="/img/reddit_link_hover.svg">
</div>
4 changes: 2 additions & 2 deletions src/main/content/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
User-agent: *
Disallow: /blog/redirected.html
Noindex: /blog/redirected.html
Disallow: /
Noindex: /