c6095dc4384bd59e0792a3754d55b59a76bad609
3 const th
= require('./template-helper');
4 const { sessionNavLinks
} = require('@squeep/authentication-module');
7 * @returns {string} section
9 function aboutSection() {
11 <section class="about">
14 This is an <a class="external" href="https://indieweb.org/IndieAuth">IndieAuth</a> service.
17 It facilitates distributed authentication.
20 If you are not an established user of this service, or some sort of web application, there is very little here for you.
26 * @param {string} contactHTML content
27 * @returns {string} section
29 function contactSection(contactHTML
) {
41 * @param {object} ctx context
42 * @param {object} options options
43 * @param {object} options.manager manager options
44 * @param {string} options.manager.pageTitle page title
45 * @param {string[]} options.manager.footerEntries footer entries
46 * @param {string=} options.adminContactHTML content
47 * @returns {string} page
49 module
.exports
= (ctx
, options
) => {
50 const pagePathLevel
= 0;
51 const contactHTML
= options
.adminContactHTML
;
53 pageIdentifier: 'root',
54 pageTitle: options
.manager
.pageTitle
,
55 logoUrl: options
.manager
.logoUrl
,
56 footerEntries: options
.manager
.footerEntries
,
58 `<link rel="indieauth-metadata" href="${options.dingus.selfBaseUrl}${options.route.metadata}">`,
61 th
.navLinks(pagePathLevel
, ctx
, htmlOptions
);
62 sessionNavLinks(pagePathLevel
, ctx
, htmlOptions
);
65 contactSection(contactHTML
),
67 return th
.htmlPage(pagePathLevel
, ctx
, htmlOptions
, content
);