Giter Club home page Giter Club logo

Comments (23)

talha131 avatar talha131 commented on September 25, 2024

this will let user have social links without online tracking

from elegant.

talha131 avatar talha131 commented on September 25, 2024

@tshepang @calfzhou

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
  1. What do you guys think of it?
  2. Which social networks should I add in the plugin?

Personally I think these 4 are more than enough.

from elegant.

tshepang avatar tshepang commented on September 25, 2024

Looks like a good list (those are the 4 most popular I think). It also sounds like a plugin I'd use.

from elegant.

talha131 avatar talha131 commented on September 25, 2024

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.

talha131 avatar talha131 commented on September 25, 2024

mail to, twitter, facebook, google+

from elegant.

talha131 avatar talha131 commented on September 25, 2024

@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.

screen shot 2014-01-21 at 4 58 19 pm

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.

talha131 avatar talha131 commented on September 25, 2024

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.

tshepang avatar tshepang commented on September 25, 2024

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.

talha131 avatar talha131 commented on September 25, 2024

Can you make sure you have the requirements installed?

from elegant.

talha131 avatar talha131 commented on September 25, 2024

@calfzhou did you face any problem or issue with this plugin?

from elegant.

tshepang avatar tshepang commented on September 25, 2024

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.

talha131 avatar talha131 commented on September 25, 2024

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.

tshepang avatar tshepang commented on September 25, 2024

still broken, yes

from elegant.

talha131 avatar talha131 commented on September 25, 2024
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.

talha131 avatar talha131 commented on September 25, 2024

@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.

tshepang avatar tshepang commented on September 25, 2024

There's some issue somewhere, cuz in my blog it does not look so good:

screenshot from 2014-01-22 22 43 40

BTW, why don't you develop with Python 3.3+?

from elegant.

tshepang avatar tshepang commented on September 25, 2024

Also, it's share_post, not share-post.

from elegant.

calfzhou avatar calfzhou commented on September 25, 2024

It works on my site. I'm using python 2.7.3.

Why not use icons (such as font awesome)?

image

image

from elegant.

talha131 avatar talha131 commented on September 25, 2024

@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.

calfzhou avatar calfzhou commented on September 25, 2024

OK, I catch you point. Agree with you.

from elegant.

talha131 avatar talha131 commented on September 25, 2024

@tshepang I tried it locally and the plugin is working flawlessly. Please see the screenshot

screen shot 2014-01-24 at 5 46 14 pm

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.

talha131 avatar talha131 commented on September 25, 2024

@tshepang what's up? Any update on it?

from elegant.

talha131 avatar talha131 commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.