WIP
[webmention-receiver] / src / template / mention-html.js
1 'use strict';
2
3 const th = require('./template-helper');
4
5 function renderMention(mentionData) {
6 return `<section>
7 ${JSON.stringify(mentionData)}
8 </section>`;
9 }
10
11 module.exports = (ctx, options) => {
12 const htmlOptions = {
13 pageTitle: options.manager.pageTitle,
14 logoUrl: options.manager.logoUrl,
15 footerEntries: options.manager.footerEntries,
16 navLinks: [],
17 };
18 const content = [
19 renderMention(ctx.mentionData),
20 ];
21
22 return th.htmlPage(0, ctx, htmlOptions, content);
23 };