Skip to content

Commit

Permalink
Enabled translations to post elements
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagorossener committed Feb 4, 2020
1 parent 2a91712 commit 41b1f97
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion _includes/author.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% else %}
<img class="img-rounded" src="/assets/img/user.jpg" alt="{{ author.display_name }}">
{% endif %}
<p class="def">Author</p>
<p class="def">{{ site.translations.text.author | default: "Author" }}</p>
<h3 class="name">
<a href="{{ author.url }}">{{ author.display_name }}</a>
</h3>
Expand Down
2 changes: 1 addition & 1 deletion _includes/comments.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if site.disqus_username %}

<section class="comments">
<h3>Comments</h3>
<h3>{{ site.translations.text.comments | default: "Comments" }}</h3>
<div id="disqus_thread"></div>
</section>
<script type="text/javascript">
Expand Down
4 changes: 2 additions & 2 deletions _includes/recommendation.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div class="recommendation">
<div class="message">
<strong>Why don't you read something next?</strong>
<strong>{{ site.translations.recommendation.text | default: "Why don't you read something next?" }}</strong>
<div>
<button>
<svg><use xlink:href="#icon-arrow-right"></use></svg>
<span>Go back to top</span>
<span>{{ site.translations.recommendation.back_btn | default: "Go back to top" }}</span>
</button>
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions _includes/share.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<section class="share">
<h3>Share</h3>
<a aria-label="Share on Twitter" href="https://twitter.com/intent/tweet?text=&quot;{{ page.description }}&quot;%20{{ site.url }}{{ page.url }}%20via%20&#64;{{ site.twitter_username }}&hashtags={% for tag in page.tags %}{{tag}},{% endfor %}"
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;" title="Share on Twitter">
<h3>{{ site.translations.text.share | default: "Share" }}</h3>
<a aria-label="{{ site.translations.button.share_on_twitter | default: 'Share on Twitter' }}" href="https://twitter.com/intent/tweet?text=&quot;{{ page.description }}&quot;%20{{ site.url }}{{ page.url }}%20via%20&#64;{{ site.twitter_username }}&hashtags={% for tag in page.tags %}{{tag}},{% endfor %}"
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;" title="{{ site.translations.button.share_on_twitter | default: 'Share on Twitter' }}">
<svg class="icon icon-twitter"><use xlink:href="#icon-twitter"></use></svg>
</a>
<a aria-label="Share on Facebook"href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}"
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;" title="Share on Facebook">
<a aria-label="{{ site.translations.button.share_on_facebook | default: 'Share on Facebook' }}" href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}"
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;" title="{{ site.translations.button.share_on_facebook | default: 'Share on Facebook' }}">
<svg class="icon icon-facebook"><use xlink:href="#icon-facebook"></use></svg>
</a>
</section>

0 comments on commit 41b1f97

Please sign in to comment.