{"id":13696101,"url":"https://github.com/pelican-plugins/share-post","last_synced_at":"2025-04-10T04:32:52.962Z","repository":{"id":41875676,"uuid":"346751497","full_name":"pelican-plugins/share-post","owner":"pelican-plugins","description":"Pelican plugin that creates privacy-friendly URLs for sharing the current article","archived":false,"fork":false,"pushed_at":"2024-07-04T21:34:17.000Z","size":85,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-09-14T15:19:57.930Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pelican-plugins.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"custom":"https://donate.getpelican.com","liberapay":"pelican"}},"created_at":"2021-03-11T15:39:37.000Z","updated_at":"2024-08-19T14:45:50.000Z","dependencies_parsed_at":"2024-04-02T06:49:36.604Z","dependency_job_id":null,"html_url":"https://github.com/pelican-plugins/share-post","commit_stats":{"total_commits":48,"total_committers":14,"mean_commits":"3.4285714285714284","dds":0.6041666666666667,"last_synced_commit":"bcd1ee341b0a0aa32cf2f2616d5c48d0815d497e"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Fshare-post","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Fshare-post/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Fshare-post/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelican-plugins%2Fshare-post/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pelican-plugins","download_url":"https://codeload.github.com/pelican-plugins/share-post/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223424667,"owners_count":17142809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T18:00:36.283Z","updated_at":"2025-04-10T04:32:52.949Z","avatar_url":"https://github.com/pelican-plugins.png","language":"Python","funding_links":["https://donate.getpelican.com","https://liberapay.com/pelican"],"categories":["Plugins"],"sub_categories":["Migrated to new architecture"],"readme":"# Share Post: A Plugin for Pelican\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/pelican-plugins/share-post/main.yml?branch=main)](https://github.com/pelican-plugins/share-post/actions)\n[![PyPI Version](https://img.shields.io/pypi/v/pelican-share-post)](https://pypi.org/project/pelican-share-post/)\n[![Downloads](https://img.shields.io/pypi/dm/pelican-share-post)](https://pypi.org/project/pelican-share-post/)\n![License](https://img.shields.io/pypi/l/pelican-share-post?color=blue)\n\nShare Post is a Pelican plugin that creates share links in articles that allow site visitors to share the current article with others in a privacy-friendly manner.\n\nMany web sites have share widgets to let readers share posts on social networks. Most of these widgets are used by vendors for online tracking. These widgets can also be visually-distracting and negatively affect readers’ attention.\n\nShare Post creates old-school URLs for some popular sites which your theme can use. These links do not have the ability to track site visitors. They can also be unobtrusive depending on how Pelican theme uses them.\n\n\nInstallation\n------------\n\nThis plugin can be installed via:\n\n    python -m pip install pelican-share-post\n\nAs long as you have not explicitly added a `PLUGINS` setting to your Pelican settings file, then the newly-installed plugin should be automatically detected and enabled. Otherwise, you must add `share_post` to your existing `PLUGINS` list. For more information, please see the [How to Use Plugins](https://docs.getpelican.com/en/latest/plugins.html#how-to-use-plugins) documentation.\n\nUsage\n-----\n\nThis plugin adds to each Pelican article a dictionary of URLs that, when followed, allows the reader to easily share the article via specific channels. When activated, the plugin adds the attribute `share_post` to each article with the following format:\n\n```python\narticle.share_post = {\n\t\"email\": \"\u003cURL\u003e\",\n\t\"diaspora\": \"\u003cURL\u003e\",\n\t\"facebook\": \"\u003cURL\u003e\",\n\t\"hacker-news\": \"\u003cURL\u003e\",\n\t\"linkedin\": \"\u003cURL\u003e\",\n\t\"mastodon\": \"\u003cURL\u003e\",\n\t\"reddit\": \"\u003cURL\u003e\",\n\t\"twitter\": \"\u003cURL\u003e\",\n\t\"bluesky\": \"\u003cURL\u003e\",\n}\n```\n\nYou can then access those variables in your template. For example:\n\n```html+jinja\n{% if article.share_post and article.status != 'draft' %}\n\u003csection\u003e\n  \u003cp id=\"post-share-links\"\u003e\n    Share on:\n    \u003ca href=\"{{article.share_post['email']}}\" title=\"Share via Email\"\u003eEmail\u003c/a\u003e\n    ❄\n    \u003ca href=\"{{article.share_post['diaspora']}}\" title=\"Share on Diaspora\"\u003eDiaspora\u003c/a\u003e\n    ❄\n    \u003ca href=\"{{article.share_post['facebook']}}\" title=\"Share on Facebook\"\u003eFacebook\u003c/a\u003e\n    ❄\n    \u003ca href=\"{{article.share_post['hacker-news']}}\" title=\"Share on Hacker News\"\u003eHacker News\u003c/a\u003e\n    ❄\n    \u003ca href=\"{{article.share_post['linkedin']}}\" title=\"Share on LinkedIn\"\u003eLinkedIn\u003c/a\u003e\n    ❄\n    \u003ca href=\"{{article.share_post['mastodon']}}\" title=\"Share on Mastodon\"\u003eMastodon\u003c/a\u003e\n    ❄\n    \u003ca href=\"{{article.share_post['reddit']}}\" title=\"Share via Reddit\"\u003eReddit\u003c/a\u003e\n    ❄\n    \u003ca href=\"{{article.share_post['twitter']}}\" title=\"Share on Twitter\"\u003eTwitter\u003c/a\u003e\n    ❄\n    \u003ca href=\"{{article.share_post['bluesky']}}\" title=\"Share on Bluesky\"\u003eBluesky\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/section\u003e\n{% endif %}\n```\n\nContributing\n------------\n\nContributions are welcome and much appreciated. Every little bit helps. You can contribute by improving the documentation, adding missing features, and fixing bugs. You can also help out by reviewing and commenting on [existing issues][].\n\nTo start contributing to this plugin, review the [Contributing to Pelican][] documentation, beginning with the **Contributing Code** section.\n\n[existing issues]: https://github.com/pelican-plugins/share-post/issues\n[Contributing to Pelican]: https://docs.getpelican.com/en/latest/contribute.html\n\n\nContributors\n------------\n\n* [Talha Mansoor](https://www.oncrashreboot.com) - talha131@gmail.com\n* [Jonathan DEKHTIAR](https://github.com/DEKHTIARJonathan) - contact@jonathandekhtiar.eu\n* [Justin Mayer](https://justinmayer.com)\n* [Leonardo Giordani](https://github.com/lgiordani)\n* [Maurizio Paglia](https://github.com/mpaglia0)\n\n\nLicense\n-------\n\nThis project is licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelican-plugins%2Fshare-post","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpelican-plugins%2Fshare-post","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelican-plugins%2Fshare-post/lists"}