added homepage to body of open graph responses

pull/15/head
tycrek 3 years ago
parent 8a37bb97f3
commit 4d56021b25
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -1,12 +1,5 @@
/*
Optional:
- og:title
- og:description
- og:site_name
*/
const Mustache = require('mustache');
const github = require('./package.json').homepage;
//
class OpenGraph {
@ -55,6 +48,8 @@ class OpenGraph {
build() {
let view = {
github,
http: this.http,
domain: this.domain,
resourceId: this.resourceId,
@ -85,7 +80,7 @@ const html = `
{{{card}}}
</head>
<body>
ass
Open Graph response for <a href="{{{github}}}" target="_blank">ass</a>.
</body>
</html>
`;

Loading…
Cancel
Save