Comments (23)
this will let user have social links without online tracking
from elegant.
I want to show links to share the post on different social networks via Pelican Plugin.
To keep theme clean, I don't want to use icons or images from these social sites. I want simple links, clicking on which will share article on social sites.
If you like this article, please share it on
Twitter Facebook Google+ LinkedIn
- What do you guys think of it?
- Which social networks should I add in the plugin?
Personally I think these 4 are more than enough.
from elegant.
Looks like a good list (those are the 4 most popular I think). It also sounds like a plugin I'd use.
from elegant.
Also add email link
mailto:?subject=How%20Designers%20Can%20Help%20Developers%20by%20Matt%20Gemmell&body=http://mattgemmell.com/how-designers-can-help-developers/
from elegant.
mail to, twitter, facebook, google+
from elegant.
@calfzhou @tshepang @silverhook
Need help to test this feature. First you need new Pelican plugin from my repo.
cd pelican-plugins
git checkout -b test-share-post-feature
git pull --no-ff https://github.com/talha131/pelican-plugins.git share-post
This will add share-post
plugin to your plugins repository.
Now add share-post
in PLUGINS
in your pelicanconf.py
. Pull my latest changes from Elegant repo. Build and test!
This is what you will see at the end of your article.
I am still working on the visual style so it may be different from the screenshot.
Can you please test the validity of the links? Are all four links correct? Does Facebook link shows correct summary of the article?
from elegant.
Also can you specify on which version of Python you have tested it? I have tested it on 2.7.6. I need to make sure it does not break on 3.3.
from elegant.
When building my blog, I get:
ERROR: Can't find plugin `share-post`: cannot import name quote
Using share_post
instead in my PLUGINS gives:
ERROR: Can't find plugin `share_post`: cannot import name quote
I use Python 3.3.
from elegant.
Can you make sure you have the requirements installed?
from elegant.
@calfzhou did you face any problem or issue with this plugin?
from elegant.
In requirements
, is urllib part of stdlib? If so, why mention it as a dependency? I do have the soup that happens to be pretty, and it is at version 4.
from elegant.
In
requirements
, is urllib part of stdlib?
I am not sure about this part. I will look into it.
Is the plugin still broken for you?
from elegant.
still broken, yes
from elegant.
from urllib import quote
should be changed to
from urllib.parse import quote
Now I need to figure out how to write code that can work on Python2 along with Python3.
Meanwhile can you please make the change on your copy and try it.
from elegant.
@tshepang I have fixed the issue. The code should work without any problem now. Can you please try it again? To be clear you do not need to edit any file anymore.
from elegant.
There's some issue somewhere, cuz in my blog it does not look so good:
BTW, why don't you develop with Python 3.3+?
from elegant.
Also, it's share_post
, not share-post
.
from elegant.
It works on my site. I'm using python 2.7.3.
Why not use icons (such as font awesome)?
from elegant.
@calfzhou Here are the reasons for using text instead of icons.
Internet has trained me to ignore these share widgets. As soon as I see them near the end of the page, I automatically get a cue that the article is over (or almost over). No need to go on. That's why people keep trying different positions for these widgets, to make readers notice them and use them. These icons have been used to death. We have seem them so much that more often we tune them out.
Having textual links whose style is not very different from the article's content, will make reader read it, instead of scanning and ignore it. It's kinda similar to my arguments for this issue #31.
Secondly, I don't think icons look Elegant at all. As I said these icons have been done to death!
To be honest I am not satisfied with the social icons in the sidebar too. I am looking for something better but haven't found it yet. This blog has much better and sharper looking icons.
Currently we use FontAwesome for quote symbol (for every quote block #41) and for social icons. There is a huge part of FontAwesome that we don't use at all.
I wish I can find something better which has the versatility of FontAwesome and sharpness of a high quality image.
from elegant.
OK, I catch you point. Agree with you.
from elegant.
@tshepang I tried it locally and the plugin is working flawlessly. Please see the screenshot
Here is the output,
$ python --version
Python 3.3.3
$ pip freeze
Jinja2==2.7.2
MarkupSafe==0.18
Pygments==1.6
Unidecode==0.04.14
beautifulsoup4==4.3.2
blinker==1.3
cssmin==0.2.0
docutils==0.11
feedgenerator==1.7
pelican==3.3
pytz==2013.9
six==1.5.2
smartypants==1.8.3
typogrify==2.0.1
webassets==0.9
I am don't understand why it is not working at your end!
from elegant.
@tshepang what's up? Any update on it?
from elegant.
I am closing this issue because I was unable to reproduce the issue on Python 2.7 and 3.3. Please comment on the issue if you find something is amiss.
from elegant.
Related Issues (20)
- CRITICAL: 'AUTHORS' is undefined
- [Help] Host fonts and js libraries locally? HOT 3
- Make Elegant REUSE compliant
- Request: Add a generic social icon in the sidebar
- Request: Add new social icon in the sidebar: XMPP/Jabber, Matrix, tildes HOT 1
- [BUG] Search does not work on project homepage/documentation HOT 1
- [BUG] Search does not work on Elegant 5.4.0 and Pelican 4.7.1 HOT 9
- Improve the index pages pagination by implementing the new option from Pelican 4.6
- Option to create captions for figures HOT 1
- [Help] How to turn off line wrapping in the code blocks
- [Help] How to insert permalinks to headings?
- Add a link to RSS/Atom feed
- Support for simple stand-alone web analytics borrowed from mkws HOT 1
- Gallery PhotoSwipe Page Not work [BUG]
- [Help] 404 not found with `search` widget queries? HOT 4
- [BUG] Main website host (elegant.oncrashreboot.com) is NXDOMAIN HOT 3
- Replace Font Awesome for Fork Awesome
- Photo Plugin seems to support inline galleries now
- Is there a plan to support a dark version of the theme HOT 1
- Make Elegant more accessible (a11y)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elegant.