Serve extra jss or css from the page frontmatter. Much cleaner.
This commit is contained in:
parent
407ff4b6e9
commit
12e9d62059
141 changed files with 645 additions and 1849 deletions
|
|
@ -1,56 +0,0 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block site_meta %}
|
||||
<meta name="robots"
|
||||
content="nocache, noindex, noimageindex, nofollow, noarchive, nosnippet, notranslate, nositelinkssearchbox, noai, noimageai" />
|
||||
{% endblock %}
|
||||
|
||||
{% block analytics %}
|
||||
<!-- Analytics tracking script -->
|
||||
<script>
|
||||
window.op = window.op || function () { var n = []; return new Proxy(function () { arguments.length && n.push([].slice.call(arguments)) }, { get: function (t, r) { return "q" === r ? n : function () { n.push([r].concat([].slice.call(arguments))) } }, has: function (t, r) { return "q" === r } }) }();
|
||||
window.op('init', {
|
||||
clientId: '4148df94-31a3-47ee-b998-6de681efcbd5',
|
||||
trackScreenViews: true,
|
||||
trackOutgoingLinks: true,
|
||||
trackAttributes: true,
|
||||
});
|
||||
</script>
|
||||
<script src="https://analytics.gugulet.hu/op1.js" defer async></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
<!-- Script to protect content on the website -->
|
||||
<script>
|
||||
// Prevent right-click context menu
|
||||
document.addEventListener('contextmenu', function (e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
// Prevent text selection
|
||||
document.addEventListener('selectstart', function (e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
// Block Ctrl+C and other keyboard shortcuts for copying
|
||||
document.addEventListener('keydown', function (e) {
|
||||
if (e.ctrlKey && e.key === 'c') { // Blocks Ctrl+C
|
||||
e.preventDefault();
|
||||
}
|
||||
if (e.ctrlKey && e.shiftKey && e.key === 'v') { // Blocks Ctrl+Shift+V
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
// Additional measures for image protection
|
||||
document.addEventListener('contextmenu', function (e) {
|
||||
if (e.target.tagName.toLowerCase() === 'img') {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue