X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=src%2Ftemplate%2Froot-html.js;h=8797564e54e93b1ef816de4c4e4b6e01269e3b7c;hb=0bd03d33a3bc5ab24ca090e68261baaadcb9d1bf;hp=97a1ad9c99c1b700a9b155935b83fc4c1ba8f0d3;hpb=9696c012e6b9a6c58904baa397ca0ebf78112316;p=websub-hub diff --git a/src/template/root-html.js b/src/template/root-html.js index 97a1ad9..8797564 100644 --- a/src/template/root-html.js +++ b/src/template/root-html.js @@ -46,6 +46,15 @@ function usageSection(isPublicHub, hubURL) { +
+ Link: <${hubURL}>; rel="hub", <https://example.com/feed/>; rel="self"
+
+ POST
request to this hub with Form Data:
+ 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
):
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)
+ curl ${hubURL} -d'hub.mode=publish' -d'hub.url=https://example.com/blog_one/feed' -d'hub.url=https://example.com/blog_two/feed'
+
+
This hub only serves specific topics.
@@ -120,12 +135,15 @@ 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 mainContent = [
aboutSection(),
usageSection(isPublicHub, hubURL),
contactSection(contactHTML),
- ]);
+ ];
+ return th.htmlTemplate(1, pageTitle, headElements, navLinks, mainContent, footerEntries,
+ );
};
\ No newline at end of file