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:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "siteforge",
|
"name": "siteforge",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
+15
-10
@@ -664,7 +664,7 @@ function ContactSection({ content }: { content: SiteContent }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function PodcastHighlightsSection({ content }: { content: SiteContent }) {
|
function PodcastHighlightsSection({ content }: { content: SiteContent }) {
|
||||||
const links = content.podcastFeaturedLinks ?? []
|
const links = [...(content.podcastFeaturedLinks ?? [])].reverse()
|
||||||
if (links.length === 0) return null
|
if (links.length === 0) return null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -2145,16 +2145,21 @@ function AdminShell({ content, onSave }: { content: SiteContent; onSave: (c: Sit
|
|||||||
}
|
}
|
||||||
|
|
||||||
function QuestionsPage({ content }: { content: SiteContent }) {
|
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 (
|
return (
|
||||||
<main className="thanks-page" aria-label="Questions and Answers">
|
<div className="site">
|
||||||
<div className="thanks-card" style={{ maxWidth: '1000px', width: '100%' }}>
|
<SiteHeader content={content} />
|
||||||
<QASection />
|
<SiteSearchBar content={content} />
|
||||||
<CustomBlocksSection content={content} page="questions" />
|
<QASection />
|
||||||
<div style={{ marginTop: '2rem', textAlign: 'center' }}>
|
<CustomBlocksSection content={content} page="questions" />
|
||||||
<Link to="/" className="btn-secondary">Back to Site</Link>
|
<SiteFooter content={content} />
|
||||||
</div>
|
<AnalyticsConsentBanner content={content} />
|
||||||
</div>
|
</div>
|
||||||
</main>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -690,9 +690,6 @@ export default function QASection() {
|
|||||||
return (
|
return (
|
||||||
<section id="qa" className="section-qa" aria-label="Questions and answers">
|
<section id="qa" className="section-qa" aria-label="Questions and answers">
|
||||||
<div className="section-inner">
|
<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">
|
<h2 className="section-heading">
|
||||||
<span className="ornament">✦</span> Questions & Answers <span className="ornament">✦</span>
|
<span className="ornament">✦</span> Questions & Answers <span className="ornament">✦</span>
|
||||||
</h2>
|
</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user