forked from github/share-post
Compare commits
2 commits
00f4261a6d
...
b63e466b36
| Author | SHA1 | Date | |
|---|---|---|---|
| b63e466b36 | |||
| 77e452d25e |
2 changed files with 4 additions and 1 deletions
|
|
@ -36,6 +36,7 @@ article.share_post = {
|
||||||
"mastodon": "<URL>",
|
"mastodon": "<URL>",
|
||||||
"reddit": "<URL>",
|
"reddit": "<URL>",
|
||||||
"twitter": "<URL>",
|
"twitter": "<URL>",
|
||||||
|
"bluesky": "<URL>",
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -61,6 +62,8 @@ You can then access those variables in your template. For example:
|
||||||
<a href="{{article.share_post['reddit']}}" title="Share via Reddit">Reddit</a>
|
<a href="{{article.share_post['reddit']}}" title="Share via Reddit">Reddit</a>
|
||||||
❄
|
❄
|
||||||
<a href="{{article.share_post['twitter']}}" title="Share on Twitter">Twitter</a>
|
<a href="{{article.share_post['twitter']}}" title="Share on Twitter">Twitter</a>
|
||||||
|
❄
|
||||||
|
<a href="{{article.share_post['bluesky']}}" title="Share on Bluesky">Bluesky</a>
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@ This plugin adds social share URLs to each article.
|
||||||
from urllib.parse import quote
|
from urllib.parse import quote
|
||||||
|
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
from pelican.generators import ArticlesGenerator, PagesGenerator
|
|
||||||
|
|
||||||
from pelican import contents, signals
|
from pelican import contents, signals
|
||||||
|
from pelican.generators import ArticlesGenerator, PagesGenerator
|
||||||
|
|
||||||
_create_link_functions = []
|
_create_link_functions = []
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue