Pelican plugin to append a configurable link to article summaries.
Project description
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
SUMMARY_LINK— explicit override, always wins (including""to disable)SUMMARY_LINK_TRANSLATIONS— per-lang overrides merged on top of built-ins- Built-in translations matched by article
Lang "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>'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pelican_summary_link-0.2.2.tar.gz.
File metadata
- Download URL: pelican_summary_link-0.2.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb72c3e4fbd0f9fbf2381f722f45565b6c88de11fd9472b61bd21e33256621b8
|
|
| MD5 |
3aaf157c74ee66e068993e9c0dc9ee6a
|
|
| BLAKE2b-256 |
98cdd82dfd4010138001c07bc0ffa866f939daa5c1eeb19488d6a12033b86b78
|
Provenance
The following attestation bundles were made for pelican_summary_link-0.2.2.tar.gz:
Publisher:
publish-to-pypi.yaml on Lee-W/pelican-summary-link
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pelican_summary_link-0.2.2.tar.gz -
Subject digest:
eb72c3e4fbd0f9fbf2381f722f45565b6c88de11fd9472b61bd21e33256621b8 - Sigstore transparency entry: 1392044557
- Sigstore integration time:
-
Permalink:
Lee-W/pelican-summary-link@38757f4a5d045f7cccf0bfc1130140438a53daad -
Branch / Tag:
refs/tags/0.2.2 - Owner: https://github.com/Lee-W
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yaml@38757f4a5d045f7cccf0bfc1130140438a53daad -
Trigger Event:
push
-
Statement type:
File details
Details for the file pelican_summary_link-0.2.2-py3-none-any.whl.
File metadata
- Download URL: pelican_summary_link-0.2.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05e1ccaaa71748c3bb3ebb8e64a172ac89e2f33c09c07a87343466b7f555f6b6
|
|
| MD5 |
ba310305d8953843f8eb9e4375f59a3d
|
|
| BLAKE2b-256 |
e7aee0e651355e19052fc5803b19a7f9d4dbe57b1d9a2c38d7f9d563cc2894c5
|
Provenance
The following attestation bundles were made for pelican_summary_link-0.2.2-py3-none-any.whl:
Publisher:
publish-to-pypi.yaml on Lee-W/pelican-summary-link
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pelican_summary_link-0.2.2-py3-none-any.whl -
Subject digest:
05e1ccaaa71748c3bb3ebb8e64a172ac89e2f33c09c07a87343466b7f555f6b6 - Sigstore transparency entry: 1392044577
- Sigstore integration time:
-
Permalink:
Lee-W/pelican-summary-link@38757f4a5d045f7cccf0bfc1130140438a53daad -
Branch / Tag:
refs/tags/0.2.2 - Owner: https://github.com/Lee-W
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yaml@38757f4a5d045f7cccf0bfc1130140438a53daad -
Trigger Event:
push
-
Statement type: