Localize some strings
This commit is contained in:
parent
5ef154f9bc
commit
2d104877d5
|
@ -37,10 +37,10 @@ Each sheet supports these metadata:
|
||||||
```yml
|
```yml
|
||||||
---
|
---
|
||||||
title: React.js
|
title: React.js
|
||||||
category: React
|
|
||||||
layout: 2017/sheet # 'default' | '2017/sheet'
|
layout: 2017/sheet # 'default' | '2017/sheet'
|
||||||
|
|
||||||
# Optional:
|
# Optional:
|
||||||
|
category: React
|
||||||
updated: 2017-08-30 # To show in the updated list
|
updated: 2017-08-30 # To show in the updated list
|
||||||
ads: false # Add this to disable ads
|
ads: false # Add this to disable ads
|
||||||
weight: -5 # lower number = higher in related posts list
|
weight: -5 # lower number = higher in related posts list
|
||||||
|
|
|
@ -59,6 +59,9 @@ defaults:
|
||||||
|
|
||||||
url: http://ricostacruz.com/cheatsheets
|
url: http://ricostacruz.com/cheatsheets
|
||||||
title: Cheatsheets
|
title: Cheatsheets
|
||||||
|
alt_title: Rico's Cheatsheets
|
||||||
|
home:
|
||||||
|
tagline: "Hey! I'm <a href='https://ricostacruz.com'>@rstacruz</a> and this is a modest collection of cheatsheets I've written."
|
||||||
|
|
||||||
#
|
#
|
||||||
# Google analytics
|
# Google analytics
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
home:
|
||||||
|
title: "Rico's cheatsheets"
|
||||||
|
tagline: "Hey! I'm <a href='https://ricostacruz.com'>@rstacruz</a> and this is a modest collection of cheatsheets I've written."
|
||||||
|
top_nav:
|
||||||
|
title: "Rico's cheatsheets"
|
||||||
|
social_list:
|
||||||
|
default_description: "Grand collection of web development cheatsheets"
|
||||||
|
description_prefix: "The ultimate cheatsheet for"
|
||||||
|
facebook_share: Share on Facebook
|
||||||
|
twitter_share: Share on Twitter
|
|
@ -7,7 +7,7 @@
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
|
|
||||||
<a class='brand' href='{{base}}'>
|
<a class='brand' href='{{base}}'>
|
||||||
Rico's cheatsheets
|
{{ site.data.content.top_nav.title }}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
{% unless include.noshare %}
|
{% unless include.noshare %}
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
{% assign description = "The ultimate cheatsheet for " | append: include.page.title | append: "." %}
|
{% if include.page.home %}
|
||||||
|
{% assign description = site.data.content.social_list.default_description %}
|
||||||
|
{% else %}
|
||||||
|
{% assign description = site.data.content.social_list.description_prefix | append: " " | append: include.page.title | append: "." %}
|
||||||
|
{% endif %}
|
||||||
<ul class="social-list {{ include.class }}">
|
<ul class="social-list {{ include.class }}">
|
||||||
<li class="facebook link hint--bottom" data-hint="Share on Facebook"><a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ include.page.url }}" target="share"><span class="text"></span></a></li>
|
<li class="facebook link hint--bottom" data-hint="{{ site.data.content.social_list.facebook_share }}"><a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ include.page.url }}" target="share"><span class="text"></span></a></li>
|
||||||
<li class="twitter link hint--bottom" data-hint="Share on Twitter"><a href="https://twitter.com/intent/tweet?text={{ description }} {{ site.url }}{{ include.page.url }}" target="share"><span class="text"></span></a></li>
|
<li class="twitter link hint--bottom" data-hint="{{ site.data.content.social_list.twitter_share }}"><a href="https://twitter.com/intent/tweet?text={{ description }} {{ site.url }}{{ include.page.url }}" target="share"><span class="text"></span></a></li>
|
||||||
<!--<li class="googleplus link hint--bottom" data-hint="Share on Google Plus"><a href="https://plus.google.com/share?url={{ site.url }}{{ include.page.url }}" target="share"><span class="text">+1</span></a></li>-->
|
{% comment %}
|
||||||
|
<li class="googleplus link hint--bottom" data-hint="Share on Google Plus"><a href="https://plus.google.com/share?url={{ site.url }}{{ include.page.url }}" target="share"><span class="text">+1</span></a></li>-->
|
||||||
|
{% endcomment %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -18,11 +18,10 @@ type: website
|
||||||
<div class='body-area -slim'>
|
<div class='body-area -slim'>
|
||||||
<div class='site-header'>
|
<div class='site-header'>
|
||||||
<h1>
|
<h1>
|
||||||
Rico's cheatsheets
|
{{ site.data.content.home.title }}
|
||||||
</h1>
|
</h1>
|
||||||
<p>
|
<p>
|
||||||
Hey! I'm <a href='https://ricostacruz.com'>@rstacruz</a> and this is a
|
{{ site.data.content.home.tagline }}
|
||||||
modest collection of cheatsheets I've written.
|
|
||||||
</p>
|
</p>
|
||||||
{% include 2017/search-form.html live=true %}
|
{% include 2017/search-form.html live=true %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue