Skip to content

Commit

Permalink
Updated code to use import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
devthedevel committed Jan 26, 2024
1 parent 3d6fcec commit d00e5a4
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions src/layouts/BlogPost.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
import type { CollectionEntry } from 'astro:content';
import BaseHead from '../components/BaseHead.astro';
import Header from '../components/Header.astro';
import Footer from '../components/Footer.astro';
import FormattedDate from '../components/FormattedDate.astro';
import BaseHead from '@components/BaseHead.astro';
import Header from '@components/Header.astro';
import Footer from '@components/Footer.astro';
import FormattedDate from '@components/FormattedDate.astro';
type Props = CollectionEntry<'blog'>['data'];
Expand Down
8 changes: 4 additions & 4 deletions src/pages/404.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
import BaseHead from '../components/BaseHead.astro';
import Footer from '../components/Footer.astro';
import Header from '../components/Header.astro';
import BaseHead from '@components/BaseHead.astro';
import Footer from '@components/Footer.astro';
import Header from '@components/Header.astro';
import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
import NotFound404Svg from '../assets/404.svg';
import NotFound404Svg from '@assets/404.svg';
import { Image } from 'astro:assets';
---

Expand Down
2 changes: 1 addition & 1 deletion src/pages/about.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import Layout from '../layouts/BlogPost.astro';
import Layout from '@layouts/BlogPost.astro';
---

<Layout
Expand Down
2 changes: 1 addition & 1 deletion src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import { type CollectionEntry, getCollection } from 'astro:content';
import BlogPost from '../../layouts/BlogPost.astro';
import BlogPost from '@layouts/BlogPost.astro';
export async function getStaticPaths() {
type BlogCollection = CollectionEntry<'blog'>;
Expand Down
10 changes: 5 additions & 5 deletions src/pages/blog/index.astro
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
import BaseHead from '../../components/BaseHead.astro';
import Header from '../../components/Header.astro';
import Footer from '../../components/Footer.astro';
import BaseHead from '@components/BaseHead.astro';
import Header from '@components/Header.astro';
import Footer from '@components/Footer.astro';
import { SITE_TITLE, SITE_DESCRIPTION } from '../../consts';
import { getCollection, type CollectionEntry } from 'astro:content';
import FormattedDate from '../../components/FormattedDate.astro';
import NoBlogPostsSvg from '../../assets/no-blog-posts.svg';
import FormattedDate from '@components/FormattedDate.astro';
import NoBlogPostsSvg from '@assets/no-blog-posts.svg';
import { Image } from 'astro:assets';
type BlogCollection = CollectionEntry<'blog'>;
Expand Down
8 changes: 4 additions & 4 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
import BaseHead from '../components/BaseHead.astro';
import Header from '../components/Header.astro';
import Footer from '../components/Footer.astro';
import BaseHead from '@components/BaseHead.astro';
import Header from '@components/Header.astro';
import Footer from '@components/Footer.astro';
import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
import DeveloperSvg from '../assets/developer.svg';
import DeveloperSvg from '@assets/developer.svg';
import { Image } from 'astro:assets';
---

Expand Down

0 comments on commit d00e5a4

Please sign in to comment.