63 lines
1.5 KiB
ReStructuredText
63 lines
1.5 KiB
ReStructuredText
|
.. title: Add Custom Feeds To Your Site
|
||
|
.. slug: 2024-11-22-custom-feed
|
||
|
.. date: 2024-11-22 3:02:09 UTC
|
||
|
.. tags: atom, html, json, rdf, rss, server, syndication
|
||
|
.. category: journal
|
||
|
.. link: 2024-11-22-custom-feed
|
||
|
.. description: Utilize your social feed as a news source on your homesite
|
||
|
.. type: text
|
||
|
|
||
|
If you utilize XMPP, OStatus or ActivityPub accounts with services such as
|
||
|
Movim, StatusNet, Pleroma, Akkoma, Mitra, GNU Social, Mastodon, SoapBox or
|
||
|
others, then you can use your respective syndication feed of your account on
|
||
|
your home site, by adding the following HTML lines, respectively.
|
||
|
|
||
|
While any code would work, it is recommended to use the code with the proper
|
||
|
"type" attribute.
|
||
|
|
||
|
Atom Syndication Format
|
||
|
-----------------------
|
||
|
|
||
|
Most recommended.
|
||
|
|
||
|
.. code:: xml
|
||
|
|
||
|
<link rel="alternate" type="application/atom+xml" title="Set a title (Atom)" href="https://path/to/file.atom">
|
||
|
|
||
|
JSON Feed
|
||
|
---------
|
||
|
|
||
|
Lesser recommended.
|
||
|
|
||
|
.. code:: xml
|
||
|
|
||
|
<link rel="alternate" type="application/json" title="Set a title (JSON)" href="https://path/to/file.json">
|
||
|
|
||
|
RDF
|
||
|
---
|
||
|
|
||
|
When applicable.
|
||
|
|
||
|
.. code:: xml
|
||
|
|
||
|
<link rel="alternate" type="application/rdf+xml" title="Set a title (RDF)" href="https://path/to/file.rdf">
|
||
|
|
||
|
RSS
|
||
|
---
|
||
|
|
||
|
Least recommended.
|
||
|
|
||
|
.. code:: xml
|
||
|
|
||
|
<link rel="alternate" type="application/rss+xml" title="Set a title (RSS)" href="https://path/to/file.rss">
|
||
|
|
||
|
Conclusion
|
||
|
----------
|
||
|
|
||
|
You are not limited to your ActivityPub or XMPP accounts, and you can add any
|
||
|
source of any account and type that you desire.
|
||
|
|
||
|
Good luck!
|
||
|
|
||
|
Schimon
|