3 const th
= require('./template-helper');
4 const { sessionNavLinks
} = require('@squeep/authentication-module');
6 function aboutSection() {
8 <section class="about">
11 This is an <a class="external" href="https://indieweb.org/IndieAuth">IndieAuth</a> service.
14 It facilitates distributed authentication.
17 If you are not an established user of this service, or some sort of web application, there is very little here for you.
22 function contactSection(contactHTML
) {
35 * @param {Object} options
36 * @param {Object} options.manager
37 * @param {String} options.manager.pageTitle
38 * @param {String[]} options.manager.footerEntries
39 * @param {String} options.adminContactHTML
42 module
.exports
= (ctx
, options
) => {
43 const pagePathLevel
= 0;
44 const contactHTML
= options
.adminContactHTML
;
46 pageIdentifier: 'root',
47 pageTitle: options
.manager
.pageTitle
,
48 logoUrl: options
.manager
.logoUrl
,
49 footerEntries: options
.manager
.footerEntries
,
51 `<link rel="indieauth-metadata" href="${options.dingus.selfBaseUrl}${options.route.metadata}">`,
54 th
.navLinks(pagePathLevel
, ctx
, htmlOptions
);
55 sessionNavLinks(pagePathLevel
, ctx
, htmlOptions
);
58 contactSection(contactHTML
),
60 return th
.htmlPage(pagePathLevel
, ctx
, htmlOptions
, content
);