{% comment %}
This is the template used for tweeteable quotes for Japanese posts.

To use it just include it in a post (Don't use the outer quotes):

'{% include jp-tweet_quote.html quote_text="the quote text" %}'

You can also save the text in a variable

'{% assign quote_text = "Some more text" %}'

'{% include jp-tweet_quote.html quote_text=quote_text %}'

{% endcomment %}

{% assign current = page %}
{% assign amp_page = current.url | scan_filter: '^\/amp\/+' %}

<blockquote class="tweet-quote">
  <a href="https://twitter.com/intent/tweet?text=&quot;{{ include.quote_text | cgi_escape }}&quot; via @auth0 http://auth0.com{{ site.baseurl }}{{current.url}}">
    <p>「{{ include.quote_text }}」</p>
    <p class="tweet-link">これをツイートする
			{% if amp_page %} 
				<amp-img src="https://cdn.auth0.com/blog/resources/twitter.svg"
				 width="20" height="19"  alt="Tweet"></amp-img>
			{% else %}
				<img src="https://cdn.auth0.com/blog/resources/twitter.svg">
			{% endif %}
		</p>
  </a>
</blockquote>
{% comment %}
This is the template used for tweeteable quotes for Japanese posts.

To use it just include it in a post (Don't use the outer quotes):

'{% include jp-tweet_quote.html quote_text="the quote text" %}'

You can also save the text in a variable

'{% assign quote_text = "Some more text" %}'

'{% include jp-tweet_quote.html quote_text=quote_text %}'

{% endcomment %}

{% assign current = page %}
{% assign amp_page = current.url | scan_filter: '^\/amp\/+' %}

<blockquote class="tweet-quote">
	<a href="https://twitter.com/intent/tweet?text=&#x300c;{{ include.quote_text | cgi_escape }}&#x300d; via @auth0 http://auth0.com{{ site.baseurl }}{{current.url}}">
		<p>&#x300c;{{ include.quote_text }}&#x300d;</p>
		<p class="tweet-link">これをツイートする
			{% if amp_page %}
			<amp-img src="https://cdn.auth0.com/blog/resources/twitter.svg"
					 width="20" height="19"  alt="Tweet"></amp-img>
			{% else %}
			<img src="https://cdn.auth0.com/blog/resources/twitter.svg">
			{% endif %}
		</p>
	</a>
</blockquote>
Add encoding to Japanese quotes.
Add encoding to Japanese quotes.
