No description
  • JavaScript 100%
Find a file
2026-03-16 15:24:16 +01:00
assets Initial commit 2026-02-04 13:11:04 +01:00
lib Initial commit 2026-02-04 13:11:04 +01:00
.gitignore Initial commit 2026-02-04 13:11:04 +01:00
CLAUDE.md docs: add CLAUDE.md technical reference 2026-02-13 18:23:49 +01:00
index.js Initial commit 2026-02-04 13:11:04 +01:00
package.json chore: bump version to 1.0.1 2026-02-06 16:41:22 +01:00
README.md Initial commit 2026-02-04 13:11:04 +01:00

@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:

  1. Your post must have a u-syndication link pointing to https://news.indieweb.org/{lang}
  2. The plugin sends a webmention with your post URL as source
  3. IndieNews returns a permalink URL which is stored in your post's syndication property

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