Skip to content

Commit

Permalink
[add] close cookie consent
Browse files Browse the repository at this point in the history
  • Loading branch information
AIboy996 committed May 19, 2024
1 parent 3f7dd9a commit bb76c07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ markdown_extensions:
extra_css:
- assets/stylesheets/extra.css
- assets/stylesheets/termynal.css
- https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css

extra_javascript:
# 百度的页面访问统计【暂时移除百度的访问统计(加载实在是有点慢】
Expand Down
3 changes: 2 additions & 1 deletion overrides/partials/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ <h1>{{ page.title | d(config.site_name, true)}}</h1>
</div>

<!-- cookie -->
<div class="cookie-message">
<div class="cookie-message" id="cookie">
<img src="/assets/images/cookie.png">
<span>I am using cookies to provide you the best possible experience. But don't panic - I won't share any of your data. You can find more informations about the cookies <a href="/About">here</a>.</span>
<a class="close" href="#" onclick="var element = document.getElementById('cookie'); element.parentNode.removeChild(element);"><i class="fa fa-times"></i></a>
</div>

{% endif %}
Expand Down

0 comments on commit bb76c07

Please sign in to comment.