mirror of
https://github.com/Xevion/undefined.behavio.rs.git
synced 2025-12-12 07:11:44 -06:00
Fix unused imports, fix weird compiler parser breaking on commented JS comments
This commit is contained in:
@@ -85,22 +85,23 @@ const titleTag = title != undefined ? `${title} | xevion.blog` : 'xevion.blog';
|
|||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</body>
|
</body>
|
||||||
<!-- <script type="text/javascript"> -->
|
<!-- <script type="text/javascript">
|
||||||
<!-- /** Is all of this too much effort to make the animation play in just the right way? **/ -->
|
Is all of this too much effort to make the animation play in just the right way?
|
||||||
<!-- window.onbeforeunload = function(){ -->
|
window.onbeforeunload = function() {
|
||||||
<!-- /** Remember the origin so it can be checked for page reloads **/ -->
|
Remember the origin so it can be checked for page reloads
|
||||||
<!-- sessionStorage.setItem("origin", window.location.href); -->
|
sessionStorage.setItem("origin", window.location.href);
|
||||||
<!-- } -->
|
}
|
||||||
<!---->
|
|
||||||
<!-- window.onload = function() { -->
|
window.onload = function() {
|
||||||
<!-- /** Display the glitch effect on new page loads or reloads. **/ -->
|
Display the glitch effect on new page loads or reloads.
|
||||||
<!-- let glitch_seen = sessionStorage.getItem('glitch') -->
|
let glitch_seen = sessionStorage.getItem('glitch')
|
||||||
<!-- if (glitch_seen !== 'true' || window.location.href === sessionStorage.getItem("origin")) { -->
|
if (glitch_seen !== 'true' || window.location.href === sessionStorage.getItem("origin")) {
|
||||||
<!-- sessionStorage.setItem('glitch', 'true') -->
|
sessionStorage.setItem('glitch', 'true')
|
||||||
<!-- document.getElementById('header').firstElementChild.classList.add('glitch') -->
|
document.getElementById('header').firstElementChild.classList.add('glitch')
|
||||||
<!-- } -->
|
}
|
||||||
<!-- -->
|
|
||||||
<!-- } -->
|
}
|
||||||
<!-- </script> -->
|
</script>
|
||||||
|
-->
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
import { getCollection, getEntry } from "astro:content";
|
import { getCollection } from "astro:content";
|
||||||
import Base from "@layouts/Base.astro";
|
import Base from "@layouts/Base.astro";
|
||||||
import Summary from "@components/Summary.astro";
|
import Summary from "@components/Summary.astro";
|
||||||
const posts = await getCollection("blog");
|
const posts = await getCollection("blog");
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
import Post from '@layouts/Post.astro';
|
import Post from '@layouts/Post.astro';
|
||||||
import { getCollection, type CollectionEntry } from 'astro:content';
|
import { getCollection } from 'astro:content';
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
const blogEntries = await getCollection('blog');
|
const blogEntries = await getCollection('blog');
|
||||||
|
|||||||
Reference in New Issue
Block a user