Skip to content

Commit

Permalink
feat: add main-bottom/custom.html, update googlead for doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Dec 19, 2018
1 parent 9b4d98f commit e366ef9
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ rvm:
branches:
only:
- master
before_script: cp docs/_layouts/*.html _layouts/
before_script: cp -rfv docs/_includes .
script: JEKYLL_ENV=production bundle exec jekyll build --config ./docs/_config.yml
deploy:
provider: pages
Expand Down
3 changes: 3 additions & 0 deletions _includes/analytics-providers/custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- start custom analytics snippet -->

<!-- end custom analytics snippet -->
4 changes: 3 additions & 1 deletion _includes/article-footer/custom.html
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
<!-- this will show at every article content's bottom -->
<!-- start custom article footer snippet -->

<!-- end custom article footer snippet -->
3 changes: 3 additions & 0 deletions _includes/head/custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- start custom head snippets -->

<!-- end custom head snippets -->
4 changes: 3 additions & 1 deletion _includes/head/favicon.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- start favicons snippet, use https://realfavicongenerator.net/ -->
{%- include snippets/prepend-baseurl.html path='/assets/apple-touch-icon.png' -%}
<link rel="apple-touch-icon" sizes="180x180" href="{{ __return }}">

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

<meta name="theme-color" content="#ffffff">
<meta name="theme-color" content="#ffffff">
<!-- end favicons snippet -->
3 changes: 3 additions & 0 deletions _includes/main-bottom/custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- start custom main bottom snippet -->

<!-- end custom main bottom snippet -->
3 changes: 3 additions & 0 deletions _includes/pageview-providers/custom/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- start custom page snippet (for Home layout) -->

<!-- end custom page snippet (for Home layout) -->
3 changes: 3 additions & 0 deletions _includes/pageview-providers/custom/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- start custom page snippet (for the post) -->

<!-- end custom page snippet (for the post) -->
1 change: 1 addition & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@
<section class="page__comments d-print-none">{%- include comments.html -%}</section>
{%- endif -%}
</article>
{%- include main-bottom/custom.html -%}
</div>
</div>

Expand Down
3 changes: 3 additions & 0 deletions _sass/custom.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* start custom scss snippet */

/* end custom scss snippet */
13 changes: 13 additions & 0 deletions docs/_includes/main-bottom/custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div align="center" style="margin: 1rem 0;">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Bottom -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-2188963715533895"
data-ad-slot="3246761084"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
33 changes: 0 additions & 33 deletions docs/_layouts/base.html

This file was deleted.

0 comments on commit e366ef9

Please sign in to comment.