From: Justin Wind Date: Wed, 1 Sep 2021 19:01:03 +0000 (-0700) Subject: minor updates to root HTML X-Git-Tag: v1.2.1^2~4 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=f10a4ea1e43a9a37306f35677d4d6c7ccb98e894;p=websub-hub minor updates to root HTML --- diff --git a/.gitignore b/.gitignore index 622f9a7..88f74fe 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ node_modules coverage .vscode *.sqlite* +static/*.gz +static/*.br diff --git a/config/default.js b/config/default.js index 70837b1..64f45ec 100644 --- a/config/default.js +++ b/config/default.js @@ -46,7 +46,7 @@ const defaultOptions = { pageTitle: packageName, // title on html pages footerEntries: [ // common footers on all html pages 'Development Repository / GitHub mirror', - '©', + '©', ], strictSecrets: false, // If true, reject requests with secrets but not over https publicHub: true, // Accept publish requests as new topics. diff --git a/src/template/root-html.js b/src/template/root-html.js index c68d52a..8797564 100644 --- a/src/template/root-html.js +++ b/src/template/root-html.js @@ -46,6 +46,15 @@ function usageSection(isPublicHub, hubURL) { +
  • + Ideally, these should be combined in one header. +
    +
    Example:
    + + Link: <${hubURL}>; rel="hub", <https://example.com/feed/>; rel="self" + +
    +
  • @@ -73,15 +82,21 @@ function usageSection(isPublicHub, hubURL) {

    Publishing Updates

    - Send a 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): +
    +
    Example:
    + + curl ${hubURL} -d'hub.mode=publish' -d'hub.url=https://example.com/blog_one/feed' -d'hub.url=https://example.com/blog_two/feed' + +
    ` : `

    Private Hub