[gimp-web/testing] Add 'via' and 'title' to Twitter shares



commit eb9c5d9e58439637643f503c6629fc6cff20b6bc
Author: Pat David <patdavid gmail com>
Date:   Tue Nov 28 12:18:25 2017 -0600

    Add 'via' and 'title' to Twitter shares
    
    Added 'via @GIMP_Official' and the title of the article to the
    Twitter share link at the bottom of article posts.
    
    This will now make shares via this link look like:
    
    "{TITLE} {URL} via @GIMP_Official"

 themes/newgimp/templates/article.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/themes/newgimp/templates/article.html b/themes/newgimp/templates/article.html
index 181feb6..10458d1 100644
--- a/themes/newgimp/templates/article.html
+++ b/themes/newgimp/templates/article.html
@@ -96,7 +96,7 @@
             <div class='column full social'>
                 <p>
                 Share this on: <a href="https://plus.google.com/share?url=https://www.gimp.org/{{ 
article.url|urlencode }}" target="_blank" title="Share this post on Google+">Google+</a> |
-                <a href="https://twitter.com/intent/tweet?url=https://www.gimp.org/{{ article.url|urlencode 
}}" target="_blank" title="Share this post on twitter">twitter</a> |
+                <a href="https://twitter.com/intent/tweet?url=https://www.gimp.org/{{ article.url|urlencode 
}}&via=GIMP_Official&text={{ article.title|striptags }}" target="_blank" title="Share this post on 
twitter">twitter</a> |
                 <a href="https://www.facebook.com/sharer/sharer.php?u=https://www.gimp.org/{{ 
article.url|urlencode }}" target="_blank" title="Share this post on Facebook">Facebook</a>
                 </p>
             </div>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]