Skip to main content

pelican-summary-link

A Pelican plugin that appends a configurable link to article summaries after the <!--more--> marker.

Installation

uv add pelican-summary-link

Usage

Add the plugin to your Pelican configuration:

PLUGINS = [
    "pelican.plugins.summary_link",
]

The plugin automatically appends a localized link to each article summary based on the article's Lang metadata.

Settings

Setting Default Description
SUMMARY_LINK (unset) Override link text for all articles. Set to "" to disable the link entirely.
SUMMARY_LINK_FORMAT <a class="summary-link" href="{url}">{text}</a> HTML template. Supports {url} and {text} placeholders.
SUMMARY_LINK_TRANSLATIONS {} Per-language link text, merged on top of built-in translations.

Built-in translations

Lang Text
en Continue →
zh-tw 繼續閱讀 →
zh 繼續閱讀 →
ja 続きを読む →

Resolution order

  1. SUMMARY_LINK — explicit override, always wins (including "" to disable)
  2. SUMMARY_LINK_TRANSLATIONS — per-lang overrides merged on top of built-ins
  3. Built-in translations matched by article Lang
  4. "Continue →" fallback for unknown languages

Examples

Disable the link globally:

SUMMARY_LINK = ""

Add a translation for French:

SUMMARY_LINK_TRANSLATIONS = {
    "fr": "Lire la suite →",
}

Custom link format:

SUMMARY_LINK_FORMAT = '<span class="more"><a href="{url}">{text}</a></span>'

Metadata

Release files for pelican-summary-link 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pelican-summary-link 0.2.3
File Size Uploaded Provenance Actions
pelican_summary_link-0.2.3.tar.gz 3.5 kB With provenance Details for pelican_summary_link-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pelican-summary-link 0.2.3
File Interpreter ABI Platform Actions
pelican_summary_link-0.2.3-py3-none-any.whl Python 3 none any Details for pelican_summary_link-0.2.3-py3-none-any.whl

Total release size: 7.4 kB

Security for pelican-summary-link 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page