forked from github/share-post
Compare commits
No commits in common. "b63e466b36c65a430cd3bba1f9a0abce5f56edb5" and "00f4261a6da00438576d8303ddae2f2bca4719bd" have entirely different histories.
b63e466b36
...
00f4261a6d
2 changed files with 1 additions and 4 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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 = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue