X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=src%2Ftemplate%2Froot-html.js;fp=src%2Ftemplate%2Froot-html.js;h=c6095dc4384bd59e0792a3754d55b59a76bad609;hb=f0bf29c75b0fd405ff92fa76f058e61162b87e43;hp=2b7abfe076173c5b5872b122530eedf7dabcd7ab;hpb=4b7809255e4d2f07171963aacbe7488e93931da1;p=squeep-indie-auther diff --git a/src/template/root-html.js b/src/template/root-html.js index 2b7abfe..c6095dc 100644 --- a/src/template/root-html.js +++ b/src/template/root-html.js @@ -3,6 +3,9 @@ const th = require('./template-helper'); const { sessionNavLinks } = require('@squeep/authentication-module'); +/** + * @returns {string} section + */ function aboutSection() { return `
@@ -19,6 +22,10 @@ function aboutSection() {
`; } +/** + * @param {string} contactHTML content + * @returns {string} section + */ function contactSection(contactHTML) { let section = ''; if (contactHTML) { @@ -31,13 +38,13 @@ ${contactHTML} /** * - * @param {Object} ctx - * @param {Object} options - * @param {Object} options.manager - * @param {String} options.manager.pageTitle - * @param {String[]} options.manager.footerEntries - * @param {String} options.adminContactHTML - * @returns {String} + * @param {object} ctx context + * @param {object} options options + * @param {object} options.manager manager options + * @param {string} options.manager.pageTitle page title + * @param {string[]} options.manager.footerEntries footer entries + * @param {string=} options.adminContactHTML content + * @returns {string} page */ module.exports = (ctx, options) => { const pagePathLevel = 0;