Archived
ui: remove source attribution + publisher rights notice
This commit is contained in:
@@ -59,7 +59,6 @@ export async function generateMetadata({
|
|||||||
images: a.image
|
images: a.image
|
||||||
? [{ url: a.image, width: 1200, height: 630, alt: title }]
|
? [{ url: a.image, width: 1200, height: 630, alt: title }]
|
||||||
: [{ url: '/og-image.png', width: 1200, height: 630, alt: 'MapleBrief' }],
|
: [{ url: '/og-image.png', width: 1200, height: 630, alt: 'MapleBrief' }],
|
||||||
authors: [a.siteName],
|
|
||||||
},
|
},
|
||||||
twitter: {
|
twitter: {
|
||||||
card: 'summary_large_image',
|
card: 'summary_large_image',
|
||||||
@@ -94,7 +93,6 @@ export default async function ArticlePage({
|
|||||||
<span className="rounded bg-maple-600/10 px-2 py-0.5 text-xs font-bold uppercase tracking-wide text-maple-700">
|
<span className="rounded bg-maple-600/10 px-2 py-0.5 text-xs font-bold uppercase tracking-wide text-maple-700">
|
||||||
{SECTIONS.find((s) => s.slug === a.category)?.label ?? 'Briefing'}
|
{SECTIONS.find((s) => s.slug === a.category)?.label ?? 'Briefing'}
|
||||||
</span>
|
</span>
|
||||||
<span className="text-ink-500">via {a.siteName}</span>
|
|
||||||
{a.publishedAt && (
|
{a.publishedAt && (
|
||||||
<span className="text-ink-400">· {formatFull(a.publishedAt.toISOString())}</span>
|
<span className="text-ink-400">· {formatFull(a.publishedAt.toISOString())}</span>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -21,12 +21,9 @@ export default function ArticleCard({ card }: { card: Card }) {
|
|||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<span className="flex h-full items-center justify-center font-display text-4xl text-ink-300">
|
<span className="flex h-full items-center justify-center font-display text-4xl text-ink-300">
|
||||||
{card.siteName.charAt(0)}
|
◆
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
<span className="absolute left-3 top-3 rounded bg-ink-950/80 px-2 py-0.5 text-[11px] font-semibold uppercase tracking-wide text-white">
|
|
||||||
{card.siteName}
|
|
||||||
</span>
|
|
||||||
</Link>
|
</Link>
|
||||||
<div className="flex flex-1 flex-col p-4">
|
<div className="flex flex-1 flex-col p-4">
|
||||||
<h3 className="font-display text-lg font-bold leading-snug text-ink-900 group-hover:text-maple-700">
|
<h3 className="font-display text-lg font-bold leading-snug text-ink-900 group-hover:text-maple-700">
|
||||||
|
|||||||
@@ -24,8 +24,7 @@ export default function RelatedArticles({ items }: { items: ArticleCard[] }) {
|
|||||||
{a.headline ?? a.title}
|
{a.headline ?? a.title}
|
||||||
</Link>
|
</Link>
|
||||||
<span className="mt-1 block text-xs text-ink-500">
|
<span className="mt-1 block text-xs text-ink-500">
|
||||||
{a.siteName}
|
{a.publishedAt ? formatRelativeTime(a.publishedAt) : ''}
|
||||||
{a.publishedAt ? ` · ${formatRelativeTime(a.publishedAt)}` : ''}
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -10,8 +10,7 @@ export default function Footer() {
|
|||||||
<p className="font-display text-lg font-bold text-white">{env.siteName}</p>
|
<p className="font-display text-lg font-bold text-white">{env.siteName}</p>
|
||||||
<p className="mt-2 text-sm leading-relaxed text-ink-400">
|
<p className="mt-2 text-sm leading-relaxed text-ink-400">
|
||||||
An independent digest of Canadian headlines. Every brief is a
|
An independent digest of Canadian headlines. Every brief is a
|
||||||
rewritten, in-depth version of the reported story, with full
|
rewritten, in-depth version of the story.
|
||||||
attribution.
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<nav aria-label="Footer" className="text-sm">
|
<nav aria-label="Footer" className="text-sm">
|
||||||
@@ -39,7 +38,6 @@ export default function Footer() {
|
|||||||
<div className="border-t border-ink-800/70">
|
<div className="border-t border-ink-800/70">
|
||||||
<div className="mx-auto max-w-6xl px-4 py-4 text-xs text-ink-500 sm:px-6">
|
<div className="mx-auto max-w-6xl px-4 py-4 text-xs text-ink-500 sm:px-6">
|
||||||
© {year} {env.siteName}. Briefs compiled from public news feeds.
|
© {year} {env.siteName}. Briefs compiled from public news feeds.
|
||||||
All rights to original content remain with the respective publishers.
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user