clear all astro hints

This commit is contained in:
nelle 2024-08-18 01:28:10 -06:00
parent 3dd4586e37
commit c07fc2070f
10 changed files with 15 additions and 23 deletions

View file

@ -1,5 +1,4 @@
---
const today = new Date();
---
<br>
<footer class="footer" >
@ -82,7 +81,7 @@ const today = new Date();
<br><!-- Memes -->
<a href="https://www.noaa.gov/"><img src="/assets/images/badges/noaa.gif" alt="NOAA" loading="lazy"/></a>
<a href="https://www.java.com/"><img src="/assets/images/badges/get_java.gif" alt="Get Java Now" loading="lazy"/></a>
<iframe src="//incr.easrng.net/badge?key=nelle" style="background: url(//incr.easrng.net/bg.gif)" title="increment badge" width="88" height="31" frameborder="0" loading="lazy"></iframe>
<iframe src="//incr.easrng.net/badge?key=nelle" style="background: url(//incr.easrng.net/bg.gif); border: 0;" title="increment badge" width="88" height="31" loading="lazy"></iframe>
<img src="/assets/images/badges/win7startup.gif" alt="Windows 7 Startup" loading="lazy"></img>
<a href="https://archlinux.org/"><img src="/assets/images/badges/archlinux.gif" alt="Archlinux badge" loading="lazy"/></a>
<img src="/assets/images/badges/youtube-dl.gif" alt="youtube-dl badge" loading="lazy">

View file

@ -1,7 +1,5 @@
---
import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
const page = Astro.url.pathname;
import { SITE_DESCRIPTION } from "../consts";
interface Props {
title: string;

View file

@ -1,7 +1,4 @@
---
import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
const { title } = Astro.props;
---
<!--

View file

@ -1,8 +1,7 @@
---
import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
import { SITE_DESCRIPTION } from "../consts";
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const page = Astro.url.pathname;
---
<link rel="stylesheet" href="/styles/css/bsod.css" />

View file

@ -1,8 +1,7 @@
---
import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
import { SITE_DESCRIPTION } from "../consts";
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const page = Astro.url.pathname;
---
<link rel="stylesheet" href="/styles/css/mobile-warn.css" />

View file

@ -23,7 +23,7 @@ const { title } = Astro.props;
</div>
</section>
<Footer />
<script type="text/javascript" src="/scripts/rain.js"></script>
<script type="text/javascript" src="/scripts/galactic-font.js"></script>
<script src="/scripts/rain.js"></script>
<script src="/scripts/galactic-font.js"></script>
</body>
</html>

View file

@ -22,11 +22,11 @@ const { title } = Astro.props;
</section>
<slot />
<Footer />
<script type="text/javascript" src="/scripts/sga.js"></script>
<script type="text/javascript" src="/scripts/lastfm.js"></script>
<script type="text/javascript" src="/scripts/sound.js"></script>
<script type="text/javascript" src="/scripts/ntfy.js"></script>
<script type="text/javascript" src="/scripts/fuckchrome.js"></script>
<script src="/scripts/sga.js"></script>
<script src="/scripts/lastfm.js"></script>
<script src="/scripts/sound.js"></script>
<script src="/scripts/ntfy.js"></script>
<script src="/scripts/fuckchrome.js"></script>
<audio
id="clickSound"
src="/assets/sounds/ui/zapsplat_multimedia_button_click_004_68776.mp3">

View file

@ -4,7 +4,7 @@ import BlogPost from "../../layouts/BlogPost.astro";
export async function getStaticPaths() {
const posts = await getCollection("blog");
return posts.map((post) => ({
return posts.map((post: { slug: any; }) => ({
params: { slug: post.slug },
props: post,
}));

View file

@ -3,7 +3,7 @@ import Layout from "../../layouts/Layout.astro";
import { getCollection } from "astro:content";
const posts = (await getCollection("blog")).sort(
(a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()
(a: { data: { pubDate: number; }; }, b: { data: { pubDate: number; }; }) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()
);
---
@ -22,7 +22,7 @@ const posts = (await getCollection("blog")).sort(
<a href="/rss.xml"><h3 style="text-align: center;">RSS Feed</h3></a>
<hr />
{
posts.map((post) => (
posts.map((post: { slug: any; data: { title: unknown; }; }) => (
<>
<ul>
<li><a href={`/blog/${post.slug}/`}>{post.data.title}</a></li>

View file

@ -56,7 +56,7 @@ import Layout from "../layouts/Layout.astro";
<br style="margin-bottom: 10px;">
<textarea id="ntfy-input" placeholder="Hi nelle~!"></textarea><button
class="ntfy-send nob4 custom-btn btn-1"
onclick="javascript:sendNotification()"
onclick="sendNotification()"
style="margin-left:10px;">Send</button
>
</div>