Skip to content

Commit f10a4ea

Browse files
committedSep 1, 2021
minor updates to root HTML
1 parent 085b55f commit f10a4ea

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed
 

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ node_modules
33
coverage
44
.vscode
55
*.sqlite*
6+
static/*.gz
7+
static/*.br

‎config/default.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const defaultOptions = {
4646
pageTitle: packageName, // title on html pages
4747
footerEntries: [ // common footers on all html pages
4848
'<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>',
49-
'&copy;<time datetime="2021">&#8559;&#8559;&#8553;&#8553;&#8544;</time>',
49+
'<small><span class="copyright">&copy;<time datetime="2021">&#8559;&#8559;&#8553;&#8553;&#8544;</time></span></small>',
5050
],
5151
strictSecrets: false, // If true, reject requests with secrets but not over https
5252
publicHub: true, // Accept publish requests as new topics.

‎src/template/root-html.js

+17-2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ function usageSection(isPublicHub, hubURL) {
4646
</code>
4747
</figure>
4848
</li>
49+
<li>
50+
Ideally, these should be combined in one header.
51+
<figure>
52+
<figcaption>Example:</figcaption>
53+
<code>
54+
Link: &lt;${hubURL}&gt;; rel="hub", &lt;https://example.com/feed/&gt;; rel="self"
55+
</code>
56+
</figure>
57+
</li>
4958
</ul>
5059
</div>
5160
<div>
@@ -73,15 +82,21 @@ function usageSection(isPublicHub, hubURL) {
7382
</div>
7483
<div>
7584
<h3>Publishing Updates</h3>
76-
Send a <code>POST</code> request to this hub with Form Data:
85+
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>):
7786
<ul>
7887
<li>
7988
<code>hub.mode</code> set to <code>publish</code>
8089
</li>
8190
<li>
82-
<code>hub.url</code> set to the <code>self</code> link relation of the content
91+
<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)
8392
</li>
8493
</ul>
94+
<figure>
95+
<figcaption>Example:</figcaption>
96+
<code>
97+
curl ${hubURL} -d'hub.mode=publish' -d'hub.url=https://example.com/blog_one/feed' -d'hub.url=https://example.com/blog_two/feed'
98+
</code>
99+
</figure>
85100
</div>`
86101
: `
87102
<h2>Private Hub</h2>

0 commit comments

Comments
 (0)
Please sign in to comment.