Publishing Updates
- To notify the Hub 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
):
+ 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
@@ -137,13 +149,22 @@ module.exports = (ctx, options) => {
const contactHTML = options.adminContactHTML;
const footerEntries = options.manager.footerEntries;
const hubURL = options.dingus.selfBaseUrl || 'https://hub.example.com/';
- const headElements = [];
- const navLinks = [];
- const mainContent = [
+ 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.htmlTemplate(1, pageTitle, headElements, navLinks, mainContent, footerEntries,
- );
+ return th.htmlPage(1, ctx, htmlOptions, content);
};
\ No newline at end of file