mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add bookend
This commit is contained in:
parent
3e8e878df5
commit
023b0137c4
1 changed files with 35 additions and 1 deletions
|
|
@ -22,6 +22,35 @@ export const makeDescription = function ( app ) {
|
|||
return `Latest reported support status of ${ app.name } on Apple Silicon and Apple M1 Processors when installed via Homebrew. `
|
||||
}
|
||||
|
||||
function makeBookend () {
|
||||
return {
|
||||
"bookendVersion": "v1.0",
|
||||
"shareProviders": [
|
||||
"system",
|
||||
"email",
|
||||
"twitter",
|
||||
"sms"
|
||||
],
|
||||
"components": [
|
||||
{
|
||||
"type": "cta-link",
|
||||
"links": [
|
||||
{
|
||||
"text": "Search Other Apps",
|
||||
"url": "doesitarm.com"
|
||||
},
|
||||
{
|
||||
"text": "Get App Updates",
|
||||
"url": "doesitarm.com/embed-subscribe"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
const bookendJson = JSON.stringify( makeBookend() )
|
||||
|
||||
export class Story {
|
||||
// or `async data() {`
|
||||
// or `get data() {`
|
||||
|
|
@ -439,7 +468,12 @@ export class Story {
|
|||
</amp-story-page>
|
||||
<!-- PAGE 4 ENDS HERE -->
|
||||
|
||||
<amp-story-bookend src="https://doesitarm.com/formula/ack/story/bookend.json" layout="nodisplay"></amp-story-bookend>
|
||||
<!-- https://amp.dev/documentation/components/amp-story-bookend/ -->
|
||||
<amp-story-bookend layout="nodisplay">
|
||||
<script type="application/json">
|
||||
${ bookendJson }
|
||||
</script>
|
||||
</amp-story-bookend>
|
||||
</amp-story>
|
||||
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue