Skip to content

Commit 046bf53

Browse files
committed
feat: move content
1 parent 2ff18ec commit 046bf53

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

src/layouts/BlogPost.astro

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import BaseLayout from '@/layouts/BaseLayout'
55
import Tag from '@/components/Tag'
66
import type { MarkdownHeading } from 'astro'
77
import { Image } from 'astro:assets'
8-
import advert from '../assets/images/shipitnow.png'
98
109
type 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"

src/pages/post/[...slug].astro

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import { getPosts } from '@/utils'
99
import SButton from '@/components/mdx/SButton'
1010
import Disqus from '@/components/Disqus'
1111
import { disqusConfig } from '@/data/disqus.config'
12+
import { Image } from 'astro:assets'
13+
import advert from '../../assets/images/shipitnow.png'
1214
1315
const posts = await getCollection('blog')
1416
export 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} />

0 commit comments

Comments
 (0)