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

Modif diverses blog #1946

Merged
merged 4 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 2 additions & 6 deletions src/app/blog/[slug]/components/AsideContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,8 @@ async function AsideContent() {
<li><Link className="fr-link fr-link--icon-left fr-icon-linkedin-box-fill" target="linkedin" href={SOCIAL_NETWORKS_URL_LINKEDIN ?? ''}>LinkedIn</Link></li>
<li><Link className="fr-link fr-link--icon-left fr-icon-twitter-x-fill" target="twitter-x" href={SOCIAL_NETWORKS_URL_XCOM ?? ''}>X.com</Link></li>
<li><Link className="fr-link fr-link--icon-left fr-icon-mastodon-fill" target="mastodon" href={SOCIAL_NETWORKS_URL_MASTODON ?? ''}>Mastodon</Link></li>
<li><Link className="fr-link fr-link--icon-left ri-mail-send-fill" target="newsletter" href="#d">Newsletter</Link></li>
</AsideFollowList>
<hr />
<h6>A voir egalement</h6>
<AsideFollowList>
<li><Link className="fr-link fr-link--icon-left fr-icon-facebook-circle-fill" target="facebook" href={SOCIAL_NETWORKS_URL_FACEBOOK ?? ''}>Page Facebook du programme BAL</Link></li>
<li><Link className="fr-link fr-link--icon-left ri-mail-send-fill" target="newsletter" href="#newsletter">Newsletter</Link></li>
<li><Link className="fr-link fr-link--icon-left fr-icon-facebook-circle-fill" target="facebook" href={SOCIAL_NETWORKS_URL_FACEBOOK ?? ''}>Facebook</Link></li>
</AsideFollowList>
</>
)
Expand Down
8 changes: 0 additions & 8 deletions src/app/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Tag from '@codegouvfr/react-dsfr/Tag'
import Breadcrumb from '@/layouts/Breadcrumb'
import Section from '@/components/Section'
import HtmlViewer from '@/components/HtmlViewer'
import SharingBlock from '@/components/SharingBlock'
import ResponsiveImage from '@/components/ResponsiveImage'
import { getSinglePost } from '@/lib/blog'

Expand All @@ -23,7 +22,6 @@ export default async function BlogPost({ params }: { params: { slug: string } })
const blogPost = await getSinglePost(params.slug) || {}

const {
excerpt,
html: contentHtml,
title,
tags,
Expand Down Expand Up @@ -74,12 +72,6 @@ export default async function BlogPost({ params }: { params: { slug: string } })
{readingTime && <div className="reading-time">Lecture {readingTime} minutes</div>}
</PublicationWrapper>

<p>
{excerpt}
</p>

<SharingBlock pageUrl={pageUrl} callMessage={title} title={title} />

{featureImage && (
<ImageWrapper>
<ResponsiveImage src={featureImage} alt={title} />
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default function Footer() {
},
desc: (
<>
Recevez toutes les informations de la Base Adresse Nationale !
<div id="newsletter">Recevez toutes les informations de la Base Adresse Nationale !</div>
<br />
<Link href="/newsletters">
Découvrez nos dernières newsletters
Expand Down
Loading