Simple feed ping notifier for static sites (i.e. Jekyll). Currently supports Ping-O-Matic and PubSubHubbub.
- Update the
$config
var inping.php
to match your site's information. - Make sure
ping.php
is deployed with your site to a publicly accessible URL. - Be sure to add the correct
hub
information to your RSS/Atom feed. (You can probably stick with Google's as in the examples below.)
For Atom:
<feed xmlns="http://www.w3.org/2005/Atom">
<link rel="hub" href="https://pubsubhubbub.appspot.com"/>
...
</feed>
And for RSS:
<rss xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/>
...
</channel>
</rss>
Run the script. Either in a browser, or via your own code that makes an HTTP Get/Post call to it. For simplicity, setup a post-deploy script that triggers it when your site is deployed.