Skip to content

Commit adcf326

Browse files
committed
feat: add an adsense slot
1 parent 0487af3 commit adcf326

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

assets/css/output.css

+5
Original file line numberDiff line numberDiff line change
@@ -3503,6 +3503,11 @@ html {
35033503
padding-right: 1rem;
35043504
}
35053505

3506+
.px-5 {
3507+
padding-left: 1.25rem;
3508+
padding-right: 1.25rem;
3509+
}
3510+
35063511
.py-12 {
35073512
padding-top: 3rem;
35083513
padding-bottom: 3rem;

layouts/_default/single.html

+6
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@
3939
{{ if site.Params.showTableOfContents }}
4040
<div class="absolute right-0 lg:w-36 xl:w-48 hidden lg:block" :style="{ height }">
4141
{{ .TableOfContents }}
42+
43+
<div class="dream-adsense px-5">
44+
{{ if fileExists "layouts/partials/adsense.html" }}
45+
{{ partialCached "adsense.html" . }}
46+
{{ end }}
47+
</div>
4248
</div>
4349
{{ end }}
4450
<article class="mx-auto prose prose-quoteless dark:prose-invert" id="dream-single-post-main" itemscope itemtype="http://schema.org/Article">

0 commit comments

Comments
 (0)