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
pelican_summary_link-0.2.3.tar.gz 3.5 kB Details

Built distribution (wheel)

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

Total release size: 7.4 kB

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

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