diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-01-26 11:38:51 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-01-26 11:38:51 +0100 |
| commit | 23542c9a37a18f1d18c7739241bdef19c0be0124 (patch) | |
| tree | f88de3d0b36530daaf33dd5a8564086375656b29 /themes/bare/layouts/partials/footer.html | |
| parent | d95fc5ca9e6a9c28894514b77e77b6b0eb58fbe9 (diff) | |
| download | mitjafelicijan.com-23542c9a37a18f1d18c7739241bdef19c0be0124.tar.gz | |
Removal of bare theme
Diffstat (limited to 'themes/bare/layouts/partials/footer.html')
| -rwxr-xr-x | themes/bare/layouts/partials/footer.html | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/themes/bare/layouts/partials/footer.html b/themes/bare/layouts/partials/footer.html deleted file mode 100755 index ced622d..0000000 --- a/themes/bare/layouts/partials/footer.html +++ /dev/null | |||
| @@ -1,54 +0,0 @@ | |||
| 1 | <footer style="margin-top:20px"> | ||
| 2 | <small> | ||
| 3 | This website does not track you. | ||
| 4 | Content is made available under the <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noreferrer" class="underline hover:text-gray-800">CC BY 4.0 license</a> unless specified otherwise. | ||
| 5 | Blog feed is available as <a href="/index.xml" target="_blank" class="underline hover:text-gray-800">RSS</a> feed. | ||
| 6 | </small> | ||
| 7 | </footer> | ||
| 8 | |||
| 9 | <!-- Fathom - beautiful, simple website analytics --> | ||
| 10 | <script src="https://cdn.usefathom.com/script.js" data-site="XHQARKXP" defer></script> | ||
| 11 | |||
| 12 | {{ if ne .IsHome true }} | ||
| 13 | <!-- KaTeX math library --> | ||
| 14 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.css" integrity="sha384-RZU/ijkSsFbcmivfdRBQDtwuwVqK7GMOw6IMvKyeWL2K5UAlyp6WonmB8m7Jd0Hn" crossorigin="anonymous"> | ||
| 15 | <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/katex.min.js" integrity="sha384-pK1WpvzWVBQiP0/GjnvRxV4mOb0oxFuyRxJlk6vVw146n3egcN5C925NCP7a7BY8" crossorigin="anonymous"></script> | ||
| 16 | <script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.13/dist/contrib/auto-render.min.js" integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script> | ||
| 17 | {{ end }} | ||
| 18 | |||
| 19 | {{ if ne .IsHome true }} | ||
| 20 | <!-- Lazy loading of iframes --> | ||
| 21 | <script> | ||
| 22 | window.addEventListener('load', () => { | ||
| 23 | const iframes = document.querySelectorAll('.ll-iframe'); | ||
| 24 | |||
| 25 | if (iframes) { | ||
| 26 | iframes.forEach(iframe => { | ||
| 27 | iframe.addEventListener('click', (evt) => { | ||
| 28 | // If there are no elements yet in the target element add iframe. | ||
| 29 | if (!evt.target.dataset.alreadyLoaded) { | ||
| 30 | // Setting this element as already loaded so it doesn't | ||
| 31 | // attempt to load it again. | ||
| 32 | evt.target.dataset.alreadyLoaded = true; | ||
| 33 | |||
| 34 | // Clearing up all existing elements inside of the target one. | ||
| 35 | evt.target.innerHTML = ''; | ||
| 36 | evt.target.classList.add('empty'); | ||
| 37 | evt.target.classList.add('border-0'); | ||
| 38 | |||
| 39 | // Creating iframe DOM element. | ||
| 40 | const iframeElement = document.createElement('iframe'); | ||
| 41 | iframeElement.classList.add('w-full'); | ||
| 42 | iframeElement.classList.add('h-full'); | ||
| 43 | iframeElement.classList.add('rounded'); | ||
| 44 | iframeElement.src = evt.target.dataset.src; | ||
| 45 | |||
| 46 | // Appending iframe as a child of current element. | ||
| 47 | evt.target.appendChild(iframeElement); | ||
| 48 | } | ||
| 49 | }); | ||
| 50 | }); | ||
| 51 | } | ||
| 52 | }); | ||
| 53 | </script> | ||
| 54 | {{ end }} | ||
