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