Skip to content

Commit be75f2c

Browse files
committed
feat: Add ads style, update example site
1 parent e815bcd commit be75f2c

File tree

9 files changed

+42
-0
lines changed

9 files changed

+42
-0
lines changed

assets/styles/_main.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,3 +480,11 @@ hr {
480480
border: none;
481481
}
482482
}
483+
484+
.ads {
485+
margin: $spacer-normal 0;
486+
487+
@media print {
488+
display: none;
489+
}
490+
}

exampleSite/content/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ This is the demo example site for [manid2/hugo-xterm][1] theme.
1212
[![LICENSE][hx_lic_img]][hx_lic_link]
1313
[![Build][hx_ci_build_img]][hx_ci_build_link]
1414

15+
{{< ads >}}
16+
1517
[1]: https://github.com/manid2/hugo-xterm
1618

1719
[hx_ci_build_img]: https://img.shields.io/github/actions/workflow/status/manid2/hugo-xterm/hugo.yaml?logo=github "Hugo Xterm build status badge"

exampleSite/content/about.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ toc = false
66

77
Hugo theme designed for reading and printing text with dark and light modes.
88

9+
{{< ads >}}
10+
911
Features
1012
--------
1113

14+
{{< ads >}}
15+
1216
### Distinguishing features
1317

1418
* Designed for __reading__ and __printing__ text.
@@ -28,6 +32,8 @@ Features
2832
from the [HSL colors][8].
2933
* Website banner is supported.
3034

35+
{{< ads >}}
36+
3137
### Adopted features
3238

3339
* Minimal configuration.
@@ -44,6 +50,8 @@ Features
4450
* Tightly coupled with Hugo extended latest version (v1.110.0) to compile and
4551
generate asset bundles with pipelines, fingerprinting and minification.
4652

53+
{{< ads >}}
54+
4755
### Other features
4856

4957
These are supported due to [panr/terminal][1] theme base code but not
@@ -53,6 +61,8 @@ tested as I don't use them myself:
5361
* Images in post with caption.
5462
* Comments.
5563

64+
{{< ads >}}
65+
5666
Installation
5767
------------
5868

@@ -69,6 +79,8 @@ Local development
6979
hugo server --source exampleSite
7080
```
7181

82+
{{< ads >}}
83+
7284
Credits
7385
-------
7486

@@ -87,6 +99,8 @@ License
8799

88100
[GNU General Public License v3.0][11]
89101

102+
{{< ads >}}
103+
90104
[1]: https://github.com/panr/hugo-theme-terminal
91105
[2]: https://github.com/adityatelange/hugo-PaperMod
92106
[3]: https://github.com/kaitlinmctigue/kaitlinmctigue.github.io

exampleSite/content/docs/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ author = "Mani Kumar"
1010

1111
This page shows the list of items which are not articles and don't need a
1212
date, author and other meta data associated. They are like simple documents.
13+
14+
{{< ads >}}

exampleSite/content/docs/commands/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ description = "Linux developer commands collection"
44
date = "2023-07-15"
55
author = "Mani Kumar"
66
+++
7+
8+
{{< ads >}}

exampleSite/content/posts/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ description = "Blog posts"
44
date = "2023-07-15"
55
author = "Mani Kumar"
66
+++
7+
8+
{{< ads >}}

exampleSite/content/slides/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ description = "hugo-xterm slides using reveal.js"
44
date = "2022-07-15"
55
author = "Mani Kumar"
66
+++
7+
8+
{{< ads >}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="ads">
2+
<ins class="adsbygoogle"
3+
style="display:block"
4+
data-ad-format="fluid"
5+
data-ad-layout-key="-6u+dg+44-5g+2z"
6+
data-ad-client="ca-pub-3938072282835038"
7+
data-ad-slot="6755194002">
8+
</ins>
9+
</div>

exampleSite/static/ads.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
google.com, pub-3938072282835038, DIRECT, f08c47fec0942fa0

0 commit comments

Comments
 (0)