Refactor components structure
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
import Item from "~/components/widgets/blog/ListItem.astro";
|
import Item from "~/components/blog/ListItem.astro";
|
||||||
|
|
||||||
const { posts } = Astro.props;
|
const { posts } = Astro.props;
|
||||||
---
|
---
|
@ -2,7 +2,7 @@
|
|||||||
import { SITE, BLOG } from "~/config.mjs";
|
import { SITE, BLOG } from "~/config.mjs";
|
||||||
|
|
||||||
import Layout from "~/layouts/BlogLayout.astro";
|
import Layout from "~/layouts/BlogLayout.astro";
|
||||||
import BlogList from "~/components/widgets/blog/List.astro";
|
import BlogList from "~/components/blog/List.astro";
|
||||||
import Pagination from "~/components/atoms/Pagination.astro";
|
import Pagination from "~/components/atoms/Pagination.astro";
|
||||||
|
|
||||||
import { fetchPosts } from "~/utils/posts";
|
import { fetchPosts } from "~/utils/posts";
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import { SITE, BLOG } from "~/config.mjs";
|
import { SITE, BLOG } from "~/config.mjs";
|
||||||
|
|
||||||
import Layout from "~/layouts/PageLayout.astro";
|
import Layout from "~/layouts/PageLayout.astro";
|
||||||
import SinglePost from "~/components/widgets/blog/SinglePost.astro";
|
import SinglePost from "~/components/blog/SinglePost.astro";
|
||||||
|
|
||||||
import { getCanonical, getPermalink, cleanSlug, BLOG_BASE } from "~/utils/permalinks";
|
import { getCanonical, getPermalink, cleanSlug, BLOG_BASE } from "~/utils/permalinks";
|
||||||
import { fetchPosts } from "~/utils/posts";
|
import { fetchPosts } from "~/utils/posts";
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import { SITE, BLOG } from "~/config.mjs";
|
import { SITE, BLOG } from "~/config.mjs";
|
||||||
|
|
||||||
import Layout from "~/layouts/BlogLayout.astro";
|
import Layout from "~/layouts/BlogLayout.astro";
|
||||||
import BlogList from "~/components/widgets/blog/List.astro";
|
import BlogList from "~/components/blog/List.astro";
|
||||||
import Pagination from "~/components/atoms/Pagination.astro";
|
import Pagination from "~/components/atoms/Pagination.astro";
|
||||||
|
|
||||||
import { fetchPosts } from "~/utils/posts";
|
import { fetchPosts } from "~/utils/posts";
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import { SITE, BLOG } from "~/config.mjs";
|
import { SITE, BLOG } from "~/config.mjs";
|
||||||
|
|
||||||
import Layout from "~/layouts/BlogLayout.astro";
|
import Layout from "~/layouts/BlogLayout.astro";
|
||||||
import BlogList from "~/components/widgets/blog/List.astro";
|
import BlogList from "~/components/blog/List.astro";
|
||||||
import Pagination from "~/components/atoms/Pagination.astro";
|
import Pagination from "~/components/atoms/Pagination.astro";
|
||||||
|
|
||||||
import { fetchPosts } from "~/utils/posts";
|
import { fetchPosts } from "~/utils/posts";
|
||||||
|
@ -8,7 +8,7 @@ import Features from "~/components/widgets/Features.astro";
|
|||||||
import Features2 from "~/components/widgets/Features2.astro";
|
import Features2 from "~/components/widgets/Features2.astro";
|
||||||
import Steps from "~/components/widgets/Steps.astro";
|
import Steps from "~/components/widgets/Steps.astro";
|
||||||
import Features3 from "~/components/widgets/Features3.astro";
|
import Features3 from "~/components/widgets/Features3.astro";
|
||||||
import HighlightedPosts from "~/components/widgets/blog/HighlightedPosts.astro";
|
import HighlightedPosts from "~/components/blog/HighlightedPosts.astro";
|
||||||
import FAQs from "~/components/widgets/FAQs.astro";
|
import FAQs from "~/components/widgets/FAQs.astro";
|
||||||
import Stats from "~/components/widgets/Stats.astro";
|
import Stats from "~/components/widgets/Stats.astro";
|
||||||
import CallToAction from "~/components/widgets/CallToAction.astro";
|
import CallToAction from "~/components/widgets/CallToAction.astro";
|
||||||
|
Reference in New Issue
Block a user