summaryrefslogtreecommitdiff
path: root/examples/blog/src
diff options
context:
space:
mode:
authorGravatar FredKSchott <FredKSchott@users.noreply.github.com> 2022-08-06 04:39:26 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-08-06 04:39:26 +0000
commit4de35f3b703db52f51463769e3aef4b23d2864e3 (patch)
treec6fea68d6368cf8ddfb098ac3159be71f265692a /examples/blog/src
parent24c8e7d853aa34aaa01204f715901c2610bfd9d6 (diff)
downloadastro-4de35f3b703db52f51463769e3aef4b23d2864e3.tar.gz
astro-4de35f3b703db52f51463769e3aef4b23d2864e3.tar.zst
astro-4de35f3b703db52f51463769e3aef4b23d2864e3.zip
[ci] format
Diffstat (limited to 'examples/blog/src')
-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()