+ This is a WebSub Hub service, facilitating content distribution.
+ Authenticated users may view details of any syndications related to their profile.
+
+ `;
+}
+
function aboutSection() {
return `
What
@@ -46,6 +58,15 @@ function usageSection(isPublicHub, hubURL) {
+
+ Ideally, these should be combined in one header.
+
+
@@ -73,15 +94,21 @@ function usageSection(isPublicHub, hubURL) {
Publishing Updates
- Send a POST request to this hub with Form Data:
+ To notify the Hub either of a new topic to syndicate, or that a topic's content has been updated and should be distributed to subscribers, send a POST request with Form Data (application/x-www-form-urlencoded):
hub.mode set to publish
- hub.url set to the self link relation of the content
+ hub.url set to the self link relation of the content (this value may be set multiple times, to update more than one topic)
+
`
: `
Private Hub
@@ -120,12 +147,24 @@ module.exports = (ctx, options) => {
const pageTitle = options.manager.pageTitle;
const isPublicHub = options.manager.publicHub;
const contactHTML = options.adminContactHTML;
+ const footerEntries = options.manager.footerEntries;
const hubURL = options.dingus.selfBaseUrl || 'https://hub.example.com/';
- const headElements = [];
- const navLinks = [];
- return th.htmlTemplate(1, pageTitle, headElements, navLinks, [
+ const navLinks = [{
+ href: 'admin/',
+ text: 'Admin',
+ }];
+ const htmlOptions = {
+ pageTitle,
+ logoUrl: options.manager.logoUrl,
+ footerEntries,
+ navLinks,
+ };
+ const content = [
+ '', // This fixes a layout rendering flash on load in FF; do not know why this works but it does.
aboutSection(),
usageSection(isPublicHub, hubURL),
contactSection(contactHTML),
- ]);
+ hAppSection(pageTitle, options.manager.logoUrl),
+ ];
+ return th.htmlPage(1, ctx, htmlOptions, content);
};
\ No newline at end of file