Fix some minimal details
This commit is contained in:
@ -3,11 +3,11 @@ 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 Title from '~/components/blog/Title.astro';
|
||||||
import Pagination from '~/components/common/Pagination.astro';
|
import Pagination from '~/components/common/Pagination.astro';
|
||||||
|
|
||||||
import { fetchPosts } from '~/utils/blog';
|
import { fetchPosts } from '~/utils/blog';
|
||||||
import { BLOG_BASE } from '~/utils/permalinks';
|
import { BLOG_BASE } from '~/utils/permalinks';
|
||||||
import Title from '~/components/blog/Title.astro';
|
|
||||||
|
|
||||||
export async function getStaticPaths({ paginate }) {
|
export async function getStaticPaths({ paginate }) {
|
||||||
if (BLOG?.disabled || BLOG?.list?.disabled) return [];
|
if (BLOG?.disabled || BLOG?.list?.disabled) return [];
|
||||||
|
@ -3,11 +3,11 @@ 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 Title from '~/components/blog/Title.astro';
|
||||||
import Pagination from '~/components/common/Pagination.astro';
|
import Pagination from '~/components/common/Pagination.astro';
|
||||||
|
|
||||||
import { fetchPosts } from '~/utils/blog';
|
import { fetchPosts } from '~/utils/blog';
|
||||||
import { CATEGORY_BASE } from '~/utils/permalinks';
|
import { CATEGORY_BASE } from '~/utils/permalinks';
|
||||||
import Title from '~/components/blog/Title.astro';
|
|
||||||
|
|
||||||
export async function getStaticPaths({ paginate }) {
|
export async function getStaticPaths({ paginate }) {
|
||||||
if (BLOG?.disabled || BLOG?.category?.disabled) return [];
|
if (BLOG?.disabled || BLOG?.category?.disabled) return [];
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
---
|
---
|
||||||
import { SITE } from '~/config.mjs';
|
import { SITE } from '~/config.mjs';
|
||||||
import { getCanonical, getHomePermalink } from '~/utils/permalinks';
|
|
||||||
import Layout from '~/layouts/PageLayout.astro';
|
import Layout from '~/layouts/PageLayout.astro';
|
||||||
|
|
||||||
import Hero from '~/components/widgets/Hero.astro';
|
import Hero from '~/components/widgets/Hero.astro';
|
||||||
|
Reference in New Issue
Block a user