12
package.json
12
package.json
@ -14,19 +14,19 @@
|
|||||||
"subfont": "subfont -ir --no-fallbacks --silent --root dist"
|
"subfont": "subfont -ir --no-fallbacks --silent --root dist"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@astrojs/image": "^1.0.0-beta.2",
|
"@astrojs/image": "^0.13.0",
|
||||||
"@astrojs/mdx": "^1.0.0-beta.2",
|
"@astrojs/mdx": "^0.15.0",
|
||||||
"@astrojs/partytown": "^1.0.3-beta.1",
|
"@astrojs/partytown": "^1.0.3",
|
||||||
"@astrojs/rss": "^2.0.0",
|
"@astrojs/rss": "^2.1.0",
|
||||||
"@astrojs/sitemap": "^1.0.0",
|
"@astrojs/sitemap": "^1.0.0",
|
||||||
"@astrojs/tailwind": "^3.0.0-beta.2",
|
"@astrojs/tailwind": "^3.0.0",
|
||||||
"@astrolib/analytics": "^0.3.0",
|
"@astrolib/analytics": "^0.3.0",
|
||||||
"@astrolib/seo": "^0.3.0",
|
"@astrolib/seo": "^0.3.0",
|
||||||
"@fontsource/inter": "^4.5.15",
|
"@fontsource/inter": "^4.5.15",
|
||||||
"@tailwindcss/typography": "^0.5.9",
|
"@tailwindcss/typography": "^0.5.9",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.48.2",
|
"@typescript-eslint/eslint-plugin": "^5.48.2",
|
||||||
"@typescript-eslint/parser": "^5.48.2",
|
"@typescript-eslint/parser": "^5.48.2",
|
||||||
"astro": "^2.0.0-beta.4",
|
"astro": "^2.0.0",
|
||||||
"astro-compress": "1.1.28",
|
"astro-compress": "1.1.28",
|
||||||
"astro-icon": "^0.8.0",
|
"astro-icon": "^0.8.0",
|
||||||
"eslint": "^8.32.0",
|
"eslint": "^8.32.0",
|
||||||
|
@ -6,6 +6,6 @@
|
|||||||
"container": {
|
"container": {
|
||||||
"port": 3000,
|
"port": 3000,
|
||||||
"startScript": "start",
|
"startScript": "start",
|
||||||
"node": "14"
|
"node": "16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,13 +16,13 @@ const { prevUrl, nextUrl, prevText = 'Newer posts', nextText = 'Older posts' } =
|
|||||||
(prevUrl || nextUrl) && (
|
(prevUrl || nextUrl) && (
|
||||||
<div class="container flex">
|
<div class="container flex">
|
||||||
<div class="flex flex-row mx-auto container justify-between">
|
<div class="flex flex-row mx-auto container justify-between">
|
||||||
<a href={getPermalink(prevUrl)} class={`btn btn-ghost px-3 mr-2 ${!prevUrl ? 'invisible' : ''}`}>
|
<a href={getPermalink(prevUrl)} class={`btn btn-ghost md:px-3 px-3 mr-2 ${!prevUrl ? 'invisible' : ''}`}>
|
||||||
<div class="flex flex-row align-middle">
|
<div class="flex flex-row align-middle">
|
||||||
<Icon name="tabler:chevron-left" class="w-6 h-6" />
|
<Icon name="tabler:chevron-left" class="w-6 h-6" />
|
||||||
<p class="ml-2">{prevText}</p>
|
<p class="ml-2">{prevText}</p>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href={getPermalink(nextUrl)} class={`btn btn-ghost px-3 ${!nextUrl ? 'invisible' : ''}`}>
|
<a href={getPermalink(nextUrl)} class={`btn btn-ghost md:px-3 px-3 ${!nextUrl ? 'invisible' : ''}`}>
|
||||||
<div class="flex flex-row align-middle">
|
<div class="flex flex-row align-middle">
|
||||||
<span class="mr-2">{nextText}</span>
|
<span class="mr-2">{nextText}</span>
|
||||||
<Icon name="tabler:chevron-right" class="w-6 h-6" />
|
<Icon name="tabler:chevron-right" class="w-6 h-6" />
|
@ -30,7 +30,7 @@ const { post, url } = Astro.props;
|
|||||||
<>
|
<>
|
||||||
{' '}
|
{' '}
|
||||||
·
|
·
|
||||||
<a class="font-bold capitalize" href={getPermalink(post.category, 'category')}>
|
<a class="capitalize hover:underline" href={getPermalink(post.category, 'category')}>
|
||||||
{post.category.replaceAll('-', ' ')}
|
{post.category.replaceAll('-', ' ')}
|
||||||
</a>
|
</a>
|
||||||
</>
|
</>
|
||||||
|
@ -4,7 +4,7 @@ import { SITE, BLOG } from '~/config.mjs';
|
|||||||
import Layout from '~/layouts/PageLayout.astro';
|
import Layout from '~/layouts/PageLayout.astro';
|
||||||
import BlogList from '~/components/blog/List.astro';
|
import BlogList from '~/components/blog/List.astro';
|
||||||
import Headline from '~/components/blog/Headline.astro';
|
import Headline from '~/components/blog/Headline.astro';
|
||||||
import Pagination from '~/components/common/Pagination.astro';
|
import Pagination from '~/components/blog/Pagination.astro';
|
||||||
|
|
||||||
import { fetchPosts } from '~/utils/blog';
|
import { fetchPosts } from '~/utils/blog';
|
||||||
import { BLOG_BASE } from '~/utils/permalinks';
|
import { BLOG_BASE } from '~/utils/permalinks';
|
||||||
|
@ -4,7 +4,7 @@ import { SITE, BLOG } from '~/config.mjs';
|
|||||||
import Layout from '~/layouts/PageLayout.astro';
|
import Layout from '~/layouts/PageLayout.astro';
|
||||||
import BlogList from '~/components/blog/List.astro';
|
import BlogList from '~/components/blog/List.astro';
|
||||||
import Headline from '~/components/blog/Headline.astro';
|
import Headline from '~/components/blog/Headline.astro';
|
||||||
import Pagination from '~/components/common/Pagination.astro';
|
import Pagination from '~/components/blog/Pagination.astro';
|
||||||
|
|
||||||
import { fetchPosts } from '~/utils/blog';
|
import { fetchPosts } from '~/utils/blog';
|
||||||
import { CATEGORY_BASE } from '~/utils/permalinks';
|
import { CATEGORY_BASE } from '~/utils/permalinks';
|
||||||
|
@ -3,7 +3,7 @@ import { SITE, BLOG } from '~/config.mjs';
|
|||||||
|
|
||||||
import Layout from '~/layouts/PageLayout.astro';
|
import Layout from '~/layouts/PageLayout.astro';
|
||||||
import BlogList from '~/components/blog/List.astro';
|
import BlogList from '~/components/blog/List.astro';
|
||||||
import Pagination from '~/components/common/Pagination.astro';
|
import Pagination from '~/components/blog/Pagination.astro';
|
||||||
|
|
||||||
import { fetchPosts } from '~/utils/blog';
|
import { fetchPosts } from '~/utils/blog';
|
||||||
import { TAG_BASE } from '~/utils/permalinks';
|
import { TAG_BASE } from '~/utils/permalinks';
|
||||||
|
Reference in New Issue
Block a user