Skip to content

Commit 69f7780

Browse files
committed
Refactored to common
1 parent a6d31ed commit 69f7780

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+82
-82
lines changed

src/layouts/base.astro renamed to src/common/base.astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
// import { ViewTransitions } from 'astro:transitions'
33
import type { CollectionEntry } from 'astro:content'
4-
import SEO from '../components/seo.astro'
5-
import Header from '../components/header.astro'
6-
import Footer from '../components/footer.astro'
7-
import Gallery from '../components/gallery.astro'
8-
import { SiteMetadata } from '../config'
4+
import SEO from './seo.astro'
5+
import Header from './header.astro'
6+
import Footer from './footer.astro'
7+
import Gallery from './gallery.astro'
8+
import { SiteMetadata } from './config'
99
1010
export interface Props {
1111
frontmatter: CollectionEntry<'blog'>['data'] | CollectionEntry<'page'>['data']
@@ -14,7 +14,7 @@ export interface Props {
1414
1515
const { frontmatter, schema = 'WebPage' } = Astro.props
1616
17-
import '../styles/global.css'
17+
import './global.css'
1818
---
1919

2020
<!doctype html>

src/layouts/blog.astro renamed to src/common/blog.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
import type { CollectionEntry } from 'astro:content'
3-
import Base from '../layouts/base.astro'
4-
import BlogHero from '../components/bloghero.astro'
5-
import NextPrev from '../components/nextprev.astro'
6-
import Images from '../components/images.astro'
3+
import Base from './base.astro'
4+
import BlogHero from './bloghero.astro'
5+
import NextPrev from './nextprev.astro'
6+
import Images from './images.astro'
77
88
export interface Props {
99
post: CollectionEntry<'blog'>

src/components/blogcard.astro renamed to src/common/blogcard.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { CollectionEntry } from 'astro:content'
33
import { getEntry } from 'astro:content'
44
// import { Image } from 'astro:assets'
55
import { Icon } from 'astro-icon/components'
6-
import Categories from '../components/categories.astro'
7-
import Tags from '../components/tags.astro'
6+
import Categories from './categories.astro'
7+
import Tags from './tags.astro'
88
99
export interface Props {
1010
post: CollectionEntry<'blog'>

src/components/bloghero.astro renamed to src/common/bloghero.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import type { CollectionEntry } from 'astro:content'
33
import { getEntry } from 'astro:content'
44
import { Icon } from 'astro-icon/components'
5-
import Categories from '../components/categories.astro'
6-
import Tags from '../components/tags.astro'
5+
import Categories from './categories.astro'
6+
import Tags from './tags.astro'
77
88
export interface Props {
99
post: CollectionEntry<'blog'>

src/components/blogroll.astro renamed to src/common/blogroll.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
import type { CollectionEntry } from 'astro:content'
3-
import BlogCard from '../components/blogcard.astro'
3+
import BlogCard from './blogcard.astro'
44
55
export interface Props {
66
posts: CollectionEntry<'blog'>[]
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/config.ts renamed to src/common/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export const SiteMetadata = {
3030
buildTime: new Date()
3131
}
3232

33-
export { default as Logo } from './images/svg/logo.svg'
34-
export { default as LogoImage } from './images/logo.png'
35-
export { default as defaultImage } from './images/undraw/my_feed.png'
33+
export { default as Logo } from '../images/svg/logo.svg'
34+
export { default as LogoImage } from '../images/logo.png'
35+
export { default as defaultImage } from '../images/undraw/my_feed.png'
3636

3737
export const NavigationLinks = [
3838
{ name: 'Home', href: '' },

src/layouts/doc.astro renamed to src/common/doc.astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
import type { CollectionEntry } from 'astro:content'
3-
import type { Sidebar } from '../config'
3+
import type { Sidebar } from './config'
44
import { getCollection } from 'astro:content'
55
import Base from './base.astro'
6-
import PageContent from '../components/pagecontent.astro'
7-
import LeftSidebar from '../components/leftsidebar.astro'
8-
import RightSidebar from '../components/rightsidebar.astro'
9-
import NextPrev from '../components/nextprev.astro'
10-
import * as CONFIG from '../config'
6+
import PageContent from './pagecontent.astro'
7+
import LeftSidebar from './leftsidebar.astro'
8+
import RightSidebar from './rightsidebar.astro'
9+
import NextPrev from './nextprev.astro'
10+
import * as CONFIG from './config'
1111
import type { MarkdownHeading } from 'astro'
1212
1313
type Props = {

0 commit comments

Comments
 (0)