Allow disabling oneko, hide from mobile view, resolves #4
This commit is contained in:
parent
00f7157d31
commit
02cc2a94b9
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -333,6 +333,11 @@ hr {
|
|||
grid-template-columns: 1fr;
|
||||
row-gap: calc(var(--gap) * 2);
|
||||
}
|
||||
|
||||
/* Hide oneko for mobile view */
|
||||
#oneko {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Article
|
||||
|
|
|
@ -66,7 +66,10 @@
|
|||
{{/is}}
|
||||
|
||||
<script src="{{asset "built/main.min.js"}}"></script>
|
||||
<script src="{{asset "js/oneko.js"}}"></script>
|
||||
|
||||
{{#if @custom.oneko}}
|
||||
<script src="{{asset "js/oneko.js"}}"></script>
|
||||
{{/if}}
|
||||
|
||||
{{ghost_foot}}
|
||||
|
||||
|
|
|
@ -58,9 +58,9 @@
|
|||
"type": "text",
|
||||
"default": "Contact me!"
|
||||
},
|
||||
"email_address_encrypted_with_rot13": {
|
||||
"email_address": {
|
||||
"type": "text",
|
||||
"default": "https://rot13.com/"
|
||||
"description": "Email address will be decoded from ROT13. This is done to prevent bot scraping. https://rot13.com/"
|
||||
},
|
||||
"mastodon_link": {
|
||||
"type": "text"
|
||||
|
@ -70,6 +70,11 @@
|
|||
},
|
||||
"linkedin_contact": {
|
||||
"type": "text"
|
||||
},
|
||||
"oneko": {
|
||||
"type": "boolean",
|
||||
"description": "Toggle the cat that chases the visitor's mouse",
|
||||
"default": true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<div class="social-media">
|
||||
{{#if @custom.email_address_encrypted_with_rot13}}
|
||||
{{#if @custom.email_address}}
|
||||
{{!-- Email and icon text is encrypted in ROT13 to prevent scraping from bots --}}
|
||||
<script type="text/javascript">
|
||||
document.write("<n pynff=\"fbpvny-vpba\" nyg=\"Rznvy\" uers=\"znvygb:{{@custom.email_address_encrypted_with_rot13}}\"> <fit kzyaf=\"uggc://jjj.j3.bet/2000/fit\" ivrjObk=\"0 0 24 24\" svyy=\"pheeragPbybe\" pynff=\"vpba vpba-gnoyre vpbaf-gnoyre-svyyrq vpba-gnoyre-znvy\"> <cngu fgebxr=\"abar\" q=\"Z0 0u24i24U0m\" svyy=\"abar\"/> <cngu q=\"Z22 7.535i9.465n3 3 0 0 1 -2.824 2.995y-.176 .005u-14n3 3 0 0 1 -2.995 -2.824y-.005 -.176i-9.465y9.445 6.297y.116 .066n1 1 0 0 0 .878 0y.116 -.066y9.445 -6.297m\" /> <cngu q=\"Z19 4p1.08 0 2.027 .57 2.555 1.427y-9.555 6.37y-9.555 -6.37n2.999 2.999 0 0 1 2.354 -1.42y.201 -.007u14m\"/> </fit> </n>".replace(/[a-zA-Z]/g,
|
||||
document.write("<n pynff=\"fbpvny-vpba\" nyg=\"Rznvy\" uers=\"znvygb:{{@custom.email_address}}\"> <fit kzyaf=\"uggc://jjj.j3.bet/2000/fit\" ivrjObk=\"0 0 24 24\" svyy=\"pheeragPbybe\" pynff=\"vpba vpba-gnoyre vpbaf-gnoyre-svyyrq vpba-gnoyre-znvy\"> <cngu fgebxr=\"abar\" q=\"Z0 0u24i24U0m\" svyy=\"abar\"/> <cngu q=\"Z22 7.535i9.465n3 3 0 0 1 -2.824 2.995y-.176 .005u-14n3 3 0 0 1 -2.995 -2.824y-.005 -.176i-9.465y9.445 6.297y.116 .066n1 1 0 0 0 .878 0y.116 -.066y9.445 -6.297m\" /> <cngu q=\"Z19 4p1.08 0 2.027 .57 2.555 1.427y-9.555 6.37y-9.555 -6.37n2.999 2.999 0 0 1 2.354 -1.42y.201 -.007u14m\"/> </fit> </n>".replace(/[a-zA-Z]/g,
|
||||
function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);}));
|
||||
</script>
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in New Issue