Fragmented Notes

This is where I write about learning to code

Sharing With Diaspora

In the last weeks, I had some reasons to think about privacy issues and social networks. I stopped using Facebook and began using Diaspora* and GNU/Social more than before. So when I found a sharing service earlier today, to share webpages into the Diaspora * Federation, I used it as an excuse to get rid of the Twitter button and the Disqus comments and put in the Code to share to Diaspora * .

If you want to do the same, you will find the part of Octopress, that covers the sharing codes in “source/_includes/post/sharing.html”. Just put in the code from the sharing site and you are good to go:

Diaspora sharing link, without JavaScript
1
2
3
<a href="http://sharetodiaspora.github.io/?title=Your title here&url=http://www.example.com/some/path" target="_blank">
<img src="http://sharetodiaspora.github.io/favicon.png" style="border: 0px solid;" />
</a>

I only changed it a little, of course filling in the template code for the post-title and post-url:

Diaspora sharing link with Octopress Tags (diaspora.html) download
1
<a href="https://sharetodiaspora.github.io/?title={{ page.title }}&url={{ site.url }}{{ page.url }}" target="_blank" style="font-size: 0.85;">Share on Diaspora<img src="http://sharetodiaspora.github.io/favicon.png" style="border: 0px solid;" /></a>