mirror of
https://github.com/pelican-plugins/share-post.git
synced 2026-05-28 21:06:13 +02:00
Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b77fb8143 | ||
|
|
35aec507f4 |
4 changed files with 15 additions and 2 deletions
|
|
@ -1,6 +1,14 @@
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
1.2.1 - 2025-03-23
|
||||||
|
------------------
|
||||||
|
|
||||||
|
Add title to Bluesky
|
||||||
|
|
||||||
|
Contributed by [Daniel Lemos](https://github.com/xspager) via [PR #34](https://github.com/pelican-plugins/share-post/pull/34/)
|
||||||
|
|
||||||
|
|
||||||
1.2.0 - 2025-01-29
|
1.2.0 - 2025-01-29
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ def create_link_linkedin(title, url, content):
|
||||||
@create_link
|
@create_link
|
||||||
def create_link_bluesky(title, url, content):
|
def create_link_bluesky(title, url, content):
|
||||||
# https://docs.bsky.app/docs/advanced-guides/intent-links
|
# https://docs.bsky.app/docs/advanced-guides/intent-links
|
||||||
return f"https://bsky.app/intent/compose?text={url}"
|
return f"https://bsky.app/intent/compose?text={title}%20{url}"
|
||||||
|
|
||||||
|
|
||||||
def create_share_links(content):
|
def create_share_links(content):
|
||||||
|
|
|
||||||
|
|
@ -61,3 +61,8 @@ def test_share_post(tmp_folder):
|
||||||
share_links["reddit"]
|
share_links["reddit"]
|
||||||
== "https://www.reddit.com/submit?url=/test-post.html&title=Test%20post"
|
== "https://www.reddit.com/submit?url=/test-post.html&title=Test%20post"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
assert (
|
||||||
|
share_links["bluesky"]
|
||||||
|
== "https://bsky.app/intent/compose?text=Test%20post%20/test-post.html"
|
||||||
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "pelican-share-post"
|
name = "pelican-share-post"
|
||||||
version = "1.2.0"
|
version = "1.2.1"
|
||||||
description = "A Pelican plugin to create share URLs of article"
|
description = "A Pelican plugin to create share URLs of article"
|
||||||
authors = [{name = "Talha Mansoor", email = "talha131@gmail.com"}, {name = "Justin Mayer", email = "entroP@gmail.com"}]
|
authors = [{name = "Talha Mansoor", email = "talha131@gmail.com"}, {name = "Justin Mayer", email = "entroP@gmail.com"}]
|
||||||
license = {text = "MIT"}
|
license = {text = "MIT"}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue