minor updates to root HTML
authorJustin Wind <justin.wind+git@gmail.com>
Wed, 1 Sep 2021 19:01:03 +0000 (12:01 -0700)
committerJustin Wind <justin.wind+git@gmail.com>
Wed, 1 Sep 2021 19:01:03 +0000 (12:01 -0700)
.gitignore
config/default.js
src/template/root-html.js

index 622f9a7e6c366ad772872ca4515ae17ae5f0aad4..88f74fe4932c899944f210f070951e7eef5b2971 100644 (file)
@@ -3,3 +3,5 @@ node_modules
 coverage
 .vscode
 *.sqlite*
+static/*.gz
+static/*.br
index 70837b1c34aa3fa5bdec4d8804df22ed50576847..64f45eca22399ba7b44ebae0f586a7306e078650 100644 (file)
@@ -46,7 +46,7 @@ const defaultOptions = {
     pageTitle: packageName, // title on html pages
     footerEntries: [ // common footers on all html pages
       '<a href="https://git.squeep.com/?p=websub-hub;a=tree">Development Repository</a> / <a href="https://github.com/thylacine/websub-hub/">GitHub mirror</a>',
-      '&copy;<time datetime="2021">&#8559;&#8559;&#8553;&#8553;&#8544;</time>',
+      '<small><span class="copyright">&copy;<time datetime="2021">&#8559;&#8559;&#8553;&#8553;&#8544;</time></span></small>',
     ],
     strictSecrets: false, // If true, reject requests with secrets but not over https
     publicHub: true, // Accept publish requests as new topics.
index c68d52a33313810d581029eb2fabf456429a4a54..8797564e54e93b1ef816de4c4e4b6e01269e3b7c 100644 (file)
@@ -46,6 +46,15 @@ function usageSection(isPublicHub, hubURL) {
               </code>
             </figure>
           </li>
+          <li>
+            Ideally, these should be combined in one header.
+            <figure>
+              <figcaption>Example:</figcaption>
+              <code>
+                Link: &lt;${hubURL}&gt;; rel="hub", &lt;https://example.com/feed/&gt;; rel="self"
+              </code>
+            </figure>
+          </li>
         </ul>
       </div>
       <div>
@@ -73,15 +82,21 @@ function usageSection(isPublicHub, hubURL) {
       </div>
       <div>
         <h3>Publishing Updates</h3>
-        Send a <code>POST</code> request to this hub with Form Data:
+        To notify the Hub that a topic&apos;s content has been updated and should be distributed to subscribers, send a <code>POST</code> request with Form Data (<code>application/x-www-form-urlencoded</code>):
         <ul>
           <li>
             <code>hub.mode</code> set to <code>publish</code>
           </li>
           <li>
-            <code>hub.url</code> set to the <code>self</code> link relation of the content
+            <code>hub.url</code> set to the <code>self</code> link relation of the content (this value may be set multiple times, to update more than one topic)
           </li>
         </ul>
+        <figure>
+          <figcaption>Example:</figcaption>
+          <code>
+            curl ${hubURL} -d'hub.mode=publish' -d'hub.url=https://example.com/blog_one/feed' -d'hub.url=https://example.com/blog_two/feed'
+          </code>
+        </figure>
       </div>`
     : `
       <h2>Private Hub</h2>