This commit is contained in:
widgeter
2023-08-07 14:38:06 +02:00
5 changed files with 21 additions and 34 deletions

View File

@ -1,8 +1,9 @@
---
import favIcon from '~/assets/favicons/favicon.ico';
import favIconSvg from '~/assets/favicons/favicon.svg';
---
<link rel="shortcut icon" href={favIcon} />
<link rel="icon" type="image/svg+xml" href={favIcon} />
<link rel="mask-icon" href={String(favIconSvg)} color="#8D46E7" />
<link rel="icon" type="image/svg+xml" href={favIconSvg.src} />
<link rel="mask-icon" href={favIconSvg.src} color="#8D46E7" />

View File

@ -5,8 +5,8 @@
class="hidden md:block bg-blue-900 dark:bg-slate-800 dark:border-slate-800 dark:text-slate-400 border-b border-blue-900 text-sm px-3 py-2 text-gray-200 overflow-hidden whitespace-nowrap text-ellipsis not-prose"
>
<span class="text-xs py-0.5 px-1 bg-primary dark:bg-slate-700 dark:text-slate-300 font-semibold">NEW</span>
<a href="https://astro.build/blog/astro-290/" class="hover:underline text-gray-200 dark:text-slate-400"
>Astro 2.9 is released. »</a
<a href="https://astro.build/blog/astro-2100/" class="hover:underline text-gray-200 dark:text-slate-400"
>Astro 2.10 is released. »</a
>
<a
target="_blank"

View File

@ -56,7 +56,7 @@ const getNormalizedPost = async (post: CollectionEntry<'post'>): Promise<Post> =
metadata = {},
} = data;
const slug = cleanSlug(rawSlug.split('/').pop());
const slug = cleanSlug(rawSlug); // cleanSlug(rawSlug.split('/').pop());
const publishDate = new Date(rawPublishDate);
const updateDate = rawUpdateDate ? new Date(rawUpdateDate) : undefined;
const category = rawCategory ? cleanSlug(rawCategory) : undefined;