Use title for video main heading

This commit is contained in:
Sam Carlton 2022-06-09 14:53:40 -05:00
parent 428ecb3e43
commit d9610b18f8
2 changed files with 6 additions and 1 deletions

View file

@ -96,6 +96,11 @@ export class ListingDetails {
isListingDetails = true
get mainHeading () {
// Use the video title for videos
if ( this.type === 'video' ) {
return this.api.name
}
if ( this.type === 'formula' ) {
return `Does <code>${ this.api.name }</code> work on Apple Silicon when installed via Homebrew?`
}