Skip to content

Commit

Permalink
feat: Add adsterra ads
Browse files Browse the repository at this point in the history
  • Loading branch information
manid2 committed Aug 6, 2023
1 parent 914b419 commit 622c07c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
4 changes: 3 additions & 1 deletion docs/_includes/ads.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
{%- case ad_src -%}
{%- when "google-adsense" -%}
{%- include google-adsense.html ad_type=ad_type -%}
{%- when "adsterra" -%}
{%- include adsterra.html ad_type=ad_native_banner -%}
{%- else -%}
No Ads
{: .lead}
{%- endcase -%}
{%- endcase -%}
1 change: 1 addition & 0 deletions docs/_includes/adsterra.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div id="container-9a0b7e3f5ef184780fa822e1002f7dbe"></div>
17 changes: 11 additions & 6 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,23 @@
{% include header.html %}
<!-- page content -->
<main class="page-content" role="main">
{{ content }}

<section class="container my-3">
{%- if page.show_ads -%}
{%- if page.show_ads -%}
<section class="container my-3">
{%- include ads.html ad_src="google-adsense" ad_type="display" -%}
{%- endif -%}
</section>
{%- include ads.html ad_src="adsterra" ad_type="ad_native_banner" -%}
</section>
{%- endif -%}

{{ content }}
</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>
4 changes: 4 additions & 0 deletions docs/_pages/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ feature_rows:
Lone Wolf Theme is a simple bootstrap based jekyll theme created by
[manid2][2].

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

It is infamous for abstracting away the frontend code using [Bootstrap 4][bs4]
and [Bootswatch wrappers][bootswatch] to help us focus on the
<span class="badge badge-primary">content</span> and the
Expand Down Expand Up @@ -98,3 +100,5 @@ Use the link to learn how to [contribute][3] to LWT.
[1]: https://manid2.github.io/lone-wolf-theme/
[2]: https://manid2.gitlab.io/
[3]: {{ '/contribute/' | relative_url }}

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

0 comments on commit 622c07c

Please sign in to comment.