Commits

Tunghsiao Liu committed db1bdd2

Tweet URL fix

Comments (0)

Files changed (1)

source/_layouts/post.html

       {% if page.previous.url %}
         <a class="basic-alignment left" href="{{page.previous.url}}" title="Previous Post: {{page.previous.title}}">&laquo; {{page.previous.title}}</a>
       {% endif %}
-        <a class="tweet" target="_blank" href="http://twitter.com/home?status={{ page.title | cgi_escape }}{{ " by @" | cgi_escape }}{{ site.twitter | cgi_escape }}{{ " " | cgi_escape }}{{ site.url | cgi_escape }}{{ page.url | cgi_escape }}{{ "/" | cgi_escape }}">tweet it</a>
+        <a class="tweet" target="_blank" href="http://twitter.com/home?status={{ page.title | cgi_escape }}{{ " by @" | cgi_escape }}{{ site.twitter | cgi_escape }}{{ " " | cgi_escape }}{{ site.url | replace:'blog/','blog' | cgi_escape }}{{ page.url | cgi_escape }}">tweet it</a>
       {% if page.next.url %}
         <a class="basic-alignment right" href="{{page.next.url}}" title="Next Post: {{page.next.title}}">{{page.next.title}} &raquo;</a>
       {% endif %}