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