Reverse podcast highlights order; convert Q&A to full page; v1.0.6
- Podcast highlights now display newest-first (reversed array) - Q&A page uses full site layout (header, nav, footer) instead of card/modal wrapper - Remove redundant "Back to Site" link from QASection now that header is present Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+15
-10
@@ -664,7 +664,7 @@ function ContactSection({ content }: { content: SiteContent }) {
|
||||
}
|
||||
|
||||
function PodcastHighlightsSection({ content }: { content: SiteContent }) {
|
||||
const links = content.podcastFeaturedLinks ?? []
|
||||
const links = [...(content.podcastFeaturedLinks ?? [])].reverse()
|
||||
if (links.length === 0) return null
|
||||
|
||||
return (
|
||||
@@ -2145,16 +2145,21 @@ function AdminShell({ content, onSave }: { content: SiteContent; onSave: (c: Sit
|
||||
}
|
||||
|
||||
function QuestionsPage({ content }: { content: SiteContent }) {
|
||||
const siteTitle = content.seo?.title || DEFAULTS.seo.title
|
||||
usePageMeta(
|
||||
`Q&A | ${siteTitle}`,
|
||||
'Real questions answered from Scripture — browse topics, search, and submit your own.',
|
||||
)
|
||||
|
||||
return (
|
||||
<main className="thanks-page" aria-label="Questions and Answers">
|
||||
<div className="thanks-card" style={{ maxWidth: '1000px', width: '100%' }}>
|
||||
<QASection />
|
||||
<CustomBlocksSection content={content} page="questions" />
|
||||
<div style={{ marginTop: '2rem', textAlign: 'center' }}>
|
||||
<Link to="/" className="btn-secondary">Back to Site</Link>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<div className="site">
|
||||
<SiteHeader content={content} />
|
||||
<SiteSearchBar content={content} />
|
||||
<QASection />
|
||||
<CustomBlocksSection content={content} page="questions" />
|
||||
<SiteFooter content={content} />
|
||||
<AnalyticsConsentBanner content={content} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -690,9 +690,6 @@ export default function QASection() {
|
||||
return (
|
||||
<section id="qa" className="section-qa" aria-label="Questions and answers">
|
||||
<div className="section-inner">
|
||||
<div className="qa-top-nav">
|
||||
<a href="/" className="qa-back-to-site">← Back to Site</a>
|
||||
</div>
|
||||
<h2 className="section-heading">
|
||||
<span className="ornament">✦</span> Questions & Answers <span className="ornament">✦</span>
|
||||
</h2>
|
||||
|
||||
Reference in New Issue
Block a user