mirror of
https://github.com/slurdge/goeland.git
synced 2026-11-11 13:13:58 +00:00
[GH-ISSUE #185] Patch to add URL variable to template #36
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: slurdge/goeland#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @clipcarl on GitHub (Dec 17, 2023).
Original GitHub issue: https://github.com/slurdge/goeland/issues/185
The attached huge and complicated patch adds a URL variable for use in the email template to allow for adding a clickable link to to the original article like so:
Patch:
goeland-add_url_var.patch.txt
@slurdge commented on GitHub (Dec 17, 2023):
Hello, it seems exactly like this one : https://github.com/slurdge/goeland/pull/178/commits
I'm still confused on what is the expected output compared to use the "IncludeLink" filter. Could you show me an example ?
@clipcarl commented on GitHub (Dec 18, 2023):
So it does! I guess someone else beat me to it. I'll close this one then.
@slurdge commented on GitHub (Dec 18, 2023):
Wait ! I still don't understand the goal :-) So I won't merge it until I grasp the best way to achieve what is needed. Please comment either here or on the pull request.
Ideally show me a screenshot and/or html of what you want to achieve.
@slurdge commented on GitHub (Dec 18, 2023):
Also, is this the same as https://github.com/slurdge/goeland/discussions/104 ?
@clipcarl commented on GitHub (Dec 18, 2023):
The goal is to allow for adding a clickable link to to the original article in the email generated by goeland. It is the same as #178 and #104 .
The documentation suggests that IncludeLink only works when generating digests. I wish to add the link when not using digests.
@slurdge commented on GitHub (Dec 18, 2023):
Ah ! So you mean, take a source, have one email per entry, and each entry has the link back to the website ? Basically, let's say 10x the emails, and each
<h1>has a link right ?If so I think I can make inclueLink work all the time.
@clipcarl commented on GitHub (Dec 18, 2023):
Yes. One generated email for each RSS article and the generated email has a link to the full article.
I customize the style of the link and its placement in the email's template so if IncludeLink automatically adds something like
<h1>that wouldn't work for me. Also I'm not sure if IncludeLink would allow for customizing the location of the link in the email which I also do.My preference would be to have #178 even if you do change IncludeLink.
Thanks!
@slurdge commented on GitHub (Dec 18, 2023):
Yeah that would do exactly that.
I understand. I'll merge the PR but not the bit that changes the default template.
Also, if you have nice email templates, feel free to share them, I'm always hoping to add more.
@slurdge commented on GitHub (Dec 18, 2023):
Done in v0.18.0
@clipcarl commented on GitHub (Dec 18, 2023):
Thank you!