Skip to content

Commit 12b78e3

Browse files
added up images in markdown
1 parent f4d490d commit 12b78e3

4 files changed

Lines changed: 5 additions & 0 deletions

File tree

Blogs/official_site_revamped.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Official Site Revamped!
33
date: 2023-07-20
4+
cover: /site/images/favicon.png
45
---
56

67
Thanks to the work put in place by our GSoC contributor [Abheek](https://twitter.com/abheekblahblah) and the help of all the involved mentors (myself :P Daniele and Aditya) we are proud to announce the release of our new official Site with a completely revamped Interface!

Blogs/presenting_greedybear.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Presenting GreedyBear
33
date: 2023-07-20
4+
cover: /site/images/favicon.png
45
---
56

67
[GreedyBear](https://github.com/intelowlproject/GreedyBear) is a tool that was created mainly to help to extract Indicators of Compromise from one or more available [TPOTs](https://github.com/telekom-security/tpotce). For those who do not know this tool, we are talking about the most popular all-in-one honeypot available in the community.

contentlayer.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const Post = defineDocumentType(() => ({
66
fields: {
77
title: { type: 'string', required: true },
88
date: { type: 'date', required: true },
9+
cover: { type: 'string', required: true },
910
},
1011
computedFields: {
1112
url: { type: 'string', resolve: (post) => `/blogs/${post._raw.flattenedPath}` },

src/app/blogs/[slug]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { format, parseISO } from 'date-fns'
22
import { allPosts } from '../../../../.contentlayer/generated'
33
import { Header } from '../../../../components/Header'
44
import Footer from '../../../../components/Footer'
5+
import Image from "next/image"
56

67
export const generateStaticParams = async () => allPosts.map((post) => ({ slug: post._raw.flattenedPath }))
78

@@ -25,6 +26,7 @@ const PostLayout = ({ params }: { params: { slug: string } }) => {
2526
{format(parseISO(post.date), 'LLLL d, yyyy')}
2627
</time>
2728
<h1 className="text-white font-SpaceGrotesk font-bold text-3xl md:text-6xl ">{post.title}</h1>
29+
<Image src={post.cover} width={100} height={100} alt={""} className="pb-12"></Image>
2830
</div>
2931
<div className="font-SpaceGrotesk text-white text-left py-5 opacity-70 text-md [&>*]:mb-3 [&>*:last-child]:mb-0" dangerouslySetInnerHTML={{ __html: post.body.html.replace(/<a/g, '<a style="color: #00ADEE;"'), }} />
3032
</main>

0 commit comments

Comments
 (0)