Skip to content

Commit

Permalink
Had adblock on so much didn't realize the theme came with ads...
Browse files Browse the repository at this point in the history
  • Loading branch information
trwbox committed Sep 25, 2022
1 parent dca2e62 commit 31a5577
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 37 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ group :jekyll_plugins do
gem "jemoji"
gem "jekyll-include-cache"
gem "jekyll-algolia"
#gem 'jekyll-pdf', :git => 'https://github.com/jekyll-pdf/jekyll-pdf.git', :branch => 'master'
end
4 changes: 1 addition & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ baidu_site_verification :
# Analytics
analytics:
provider : # false (default), "google", "google-universal", "google-gtag", "custom"
google:
tracking_id : # Replace this with your ID, or delete
anonymize_ip : true


# Site Author
Expand Down Expand Up @@ -252,6 +249,7 @@ plugins:
- jemoji
- jekyll-include-cache
- jekyll-redirect-from
#- jekyll-pdf

# mimic GitHub Pages with --safe
whitelist:
Expand Down
15 changes: 0 additions & 15 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@

<div class="initial-content">
{{ content }}
<div align="center" style="margin: 1em 0;">
<ins class="adsbygoogle"
style="display:block; border-bottom: initial;"
data-ad-client="ca-pub-7328585512091257"
data-ad-slot="3049671934"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
</div>
</div>

{% if site.search == true %}
Expand All @@ -45,13 +37,6 @@
</div>

{% include scripts.html %}
<style>
.google-auto-placed {
margin: 2em auto;
}
</style>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>

</body>
</html>
3 changes: 3 additions & 0 deletions _layouts/pdf.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
layout: resume
---
8 changes: 0 additions & 8 deletions _layouts/resume.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,6 @@ <h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4
{% comment %}<!-- only show related on a post page when `related: true` -->{% endcomment %}
{% if page.id and page.related and site.related_posts.size > 0 %}
<div class="page__related">
<div align="center" style="margin: 1em 0;">
<ins class="adsbygoogle"
style="display:block; border-bottom: initial;"
data-ad-client="ca-pub-7328585512091257"
data-ad-slot="3049671934"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
</div>
<h2 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h2>
<div class="grid__wrapper">
{% for post in site.related_posts limit:4 %}
Expand Down
8 changes: 0 additions & 8 deletions _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ <h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4
{% comment %}<!-- only show related on a post page when `related: true` -->{% endcomment %}
{% if page.id and page.related and site.related_posts.size > 0 %}
<div class="page__related">
<div align="center" style="margin: 1em 0;">
<ins class="adsbygoogle"
style="display:block; border-bottom: initial;"
data-ad-client="ca-pub-7328585512091257"
data-ad-slot="3049671934"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
</div>
<h2 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h2>
<div class="grid__wrapper">
{% for post in site.related_posts limit:4 %}
Expand Down
4 changes: 1 addition & 3 deletions _sass/minimal-mistakes/_print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,13 @@
.page__share,
.page__related,
.pagination,
.ads,
.page__footer,
.page__comments-form,
.author__avatar,
.author__content,
.author__urls-wrapper,
.nav__list,
.sidebar,
.adsbygoogle {
.sidebar {
display: none !important;
height: 1px !important;
}
Expand Down

0 comments on commit 31a5577

Please sign in to comment.