File tree Expand file tree Collapse file tree 2 files changed +15
-14
lines changed
Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import BaseLayout from '@/layouts/BaseLayout'
55import Tag from ' @/components/Tag'
66import type { MarkdownHeading } from ' astro'
77import { Image } from ' astro:assets'
8- import advert from ' ../assets/images/shipitnow.png'
98
109type Props = {
1110 id: CollectionEntry <' blog' >[' id' ]
@@ -69,19 +68,7 @@ const articleDate = pubDate.toISOString()
6968 <div >
7069 <slot />
7170 </div >
72- </article >
73- <a href =' https://seaeyecd-shop.fourthwall.com/promo/SHIPITNOW' target =" _blank" >
74- <Image
75- src ={ advert }
76- width ={ 1000 }
77- height ={ 500 }
78- quality ={ 100 }
79- format =' png'
80- loading =' eager'
81- class =' rounded-md w-full max-h-[300px] md:max-h-[500px] my-8 object-cover cursor-pointer'
82- alt =' img of CI/CD merch advert'
83- />
84- </a >
71+ </article >
8572</BaseLayout >
8673
8774<script src =" https://giscus.app/client.js"
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import { getPosts } from '@/utils'
99import SButton from ' @/components/mdx/SButton'
1010import Disqus from ' @/components/Disqus'
1111import { disqusConfig } from ' @/data/disqus.config'
12+ import { Image } from ' astro:assets'
13+ import advert from ' ../../assets/images/shipitnow.png'
1214
1315const posts = await getCollection (' blog' )
1416export async function getStaticPaths() {
@@ -61,6 +63,18 @@ const disqusEnabled = disqusConfig.enabled
6163
6264 <!-- related posts -->
6365 <footer >
66+ <a href =' https://seaeyecd-shop.fourthwall.com/promo/SHIPITNOW' target =" _blank" >
67+ <Image
68+ src ={ advert }
69+ width ={ 1000 }
70+ height ={ 100 }
71+ quality ={ 100 }
72+ format =' png'
73+ loading =' eager'
74+ class =' rounded-md w-full max-h-[300px] md:max-h-[500px] my-8 object-cover cursor-pointer'
75+ alt =' img of CI/CD merch advert'
76+ />
77+ </a >
6478 <div class =" giscus" ></div >
6579 <h2 class =' font-bold text-lg dark:text-white mb-6' >Related Posts</h2 >
6680 <ListRelatedPosts posts ={ relatedPosts } />
You can’t perform that action at this time.
0 commit comments