Skip to content

Commit

Permalink
remove google ads
Browse files Browse the repository at this point in the history
  • Loading branch information
bojieli committed Jan 21, 2025
1 parent 907ba5d commit 837b7e7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
4 changes: 0 additions & 4 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ def page_not_found(e):
def page_not_found(e):
return render_template('error-page.html', code=502), 502

@app.route('/ads.txt')
def serve_ads_txt():
return 'google.com, pub-2875393290104787, DIRECT, f08c47fec0942fa0', 200, {'Content-Type': 'text/plain'}

from app.views import *
app.register_blueprint(home,url_prefix='')
app.register_blueprint(course,url_prefix='/course')
Expand Down
13 changes: 0 additions & 13 deletions app/templates/course.html
Original file line number Diff line number Diff line change
Expand Up @@ -599,19 +599,6 @@ <h4 class="blue">{{ teacher.name }}老师的其他课</h5>
{% endfor %}
</div>
{% endfor %}

<!-- 广告 -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2875393290104787"
crossorigin="anonymous"></script>
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-2875393290104787"
data-ad-slot="3157156159"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div> <!-- row -->
</div> <!-- float-element -->
Expand Down

0 comments on commit 837b7e7

Please sign in to comment.