mirror of
https://github.com/rmdes/indiekit-syndicator-indienews.git
synced 2026-08-25 03:55:08 +00:00
No description
- JavaScript 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
IndieNews fetches the source URL and looks for a link to its target in the markup it finds there. Post URLs that redirect — such as a path missing the trailing slash a site canonicalises to — meant IndieNews read the redirect response instead of the post, and rejected every submission with no_link_found. Resolve the post URL before submitting and send the address it is served from. Also verify the IndieNews link is present first, so posts that have not been rebuilt with it yet are left to retry rather than submitted and rejected. |
||
| assets | ||
| lib | ||
| .gitignore | ||
| CLAUDE.md | ||
| index.js | ||
| package.json | ||
| README.md | ||
@rmdes/indiekit-syndicator-indienews
IndieNews syndicator for Indiekit.
Submits posts to IndieNews, a community-curated aggregator of IndieWeb-related content.
Installation
npm install @rmdes/indiekit-syndicator-indienews
Configuration
// indiekit.config.js
export default {
plugins: ["@rmdes/indiekit-syndicator-indienews"],
"@rmdes/indiekit-syndicator-indienews": {
languages: ["en", "fr"], // Languages to register as syndication targets
checked: false // Pre-select in syndication UI
}
};
Options
| Option | Type | Default | Description |
|---|---|---|---|
languages |
string[] |
["en"] |
Language codes to register as syndication targets |
checked |
boolean |
false |
Whether to pre-select this target in the UI |
Supported Languages
| Code | Name |
|---|---|
en |
English |
fr |
Français |
de |
Deutsch |
es |
Español |
ja |
日本語 |
zh |
中文 |
How It Works
IndieNews uses webmentions for submission:
- Your post must have a
u-syndicationlink pointing tohttps://news.indieweb.org/{lang} - The plugin sends a webmention with your post URL as
source - IndieNews returns a permalink URL which is stored in your post's
syndicationproperty
Template Requirement
Your site template must render pending syndication targets as u-syndication links. For Eleventy, add this to your post template:
{% if mpSyndicateTo %}
<div class="hidden">
{% for url in mpSyndicateTo %}
{% if "news.indieweb.org" in url %}
<a href="{{ url }}" class="u-syndication" rel="syndication">IndieNews</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
No Credentials Required
Unlike most syndicators, IndieNews doesn't require API keys or authentication. Submission is done entirely via webmentions.
License
MIT