Compare commits

..

No commits in common. "b63e466b36c65a430cd3bba1f9a0abce5f56edb5" and "00f4261a6da00438576d8303ddae2f2bca4719bd" have entirely different histories.

2 changed files with 1 additions and 4 deletions

View file

@ -36,7 +36,6 @@ article.share_post = {
"mastodon": "<URL>",
"reddit": "<URL>",
"twitter": "<URL>",
"bluesky": "<URL>",
}
```
@ -62,8 +61,6 @@ 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['twitter']}}" title="Share on Twitter">Twitter</a>
<a href="{{article.share_post['bluesky']}}" title="Share on Bluesky">Bluesky</a>
</p>
</section>
{% endif %}

View file

@ -13,9 +13,9 @@ This plugin adds social share URLs to each article.
from urllib.parse import quote
from bs4 import BeautifulSoup
from pelican.generators import ArticlesGenerator, PagesGenerator
from pelican import contents, signals
from pelican.generators import ArticlesGenerator, PagesGenerator
_create_link_functions = []