From 65f1150e68dc4af6cc0be09ec8920886d4e72b8e Mon Sep 17 00:00:00 2001 From: yogsototh Date: Sat, 16 Mar 2013 09:33:16 +0100 Subject: [PATCH] publishing --- Scratch/fr/blog/feed/feed.xml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Scratch/fr/blog/feed/feed.xml b/Scratch/fr/blog/feed/feed.xml index 0e18d1c..8854075 100644 --- a/Scratch/fr/blog/feed/feed.xml +++ b/Scratch/fr/blog/feed/feed.xml @@ -21,6 +21,19 @@

tlpl: Les boutons des réseaux sociaux traquent vos utilisateurs, ont un design incohérent avec celui de votre site, utilisent des ressources, ralentissent le rendu de vos pages.

Faite les choses bien. Utilisez des liens statiques.

+

Si vous n’avez pas envie de lire, copiez et collez simplement le code suivant dans votre html :

+
<script>
+var url=document.location;
+document.write(
+  '<'+'a href="https://twitter.com/home?status='+url+'" '
+    +'target="_blank">Tweet this<'+'/a> - '
+
++ '<'+'a href="http://www.facebook.com/sharer/sharer.php?u='+url+'" '
+    +'target="_blank">Like this<'+'/a> - '
+
++ '<'+'a href="https://plus.google.com/share?url='+url+'" '
+    +'target="_blank">Share on G+<'+'/a>');
+</script>

The problem

@@ -70,7 +83,7 @@ target="_blank">Like this</a> <a href="https://plus.google.com/share?url=$url$" - target="_blank">+1 this</a> + target="_blank">Share on G+</a>

But you have to replace $url$ by the current url.

Solution 2 (Just copy/paste):

If you don’t want to write the url yourself, you could use some minimal js:

@@ -84,7 +97,7 @@ document.write( +'target="_blank">Like this<'+'/a> - ' + '<'+'a href="https://plus.google.com/share?url='+url+'" ' - +'target="_blank">+1 this<'+'/a>'); + +'target="_blank">Share on G+<'+'/a>'); </script>

Here is the result:

@@ -98,7 +111,7 @@ document.write( +'target="_blank">Like this<'+'/a> - ' + '<'+'a href="https://plus.google.com/share?url='+url+'" ' - +'target="_blank">+1 this<'+'/a>'); + +'target="_blank">Share on G+<'+'/a>');