Skip to content

Commit 622c07c

Browse files
committed
feat: Add adsterra ads
1 parent 914b419 commit 622c07c

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

docs/_includes/ads.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
{%- case ad_src -%}
55
{%- when "google-adsense" -%}
66
{%- include google-adsense.html ad_type=ad_type -%}
7+
{%- when "adsterra" -%}
8+
{%- include adsterra.html ad_type=ad_native_banner -%}
79
{%- else -%}
810
No Ads
911
{: .lead}
10-
{%- endcase -%}
12+
{%- endcase -%}

docs/_includes/adsterra.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div id="container-9a0b7e3f5ef184780fa822e1002f7dbe"></div>

docs/_layouts/default.html

+11-6
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,23 @@
1414
{% include header.html %}
1515
<!-- page content -->
1616
<main class="page-content" role="main">
17-
{{ content }}
18-
19-
<section class="container my-3">
20-
{%- if page.show_ads -%}
17+
{%- if page.show_ads -%}
18+
<section class="container my-3">
2119
{%- include ads.html ad_src="google-adsense" ad_type="display" -%}
22-
{%- endif -%}
23-
</section>
20+
{%- include ads.html ad_src="adsterra" ad_type="ad_native_banner" -%}
21+
</section>
22+
{%- endif -%}
23+
24+
{{ content }}
2425
</main>
2526
<!-- page footer -->
2627
{% include footer.html %}
2728
</div>
2829
{% include scripts.html %}
30+
{%- if page.show_ads -%}
31+
<script type='text/javascript' src='//pl20220116.highcpmrevenuegate.com/7f/c4/72/7fc4729b41e6def7678efe899c1db986.js'></script>
32+
<script async="async" data-cfasync="false" src="//pl20260188.highcpmrevenuegate.com/9a0b7e3f5ef184780fa822e1002f7dbe/invoke.js"></script>
33+
{%- endif -%}
2934
</body>
3035

3136
</html>

docs/_pages/home.md

+4
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ feature_rows:
3939
Lone Wolf Theme is a simple bootstrap based jekyll theme created by
4040
[manid2][2].
4141

42+
[Click here for ad...][adsterra_dl]
43+
4244
It is infamous for abstracting away the frontend code using [Bootstrap 4][bs4]
4345
and [Bootswatch wrappers][bootswatch] to help us focus on the
4446
<span class="badge badge-primary">content</span> and the
@@ -98,3 +100,5 @@ Use the link to learn how to [contribute][3] to LWT.
98100
[1]: https://manid2.github.io/lone-wolf-theme/
99101
[2]: https://manid2.gitlab.io/
100102
[3]: {{ '/contribute/' | relative_url }}
103+
104+
[adsterra_dl]: https://www.highcpmrevenuegate.com/tk17ncqp?key=484c772258d73d54a528cc874518bfaa

0 commit comments

Comments
 (0)