Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Redesigned blog post #1383

Merged
merged 2 commits into from
Nov 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: Removed unused code
siamak committed Nov 12, 2024
commit 7d983e3ece6717bdbcaa8ecf30d3722544517be0
Original file line number Diff line number Diff line change
@@ -143,66 +143,6 @@ export default function BlogArticlePageContent(props: BlogArticlePayload) {
/>
)}
</div>
{/* Sidebar */}
{/* <aside className="sticky top-8 hidden h-fit w-1/3 px-s pl-[52px] lg:flex">
<div className="flex w-full flex-col">
{props.authors && (
<>
<ArticleAuthors authors={props.authors} />
<div className="my-8 h-[1px] w-full bg-gradient-to-r from-transparent via-[#0b151e] to-transparent dark:via-emphasis-dark" />
</>
)}

{isCustomerStory && customerStorySidebar?.features && (
<>
<Features features={customerStorySidebar?.features} />
<div className="my-8 h-[1px] w-full bg-gradient-to-r from-transparent via-[#0b151e] to-transparent dark:via-emphasis-dark" />
</>
)}

{isCustomerStory && customerStorySidebar?.stats && (
<>
<Stats stats={customerStorySidebar?.stats} />
<div className="my-8 h-[1px] w-full bg-gradient-to-r from-transparent via-[#0b151e] to-transparent dark:via-emphasis-dark" />
</>
)}

{isCustomerStory
? null
: articleSidebar?.showToc &&
toc.length > 0 && (
<>
<TableOfContents
variant="sidebar"
outlines={toc}
title={"On this page"}
/>
<div className="my-8 h-[1px] w-full bg-gradient-to-r from-transparent via-[#0b151e] to-transparent dark:via-emphasis-dark" />
</>
)}

{isCustomerStory && customerStorySidebar?.articleCta && (
<div className="">
<CtaCard {...ctaCardProps} />
<div className="my-8 h-[1px] w-full bg-gradient-to-r from-transparent via-[#0b151e] to-transparent dark:via-emphasis-dark" />
</div>
)}

{props?.relatedArticles ? (
<RelatedLinks
textStyle="medium"
className=""
title={
props.globalLabels?.relatedArticles || "Related articles"
}
links={props?.relatedArticles.map((article) => ({
title: article?.title || "",
href: article?.pathname?.split("/")[2] || "",
}))}
/>
) : null}
</div>
</aside> */}
</div>

{/* Footer */}