feat(persian): add persian language #1

Merged
dotamir merged 3 commits from support-persian into master 2018-04-27 18:14:46 +00:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit 20737e99a6 - Show all commits

View File

@ -1,7 +1,7 @@
mdibaiee commented 2018-04-27 13:17:18 +00:00 (Migrated from github.com)
Review

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.
mdibaiee commented 2018-04-27 13:17:18 +00:00 (Migrated from github.com)
Review

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.
---
layout: default
---
<div class='post {% if page.fa %}fa-post{% endif %}'>
mdibaiee commented 2018-04-27 13:17:18 +00:00 (Migrated from github.com)
Review

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 lang-{% if page.lang %}{{ page.lang }}{% else %}en{% endif %}'>
mdibaiee commented 2018-04-27 13:17:18 +00:00 (Migrated from github.com)
Review

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">
<h1 class="post-title">{{ page.title }}</h1>

mdibaiee commented 2018-04-27 13:17:18 +00:00 (Migrated from github.com)
Review

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.
mdibaiee commented 2018-04-27 13:17:18 +00:00 (Migrated from github.com)
Review

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.

View File

@ -127,7 +127,7 @@ strong {
}
}
.fa-post {
.lang-fa {
font-family: $base-font-family;
direction: rtl !important;
.post-content {

View File

@ -6,7 +6,7 @@ layout: default
<ul class="post-list">
{% 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>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>