summaryrefslogtreecommitdiff
path: root/examples/blog
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog')
-rw-r--r--examples/blog/src/components/BaseHead.astro2
-rw-r--r--examples/blog/src/components/FollowMe.astro1
-rw-r--r--examples/blog/src/pages/index.astro12
3 files changed, 7 insertions, 8 deletions
diff --git a/examples/blog/src/components/BaseHead.astro b/examples/blog/src/components/BaseHead.astro
index cc6f89ff1..80de975b1 100644
--- a/examples/blog/src/components/BaseHead.astro
+++ b/examples/blog/src/components/BaseHead.astro
@@ -1,5 +1,5 @@
---
-import "../styles/blog.css";
+import '../styles/blog.css';
export interface Props {
title: string;
diff --git a/examples/blog/src/components/FollowMe.astro b/examples/blog/src/components/FollowMe.astro
index 09062281a..093391147 100644
--- a/examples/blog/src/components/FollowMe.astro
+++ b/examples/blog/src/components/FollowMe.astro
@@ -8,4 +8,3 @@ const { username, href } = Astro.props as Props;
---
<p>Follow me <a {href} target="_blank" rel="noreferrer">@{username}</a></p>
-
diff --git a/examples/blog/src/pages/index.astro b/examples/blog/src/pages/index.astro
index 22c095c74..727fc055f 100644
--- a/examples/blog/src/pages/index.astro
+++ b/examples/blog/src/pages/index.astro
@@ -1,13 +1,13 @@
---
-import BaseHead from "../components/BaseHead.astro";
-import Header from "../components/Header.astro";
-import BlogPostPreview from "../components/BlogPostPreview.astro";
+import BaseHead from '../components/BaseHead.astro';
+import Header from '../components/Header.astro';
+import BlogPostPreview from '../components/BlogPostPreview.astro';
-let title = "Example Blog";
-let description = "The perfect starter for your perfect blog.";
+let title = 'Example Blog';
+let description = 'The perfect starter for your perfect blog.';
// Use Astro.glob to fetch all post with associated frontmatter
-const unsortedPosts = await Astro.glob("./posts/*.md");
+const unsortedPosts = await Astro.glob('./posts/*.md');
const posts = unsortedPosts.sort(function (a, b) {
return (
new Date(b.frontmatter.publishDate).valueOf() - new Date(a.frontmatter.publishDate).valueOf()