Default book button label to 'Learn More' when using url instead of amazonUrl; v1.1.38

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmert
2026-08-26 08:47:25 -04:00
parent 24d7fd7cec
commit 005da43738
+1 -1
View File
@@ -1789,7 +1789,7 @@ function BooksSectionSection({ content }: { content: SiteContent }) {
{book.description && <p className="book-card-description">{book.description}</p>}
{(book.amazonUrl || book.url) && (
<a href={book.amazonUrl || book.url} target="_blank" rel="noopener noreferrer" className="btn-primary book-card-btn">
{book.amazonLabel || 'View on Amazon'}
{book.amazonUrl ? (book.amazonLabel || 'View on Amazon') : (book.amazonLabel || 'Learn More')}
</a>
)}
</div>