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>',
- '©<time datetime="2021">ⅯⅯⅩⅩⅠ</time>',
+ '<small><span class="copyright">©<time datetime="2021">ⅯⅯⅩⅩⅠ</time></span></small>',
],
strictSecrets: false, // If true, reject requests with secrets but not over https
publicHub: true, // Accept publish requests as new topics.
</code>
</figure>
</li>
+ <li>
+ Ideally, these should be combined in one header.
+ <figure>
+ <figcaption>Example:</figcaption>
+ <code>
+ Link: <${hubURL}>; rel="hub", <https://example.com/feed/>; rel="self"
+ </code>
+ </figure>
+ </li>
</ul>
</div>
<div>
</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'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>