Merge branch 'main' of https://github.com/widgeter/astrowind
This commit is contained in:
@ -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" />
|
@ -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"
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user