Skip to content

Commit

Permalink
Fix retina.js + truncate warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenramon committed Jun 26, 2017
1 parent 196bdb0 commit 0ae406a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _assets/javascripts/vendor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//= require jquery
//= require throttle-debounce-fn/dist/throttle-debounce-fn.js
//= require fluidbox
//= require retinajs
//= require retinajs/dist/retina.js
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h1>{{ page.title }}</h1>
</div>

<div class="article-share">
{% assign page_title = page.title | truncate 110 | cgi_escape %}
{% assign page_title = page.title | cgi_escape | truncate: 110 %}
{% capture twitter-share-text %}{{ page_title }} - {{ page.url | absolute_url }}{% if site.social.twitter %} by @{{ site.social.twitter }}{% endif %}{% endcapture %}
<a href="https://twitter.com/home?status={{ twitter-share-text }}" title="Share on Twitter" rel="noreferrer noopener" target="_blank">
<svg viewBox="0 0 512 512"><path d="M492 109.5c-17.4 7.7-36 12.9-55.6 15.3 20-12 35.4-31 42.6-53.6 -18.7 11.1-39.4 19.2-61.5 23.5C399.8 75.8 374.6 64 346.8 64c-53.5 0-96.8 43.4-96.8 96.9 0 7.6 0.8 15 2.5 22.1 -80.5-4-151.9-42.6-199.6-101.3 -8.3 14.3-13.1 31-13.1 48.7 0 33.6 17.2 63.3 43.2 80.7C67 210.7 52 206.3 39 199c0 0.4 0 0.8 0 1.2 0 47 33.4 86.1 77.7 95 -8.1 2.2-16.7 3.4-25.5 3.4 -6.2 0-12.3-0.6-18.2-1.8 12.3 38.5 48.1 66.5 90.5 67.3 -33.1 26-74.9 41.5-120.3 41.5 -7.8 0-15.5-0.5-23.1-1.4C62.8 432 113.7 448 168.3 448 346.6 448 444 300.3 444 172.2c0-4.2-0.1-8.4-0.3-12.5C462.6 146 479 129 492 109.5z"/></svg>
Expand Down

0 comments on commit 0ae406a

Please sign in to comment.