Skip to content

Commit 1d61677

Browse files
committed
chore: test ads
1 parent 47867df commit 1d61677

File tree

3 files changed

+27
-33
lines changed

3 files changed

+27
-33
lines changed

_includes/ads-panel.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<section class="ads-panel">
2+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2989869646477878" crossorigin="anonymous"></script>
3+
<!-- merox.dev ads section -->
4+
<ins class="adsbygoogle"
5+
style="display:block"
6+
data-ad-client="ca-pub-2989869646477878"
7+
data-ad-slot="3183113175"
8+
data-ad-format="auto"
9+
data-full-width-responsive="true"></ins>
10+
<script>
11+
(adsbygoogle = window.adsbygoogle || []).push({});
12+
</script>
13+
</section>

_layouts/post.html

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
refactor: true
44
panel_includes:
55
- toc
6+
- ads-panel
67
tail_includes:
78
- related-posts
89
- post-nav
@@ -176,19 +177,4 @@ <h1 data-toc-skip>{{ page.title }}</h1>
176177
<!-- .post-tail-bottom -->
177178
</div>
178179
<!-- div.post-tail-wrapper -->
179-
180-
<!-- Google Ads -->
181-
<div class="ads-section mt-4">
182-
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2989869646477878" crossorigin="anonymous"></script>
183-
<!-- merox.dev ads section -->
184-
<ins class="adsbygoogle"
185-
style="display:block"
186-
data-ad-client="ca-pub-2989869646477878"
187-
data-ad-slot="3183113175"
188-
data-ad-format="auto"
189-
data-full-width-responsive="true"></ins>
190-
<script>
191-
(adsbygoogle = window.adsbygoogle || []).push({});
192-
</script>
193-
</div>
194180
</article>

_sass/layout/_panel.scss

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@
2020
&:not(:first-child) {
2121
margin-top: 4rem;
2222
}
23+
24+
&.ads-panel {
25+
padding: 1rem;
26+
text-align: center;
27+
background-color: var(--panel-bg, #ffffff);
28+
border-radius: 0.25rem;
29+
30+
.adsbygoogle {
31+
max-width: 100%;
32+
width: 100%;
33+
overflow: hidden;
34+
}
35+
}
2336
}
2437

2538
.content {
@@ -67,22 +80,4 @@
6780

6881
@extend %no-bottom-border;
6982
}
70-
}
71-
72-
/* 🔥 Stil personalizat pentru reclamele AdSense */
73-
.ads-section {
74-
margin-top: 2rem;
75-
padding: 1rem;
76-
background-color: var(--main-bg);
77-
border: 1px solid var(--border-color);
78-
border-radius: 0.75rem;
79-
box-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 5%);
80-
text-align: center;
81-
82-
ins.adsbygoogle {
83-
display: block !important;
84-
margin: auto;
85-
min-height: 100px;
86-
width: 100%;
87-
}
8883
}

0 commit comments

Comments
 (0)