diff options
| author | Dennis Fink | 2026-11-22 11:11:23 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-11-22 11:11:23 +0100 |
| commit | 779d10051556242ba1e70b70f6c6e8f1158e861d (patch) | |
| tree | 284d8228491f0a7ee9422a2100149adebad5aaa7 /webmentions_ssg/templates | |
| parent | ef90dc381322122ecfb9af039cf790de92807514 (diff) | |
| download | webmentions-ssg-779d10051556242ba1e70b70f6c6e8f1158e861d.tar.gz webmentions-ssg-779d10051556242ba1e70b70f6c6e8f1158e861d.zip | |
Render plain-text digests with source, target, per-Webmention detail
links, and a filtered dashboard link while preserving singular and
plural wording.
Freeze the notified rows before sending so mentions arriving during
delivery are left for the next digest.
BREAKING CHANGE: enabling `DIGEST_EMAIL` now requires `SERVER_NAME` so
background workers can generate absolute administration URLs.
Diffstat (limited to '')
| -rw-r--r-- | webmentions_ssg/templates/emails/verified_digest.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/webmentions_ssg/templates/emails/verified_digest.txt b/webmentions_ssg/templates/emails/verified_digest.txt new file mode 100644 index 0000000..959a1cf --- /dev/null +++ b/webmentions_ssg/templates/emails/verified_digest.txt @@ -0,0 +1,20 @@ +{# SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me> #} +{# SPDX-License-Identifier: BSD-3-Clause #} +Hey, + +Your site has {{ count }} new verified webmention{{ "s" if count != 1 else "" }}! + +{{ "A page on another site links to your content, and we've verified it." if count == 1 else "Other sites are linking to your content, and we've verified the links." }} + +YOUR NEW WEBMENTIONS +-------------------- +{% for mention in mentions %} +{{ loop.index }}. Mentioned by: {{ mention.source }} + Links to: {{ mention.target }} + View details: {{ url_for('webmentions.received_detail', webmention_uuid=mention.uuid, _external=True) }} + +{% endfor %} +See all verified webmentions in your dashboard: +{{ url_for('webmentions.received_list', status='verified', _external=True) }} + +— Webmentions SSG |
