summaryrefslogtreecommitdiff
path: root/examples/cms-prismic/src/components/BlogCard.astro
diff options
context:
space:
mode:
authorGravatar Jonathan Neal <jonathantneal@hotmail.com> 2021-12-23 08:52:26 -0500
committerGravatar GitHub <noreply@github.com> 2021-12-23 08:52:26 -0500
commitf91ffcf024e4ca4ff29951c3e26e5fca09b1c3e6 (patch)
tree918b83fe97370d03fc2a35650282bd18696b1620 /examples/cms-prismic/src/components/BlogCard.astro
parent5f14458d88fd125a506a735efe80601f424a2a1b (diff)
downloadastro-f91ffcf024e4ca4ff29951c3e26e5fca09b1c3e6.tar.gz
astro-f91ffcf024e4ca4ff29951c3e26e5fca09b1c3e6.tar.zst
astro-f91ffcf024e4ca4ff29951c3e26e5fca09b1c3e6.zip
Revert "Revert "Revert "added prismic x astro example. (#2247)"" (#2252)" (#2259)
This reverts commit a6179d03991a01be04894ddf84178a4e0fd49d90.
Diffstat (limited to 'examples/cms-prismic/src/components/BlogCard.astro')
-rw-r--r--examples/cms-prismic/src/components/BlogCard.astro21
1 files changed, 0 insertions, 21 deletions
diff --git a/examples/cms-prismic/src/components/BlogCard.astro b/examples/cms-prismic/src/components/BlogCard.astro
deleted file mode 100644
index 1f175f98f..000000000
--- a/examples/cms-prismic/src/components/BlogCard.astro
+++ /dev/null
@@ -1,21 +0,0 @@
----
-import AsText from './Prismic/AsText.astro'
-import Date from './Prismic/Date.astro'
-import Excerpt from './Prismic/Excerpt.astro'
-
-const { data } = Astro.props
-const { uid, first_publication_date, data: postData } = data
----
-<section class="box">
- <a href={`/blog/${uid}`} class="image featured"><img src={postData.image.url} alt={postData.image.alt} style="max-height: 250px; object-fit: cover; object-position: 50% 65%;" /></a>
- <header>
- <h3><AsText data={postData.title}/></h3>
- <p><Date dateRaw={first_publication_date}/></p>
- </header>
- <p><Excerpt data={postData.content}/></p>
- <footer>
- <ul class="actions">
- <li><a href={`/blog/${uid}`} class="button icon solid fa-file-alt">Continue Reading</a></li>
- </ul>
- </footer>
-</section>