Adding deploy folder.
This commit is contained in:
parent
b62f4a7d41
commit
d460a35d31
121 changed files with 3133 additions and 0 deletions
0
deploy/overrides/404.html
Executable file
0
deploy/overrides/404.html
Executable file
16
deploy/overrides/chapter.html
Executable file
16
deploy/overrides/chapter.html
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
{% extends "main.html" %}
|
||||
|
||||
<!-- Use the chapter CSS on this page (in addition to the normal CSS) -->
|
||||
{% block styles %}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/css/chapter.css">
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
{% endblock %}
|
||||
78
deploy/overrides/main.html
Executable file
78
deploy/overrides/main.html
Executable file
|
|
@ -0,0 +1,78 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block extrahead %}
|
||||
<link rel="icon" href="../assets/media/face-favicon-512x512.png" sizes="any">
|
||||
{% endblock %}
|
||||
|
||||
{% block site_meta %}
|
||||
<meta name="robots"
|
||||
content="nocache, noindex, noimageindex, nofollow, noarchive, nosnippet, notranslate, nositelinkssearchbox, noai, noimageai" />
|
||||
{% endblock %}
|
||||
|
||||
<!-- Use the extra_css value from a page's frontmatter -->
|
||||
{% block styles %}
|
||||
|
||||
{{ super() }}
|
||||
|
||||
{% if page.meta.extra_css %}
|
||||
{% for path in page.meta.extra_css %}
|
||||
<link rel="stylesheet" href="{{ path | url }}">
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
<!-- Analytics tracking script -->
|
||||
{% block analytics %}
|
||||
<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 %}
|
||||
|
||||
<!-- Use the extra_js values from a page's frontmatter -->
|
||||
{% for path in page.meta.extra_js or [] %}
|
||||
<script src="{{ path | url }}"></script>
|
||||
{% endfor %}
|
||||
|
||||
{{ 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 %}
|
||||
5
deploy/overrides/partials/footer.html
Executable file
5
deploy/overrides/partials/footer.html
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
<footer>
|
||||
<span>© all rights reserved</span>
|
||||
<span><a href="https://www.linkedin.com/in/gugulet-hu/">contact</a></span>
|
||||
<span>made with <a href="https://zensical.org/">zensical</a></span>
|
||||
</footer>
|
||||
Loading…
Add table
Add a link
Reference in a new issue