Skip to content

Commit

Permalink
remove scam warning (#3030)
Browse files Browse the repository at this point in the history
  • Loading branch information
bishabosha committed Jun 24, 2024
1 parent 8a82765 commit 8bec5d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions _includes/alert-banner.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{% 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">
<div class="new-on-the-blog alert-warning" data-message_id="{{include.message_id}}">
<p>{{include.message|markdownify}}</p>
<span class="hide"><i class="fa fa-close"></i></span>
</div>
</header>
{% endunless %}
2 changes: 1 addition & 1 deletion _layouts/root-content-layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<div class="navigation-fade-screen"></div>

{% 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 %}

{% include navbar-inner.html %}

Expand Down
2 changes: 1 addition & 1 deletion _layouts/root-index-layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div class="navigation-fade-screen"></div>

{% 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 %}

{% include navbar-inner.html %}

Expand Down

0 comments on commit 8bec5d0

Please sign in to comment.