feat(persian): add persian language #1
@ -1,7 +1,7 @@
|
|||||||
|
|||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
<div class='post {% if page.fa %}fa-post{% endif %}'>
|
<div class='post lang-{% if page.lang %}{{ page.lang }}{% else %}en{% endif %}'>
|
||||||
Thanks! I think a 'language: fa' property is more general since it can be expanded to support other languages as well. And let's add a 'lang-%s' to the post, so by default we have lang-en, and it can be replaced by lang-fa, etc. Thanks! I think a 'language: fa' property is more general since it can be expanded to support other languages as well. And let's add a 'lang-%s' to the post, so by default we have lang-en, and it can be replaced by lang-fa, etc.
Thanks! I think a 'language: fa' property is more general since it can be expanded to support other languages as well. And let's add a 'lang-%s' to the post, so by default we have lang-en, and it can be replaced by lang-fa, etc. Thanks! I think a 'language: fa' property is more general since it can be expanded to support other languages as well. And let's add a 'lang-%s' to the post, so by default we have lang-en, and it can be replaced by lang-fa, etc.
|
|||||||
|
|
||||||
<div class="post-header">
|
<div class="post-header">
|
||||||
<h1 class="post-title">{{ page.title }}</h1>
|
<h1 class="post-title">{{ page.title }}</h1>
|
||||||
|
|||||||
Thanks! I think a 'language: fa' property is more general since it can be expanded to support other languages as well. And let's add a 'lang-%s' to the post, so by default we have lang-en, and it can be replaced by lang-fa, etc. Thanks! I think a 'language: fa' property is more general since it can be expanded to support other languages as well. And let's add a 'lang-%s' to the post, so by default we have lang-en, and it can be replaced by lang-fa, etc.
Thanks! I think a 'language: fa' property is more general since it can be expanded to support other languages as well. And let's add a 'lang-%s' to the post, so by default we have lang-en, and it can be replaced by lang-fa, etc. Thanks! I think a 'language: fa' property is more general since it can be expanded to support other languages as well. And let's add a 'lang-%s' to the post, so by default we have lang-en, and it can be replaced by lang-fa, etc.
|
@ -127,7 +127,7 @@ strong {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.fa-post {
|
.lang-fa {
|
||||||
font-family: $base-font-family;
|
font-family: $base-font-family;
|
||||||
direction: rtl !important;
|
direction: rtl !important;
|
||||||
.post-content {
|
.post-content {
|
||||||
|
@ -6,7 +6,7 @@ layout: default
|
|||||||
|
|
||||||
<ul class="post-list">
|
<ul class="post-list">
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
<li class='{% if post.fa %}fa-post{% endif %}'>
|
<li class='lang-{% if post.lang %}{{ post.lang }}{% else %}en{% endif %}'>
|
||||||
<h2>
|
<h2>
|
||||||
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
|
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
|
||||||
|
|
||||||
|
Thanks! I think a 'language: fa' property is more general since it can be expanded to support other languages as well. And let's add a 'lang-%s' to the post, so by default we have lang-en, and it can be replaced by lang-fa, etc.
Thanks! I think a 'language: fa' property is more general since it can be expanded to support other languages as well. And let's add a 'lang-%s' to the post, so by default we have lang-en, and it can be replaced by lang-fa, etc.