Skip to content

Commit e366ef9

Browse files
committed
feat: add main-bottom/custom.html, update googlead for doc
1 parent 9b4d98f commit e366ef9

File tree

12 files changed

+39
-36
lines changed

12 files changed

+39
-36
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ rvm:
44
branches:
55
only:
66
- master
7-
before_script: cp docs/_layouts/*.html _layouts/
7+
before_script: cp -rfv docs/_includes .
88
script: JEKYLL_ENV=production bundle exec jekyll build --config ./docs/_config.yml
99
deploy:
1010
provider: pages
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- start custom analytics snippet -->
2+
3+
<!-- end custom analytics snippet -->

_includes/article-footer/custom.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
<!-- this will show at every article content's bottom -->
1+
<!-- start custom article footer snippet -->
2+
3+
<!-- end custom article footer snippet -->

_includes/head/custom.html

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- start custom head snippets -->
2+
3+
<!-- end custom head snippets -->

_includes/head/favicon.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- start favicons snippet, use https://realfavicongenerator.net/ -->
12
{%- include snippets/prepend-baseurl.html path='/assets/apple-touch-icon.png' -%}
23
<link rel="apple-touch-icon" sizes="180x180" href="{{ __return }}">
34

@@ -21,4 +22,5 @@
2122
{%- include snippets/prepend-baseurl.html path='/assets/browserconfig.xml' -%}
2223
<meta name="msapplication-config" content="{{ __return }}">
2324

24-
<meta name="theme-color" content="#ffffff">
25+
<meta name="theme-color" content="#ffffff">
26+
<!-- end favicons snippet -->

_includes/main-bottom/custom.html

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- start custom main bottom snippet -->
2+
3+
<!-- end custom main bottom snippet -->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- start custom page snippet (for Home layout) -->
2+
3+
<!-- end custom page snippet (for Home layout) -->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- start custom page snippet (for the post) -->
2+
3+
<!-- end custom page snippet (for the post) -->

_layouts/page.html

+1
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@
214214
<section class="page__comments d-print-none">{%- include comments.html -%}</section>
215215
{%- endif -%}
216216
</article>
217+
{%- include main-bottom/custom.html -%}
217218
</div>
218219
</div>
219220

_sass/custom.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/* start custom scss snippet */
2+
3+
/* end custom scss snippet */
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<div align="center" style="margin: 1rem 0;">
2+
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
3+
<!-- Bottom -->
4+
<ins class="adsbygoogle"
5+
style="display:block"
6+
data-ad-client="ca-pub-2188963715533895"
7+
data-ad-slot="3246761084"
8+
data-ad-format="auto"
9+
data-full-width-responsive="true"></ins>
10+
<script>
11+
(adsbygoogle = window.adsbygoogle || []).push({});
12+
</script>
13+
</div>

docs/_layouts/base.html

-33
This file was deleted.

0 commit comments

Comments
 (0)