@rmdes/indiekit-syndicator-indienews
v1.0.1
Published
IndieNews syndicator for Indiekit
Maintainers
Readme
@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-indienewsConfiguration
// 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
