Skip to content

Commit

Permalink
refactor: [docs] Remove Adsterra ads
Browse files Browse the repository at this point in the history
It is found that Adsterra ads are malware and had negative impact on
site performance. Site viewers complained multiple times and this is
documented in blogs easily found by google search. So it makes sense to
remove this now and use another ad network.

Another change done is to remove ads styles from theme styles as this is
not part of the theme so should not be defined here instead use a static
style CSS file.
  • Loading branch information
manid2 committed Feb 8, 2024
1 parent 9cfa473 commit 511eb6e
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 143 deletions.
1 change: 0 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ defaults:
show_toc: true
share: true
show_comments: false
show_ads: false
# any page
- scope:
path: ""
Expand Down
1 change: 0 additions & 1 deletion _includes/ads.html

This file was deleted.

4 changes: 0 additions & 4 deletions _includes/blog-post-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,4 @@ <h4>Tags</h4>
{% endfor %}
</ul>
{%- endif -%}

{% if page.show_ads %}
{%- include ads.html ad_src="google-adsense" ad_type="links" -%}
{% endif %}
</div>
2 changes: 0 additions & 2 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,12 @@ defaults:
show_toc: true
share: true
show_comments: false
show_ads: true
# _pages
- scope:
path: ""
type: pages
values:
layout: page
show_ads: true
# any page
- scope:
path: ""
Expand Down
12 changes: 0 additions & 12 deletions docs/_includes/ads.html

This file was deleted.

31 changes: 0 additions & 31 deletions docs/_includes/adsterra.html

This file was deleted.

17 changes: 0 additions & 17 deletions docs/_includes/blog-post-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ <h4>Recent posts</h4>
{% for post in site.posts limit:5 %}
<li>
<a href="{{ post.url | relative_url }}">{{ post.title | strip }}</a>

{% if page.show_ads %}
{%- include ads.html ad_src="adsterra" ad_type="ad_links" -%}
{% endif %}
</li>
{% endfor %}
</ul>
Expand All @@ -21,10 +17,6 @@ <h4>Categories</h4>
{%- endcapture -%}
<li>
<a href="{{ link | relative_url }}">{{ category | strip }}</a>

{% if page.show_ads %}
{%- include ads.html ad_src="adsterra" ad_type="ad_links" -%}
{% endif %}
</li>
{% endfor %}
</ul>
Expand All @@ -39,17 +31,8 @@ <h4>Tags</h4>
{%- endcapture -%}
<li>
<a href="{{ link | relative_url }}">{{ tag | strip }}</a>

{% if page.show_ads %}
{%- include ads.html ad_src="adsterra" ad_type="ad_links" -%}
{% endif %}
</li>
{% endfor %}
</ul>
{%- endif -%}

{% if page.show_ads %}
{%- include ads.html ad_src="google-adsense" ad_type="links" -%}
{%- include ads.html ad_src="adsterra" ad_type="ad_banner_small" -%}
{% endif %}
</div>
56 changes: 0 additions & 56 deletions docs/_includes/google-adsense.html

This file was deleted.

12 changes: 0 additions & 12 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,11 @@
<!-- page content -->
<main class="page-content" role="main">
{{ content }}

{%- if page.show_ads -%}
<!-- ads section -->
<section class="container my-3">
{%- include ads.html ad_src="adsterra" ad_type="ad_native_banner" -%}
{%- include ads.html ad_src="google-adsense" ad_type="display" -%}
</section>
{%- endif -%}
</main>
<!-- page footer -->
{% include footer.html %}
</div>
{% include scripts.html %}
{%- if page.show_ads -%}
<script type='text/javascript' src='//pl20220116.highcpmrevenuegate.com/7f/c4/72/7fc4729b41e6def7678efe899c1db986.js'></script>
<script async="async" data-cfasync="false" src="//pl20260188.highcpmrevenuegate.com/9a0b7e3f5ef184780fa822e1002f7dbe/invoke.js"></script>
{%- endif -%}
</body>

</html>
2 changes: 0 additions & 2 deletions docs/_pages/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ List of dependencies for reference and upgrades.
- fontawesome, v5.7.2
- analytics
- google analytics
- ads
- google adsense
- search-providers
- google custom search
- comments-providers
Expand Down
4 changes: 0 additions & 4 deletions docs/_pages/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ feature_rows:
Lone Wolf Theme is a simple bootstrap based [Jekyll][jekyll] theme created by
[manid2][md2].

[Click here for ad...][adsterra_dl]

It uses [Bootstrap 4][bs4] and [Bootswatch wrappers][bootswatch] to style the
content and [animate.css][ani-css] for animations. Initially based on popular
Jekyll theme [minimal mistakes][min-mis].
Expand All @@ -62,7 +60,5 @@ coffee][md2_bmc_link].

[md2]: https://manid2.gitlab.io/

[adsterra_dl]: https://www.highcpmrevenuegate.com/tk17ncqp?key=484c772258d73d54a528cc874518bfaa

[md2_bmc_link]: https://www.buymeacoffee.com/manid2
[md2_bmc_qr_img]: https://manid2.gitlab.io/images/md2_bmc_qr.png
1 change: 0 additions & 1 deletion docs/ads.txt

This file was deleted.

0 comments on commit 511eb6e

Please sign in to comment.