You've already forked Ghost-Theme-Casper
Pull jquery script local. Add Ko-fi button.
Add integrity values to CSS and JS files.
This commit is contained in:
25
default.hbs
25
default.hbs
@@ -11,7 +11,18 @@
|
||||
|
||||
{{!-- Theme assets - use the {asset} helper to reference styles & scripts,
|
||||
this will take care of caching and cache-busting automatically --}}
|
||||
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
type="text/css"
|
||||
href="{{asset "built/screen.css"}}"
|
||||
integrity="sha256-2l5cwMuCBQRU/srZKHttk1BMLTWpxpmy38/KvszGjRQ=" />
|
||||
|
||||
{{!-- Ko-fi Widget script --}}
|
||||
<script
|
||||
type="text/javascript"
|
||||
src="{{asset "js/lib/ko-fi-widget_v2.js"}}"
|
||||
integrity="sha256-vIzHU2v5TQMAT6IcQFoigYePsSlqYanf61XMJ6U8bKE="
|
||||
></script>
|
||||
|
||||
{{!-- This tag outputs all your advanced SEO meta, structured data, and other important settings,
|
||||
it should always be the last tag before the closing head tag --}}
|
||||
@@ -53,6 +64,7 @@
|
||||
{{#if @site.twitter}}
|
||||
<a class="gh-social-link gh-social-twitter" href="{{twitter_url @site.twitter}}" title="Twitter" target="_blank" rel="me noopener">{{> "icons/twitter"}}</a>
|
||||
{{/if}}
|
||||
<script type='text/javascript'>kofiwidget2.init('Buy me a coffee', '#0a0b0c', 'K3K0G2FVA');kofiwidget2.draw();</script>
|
||||
</div>
|
||||
{{#if @site.members_enabled}}
|
||||
{{#unless @member}}
|
||||
@@ -87,11 +99,14 @@
|
||||
|
||||
{{!-- Scripts - handle member signups, responsive videos, infinite scroll, floating headers, and galleries --}}
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.5.1.min.js"
|
||||
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
|
||||
crossorigin="anonymous">
|
||||
src="{{asset "js/lib/jquery-3.5.1.min.js"}}"
|
||||
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=">
|
||||
</script>
|
||||
<script src="{{asset "built/casper.js"}}"></script>
|
||||
<script
|
||||
src="{{asset "built/casper.js"}}"
|
||||
integrity="sha256-fYSmAq1sXUPZ7kf709oLgEa58NkM60ut+VNQJpnb10g=">
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
// Mobile Menu Trigger
|
||||
|
||||
Reference in New Issue
Block a user