Skip to content

Commit

Permalink
fix: new paths import
Browse files Browse the repository at this point in the history
  • Loading branch information
lfilho committed Aug 13, 2024
1 parent 8952532 commit 665a58b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/components/BlogPostMeta.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { getBlogPostMeta } from "../lib/seo";
import { getBlogPostMeta } from "@lib/seo";
import {
SITE_TITLE,
SITE_DESCRIPTION,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Intro.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import Heading from "./ui/Heading.astro";
import Heading from "@components/ui/Heading.astro";
---

<section class="wrapper">
Expand Down
2 changes: 1 addition & 1 deletion src/components/PageMeta.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { getPageMeta } from "../lib/seo";
import { getPageMeta } from "@lib/seo";
import {
SITE_TITLE,
SITE_DESCRIPTION,
Expand Down
12 changes: 6 additions & 6 deletions src/components/Renderer.astro
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
import { MarkdocRenderer } from "astro-markdoc-renderer";
import type { Content } from "astro-markdoc-renderer";
import YouTubeEmbed from "./YouTubeEmbed.astro";
import TweetEmbed from "./TweetEmbed.astro";
import CodePenEmbed from "./CodePenEmbed.astro";
import GitHubGistEmbed from "./GitHubGistEmbed.astro";
import CodeBlock from "./CodeBlock.astro";
import Heading from "./Heading.astro";
import YouTubeEmbed from "@components/YouTubeEmbed.astro";
import TweetEmbed from "@components/TweetEmbed.astro";
import CodePenEmbed from "@components/CodePenEmbed.astro";
import GitHubGistEmbed from "@components/GitHubGistEmbed.astro";
import CodeBlock from "@components/CodeBlock.astro";
import Heading from "@components/Heading.astro";
type Props = {
content: Content;
Expand Down
4 changes: 0 additions & 4 deletions src/layouts/ContentLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import "../styles/global.css";
import "../styles/markdown.css";
import Header from "../components/Header.astro";
import Footer from "../components/Footer.astro";
import Favicon from "./Favicon.astro";
export interface Props {
Expand Down Expand Up @@ -36,15 +34,13 @@ const formattedDate = new Date(date).toLocaleDateString("en-us", {
</head>

<body class="text-text-body bg-bg-body max-w-3xl mx-auto px-4 sm:px-8">
<Header />
<main id="main">
<section class="blog-post">
<h1 class="title">{title}</h1>
<time class="publish-date">{formattedDate}</time>
<slot name="content" />
</section>
</main>
<Footer />
</body>

<style>
Expand Down
10 changes: 5 additions & 5 deletions src/pages/blog/[slug].astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
import { readOne, readAll } from "../../lib/markdoc/read";
import { blog } from "../../lib/markdoc/frontmatter.schema";
import Renderer from "../../components/Renderer.astro";
import BlogPostMeta from "../../components/BlogPostMeta.astro";
import ContentLayout from "../../layouts/ContentLayout.astro";
import { readOne, readAll } from "@lib/markdoc/read";
import { blog } from "@lib/markdoc/frontmatter.schema";
import Renderer from "@components/Renderer.astro";
import BlogPostMeta from "@components/BlogPostMeta.astro";
import ContentLayout from "@layouts/ContentLayout.astro";
import { SITE_URL } from "../../config";
export async function getStaticPaths() {
Expand Down
8 changes: 5 additions & 3 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
import Intro from '../components/Intro.astro';
import PageMeta from '../components/PageMeta.astro';
import Intro from '@components/Intro.astro';
import PageMeta from '@components/PageMeta.astro';
import { SITE_TITLE } from '../config';
import PageLayout from '../layouts/PageLayout.astro';
import PageLayout from '@layouts/PageLayout.astro';
---

<PageLayout>
Expand All @@ -11,3 +11,5 @@ import PageLayout from '../layouts/PageLayout.astro';
<Intro />
</Fragment>
</PageLayout>


0 comments on commit 665a58b

Please sign in to comment.