Skip to content

Commit

Permalink
feat: add google ad
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Sep 26, 2018
1 parent 0a1af1c commit 41776d8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ rvm:
branches:
only:
- master
before_script: cp docs/_layouts/*.html _layouts/
script: JEKYLL_ENV=production bundle exec jekyll build --config ./docs/_config.yml
deploy:
edge:
branch: v1.8.47
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
Expand Down
2 changes: 1 addition & 1 deletion about.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ TeXt is a super customizable Jekyll theme for personal site, team site, blog, pr
- Highlight Theme
- Table of contents
- Authors
- Multi-language support(English, Simplified Chinese, Traditional Chinese)
- Multi-language support
- Search
- Semantic HTML
- RSS([jekyll-feed](https://github.com/jekyll/jekyll-feed))
Expand Down
30 changes: 30 additions & 0 deletions docs/_layouts/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
layout: none
---
<!DOCTYPE html>
{%- include snippets/get-lang.html -%}
<html lang="{{ __return }}">
<head>
{%- include analytics.html -%}
{%- include head.html -%}
<script>
{%- include scripts/utils.js -%}
{%- include scripts/lib/throttle.js -%}
{%- include scripts/lib/lazyload.js -%}
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-2188963715533895",
enable_page_level_ads: true
});
</script>
</script>
{%- include scripts/variables.html -%}
</head>
<body>
<div class="root" data-is-touch="false">
{{ content }}
</div>
<script>{%- include scripts/common.js -%}</script>
</body>
</html>

0 comments on commit 41776d8

Please sign in to comment.