Skip to content

Commit beecbe7

Browse files
committed
add Ads to docs
1 parent 4e48628 commit beecbe7

4 files changed

Lines changed: 74 additions & 24 deletions

File tree

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ services:
44
- docker
55

66
env:
7-
matrix:
7+
matrix:
8+
- HUGO_VERSION=0.20.2
9+
810
- PHP_VERSION=56 BUILD_SERVICE="applications blackfire minio percona nginx caddy apache2 mysql mariadb phpmyadmin postgres postgres-postgis pgadmin neo4j mongo redis"
911
- PHP_VERSION=70 BUILD_SERVICE="applications blackfire minio percona nginx caddy apache2 mysql mariadb phpmyadmin postgres postgres-postgis pgadmin neo4j mongo redis"
1012
- PHP_VERSION=71 BUILD_SERVICE="applications blackfire minio percona nginx caddy apache2 mysql mariadb phpmyadmin postgres postgres-postgis pgadmin neo4j mongo redis"
@@ -37,8 +39,6 @@ env:
3739
- PHP_VERSION=70 BUILD_SERVICE="memcached beanstalkd beanstalkd-console rabbitmq adminer elasticsearch certbot mailhog maildev selenium jenkins proxy proxy2 balancer"
3840
- PHP_VERSION=71 BUILD_SERVICE="memcached beanstalkd beanstalkd-console rabbitmq adminer elasticsearch certbot mailhog maildev selenium jenkins proxy proxy2 balancer"
3941

40-
- HUGO_VERSION=0.20.2
41-
4242
# Installing a newer Docker version
4343
before_install:
4444
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

DOCUMENTATION/themes/hugo-material-docs/layouts/_default/single.html

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,25 @@
2020
<main class="main">
2121
<div class="drawer">
2222
{{ partial "drawer" . }}
23-
</div>
23+
</div>
2424

2525
<article class="article">
2626
<div class="wrapper">
27-
<h1>{{ .Title }} {{ if .IsDraft }} (Draft){{ end }}</h1>
27+
28+
<!-- ------------------------------------------------------------------------- -->
29+
<!-- Google Ads -->
30+
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
31+
<!-- Laradock Horizontal -->
32+
<ins class="adsbygoogle"
33+
style="display:inline-block;width:890px;height:100px"
34+
data-ad-client="ca-pub-9826129398689742"
35+
data-ad-slot="2340256024"></ins>
36+
<script>
37+
(adsbygoogle = window.adsbygoogle || []).push({});
38+
</script>
39+
<!-- ------------------------------------------------------------------------- -->
40+
41+
<h1>{{ .Title }} {{ if .IsDraft }} (Draft){{ end }}</h1>
2842

2943
{{ .Content }}
3044

DOCUMENTATION/themes/hugo-material-docs/layouts/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@
2424

2525
<article class="article">
2626
<div class="wrapper">
27+
28+
<!-- ------------------------------------------------------------------------- -->
29+
<!-- Google Ads -->
30+
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
31+
<!-- Laradock Horizontal -->
32+
<ins class="adsbygoogle"
33+
style="display:inline-block;width:890px;height:100px"
34+
data-ad-client="ca-pub-9826129398689742"
35+
data-ad-slot="2340256024"></ins>
36+
<script>
37+
(adsbygoogle = window.adsbygoogle || []).push({});
38+
</script>
39+
<!-- ------------------------------------------------------------------------- -->
40+
2741
{{ range where .Site.Pages "Type" "index" }}
2842
<h1>{{ .Title }} {{ if .IsDraft }} (Draft){{ end }}</h1>
2943

DOCUMENTATION/themes/hugo-material-docs/layouts/partials/drawer.html

Lines changed: 41 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,39 @@
4242
</ul>
4343
{{ end }}
4444

45-
{{ if isset .Site.Params "author" }}
45+
46+
<br>
47+
<br>
48+
<div>
49+
<!-- ------------------------------------------------------------------------- -->
50+
<!-- Google Ads -->
51+
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
52+
<!-- Laradock Vertical -->
53+
<ins class="adsbygoogle"
54+
style="display:inline-block;width:237px;height:600px"
55+
data-ad-client="ca-pub-9826129398689742"
56+
data-ad-slot="9891442983"></ins>
57+
<script>
58+
(adsbygoogle = window.adsbygoogle || []).push({});
59+
</script>
60+
<!-- ------------------------------------------------------------------------- -->
61+
</div>
62+
<br>
63+
<br>
64+
65+
66+
<!--{{ if isset .Site.Params "author" }}-->
4667
<!--<hr>-->
4768
<!--<span class="section">The author</span>-->
48-
49-
<ul>
50-
{{ with .Site.Social.twitter }}
51-
<li>
52-
<a href="https://twitter.com/{{ . }}" target="_blank" title="@{{ . }} on Twitter">
53-
@{{ . }} on Twitter
54-
</a>
55-
</li>
56-
{{ end }}
69+
<!---->
70+
<!--<ul>-->
71+
<!--{{ with .Site.Social.twitter }}-->
72+
<!--<li>-->
73+
<!--<a href="https://twitter.com/{{ . }}" target="_blank" title="@{{ . }} on Twitter">-->
74+
<!--@{{ . }} on Twitter-->
75+
<!--</a>-->
76+
<!--</li>-->
77+
<!--{{ end }}-->
5778

5879
<!--{{ with .Site.Social.github }}-->
5980
<!--<li>-->
@@ -63,16 +84,17 @@
6384
<!--</li>-->
6485
<!--{{ end }}-->
6586

66-
{{ with .Site.Social.email }}
67-
<li>
68-
<a href="mailto:{{ . }}" title="Email of {{ . }}">
69-
Contact via email
70-
</a>
71-
</li>
72-
{{ end }}
73-
</ul>
74-
{{ end }}
87+
<!--{{ with .Site.Social.email }}-->
88+
<!--<li>-->
89+
<!--<a href="mailto:{{ . }}" title="Email of {{ . }}">-->
90+
<!--Contact via email-->
91+
<!--</a>-->
92+
<!--</li>-->
93+
<!--{{ end }}-->
94+
<!--</ul>-->
95+
<!--{{ end }}-->
7596
</div>
97+
7698
</div>
7799
</div>
78100
</nav>

0 commit comments

Comments
 (0)