Skip to content

Commit

Permalink
remove scam warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bishabosha committed Jun 24, 2024
1 parent 6f7c005 commit 67c44f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions _includes/alert-banner-inner.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% comment %}use the variable 'message' to include markdown text to display in the alert.{% endcomment %}

{% unless include.message_id == 'disabled' %}
<div class="new-on-the-blog alert-warning" data-message_id="{{include.message_id}}">
<p>{{include.message|markdownify}}</p>
<span class="hide-alert"><i class="fa fa-close"></i></span>
</div>
{% endunless %}
2 changes: 2 additions & 0 deletions _includes/alert-banner.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% comment %}use the variable 'message' to include markdown text to display in the alert.{% endcomment %}

{% unless include.message_id == 'disabled' %}
<header id="site-header" class="header-home">
{% include alert-banner-inner.html message=include.message message_id=include.message_id %}
</header>
{% endunless %}
2 changes: 1 addition & 1 deletion _includes/navbar-inner.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<header id="site-header">
{% include alert-banner.html message=site.data.messages.scam-banner message_id='scam-courses-feb-2024' %}
{% include alert-banner.html message_id='disabled' message=site.data.messages.scam-banner %}
<div class="wrap">
<nav class="navigation" role="menu">
<a href="/" class="navigation-bdand">
Expand Down
2 changes: 1 addition & 1 deletion _layouts/frontpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- Header -->
<header id="site-header" class="header-home">
<div class="header-background">
{% include alert-banner-inner.html message=site.data.messages.scam-banner message_id='scam-courses-feb-2024' %}
{% include alert-banner-inner.html message_id='disabled' message=site.data.messages.scam-banner %}
<div class="new-on-the-blog">
<p>New on the blog:
{% assign newPost = site.posts.first %}
Expand Down

0 comments on commit 67c44f4

Please sign in to comment.