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:
+1
-1
@@ -1789,7 +1789,7 @@ function BooksSectionSection({ content }: { content: SiteContent }) {
|
|||||||
{book.description && <p className="book-card-description">{book.description}</p>}
|
{book.description && <p className="book-card-description">{book.description}</p>}
|
||||||
{(book.amazonUrl || book.url) && (
|
{(book.amazonUrl || book.url) && (
|
||||||
<a href={book.amazonUrl || book.url} target="_blank" rel="noopener noreferrer" className="btn-primary book-card-btn">
|
<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>
|
</a>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user