mirror of
https://github.com/rmdes/indiekit-syndicator-indienews.git
synced 2026-06-24 15:03:46 +00:00
No description
- JavaScript 100%
Relocated to documentation-central/docs/indienews-design.md Confab-Link: http://localhost:8080/sessions/d6567f44-c576-4acd-9c8c-454aa58fbde9 |
||
|---|---|---|
| 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