Merge pull request #1 from dotamir/support-persian
feat(persian): add persian language
This commit was merged in pull request #1.
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
<div class="post">
|
<div class='post lang-{% if page.lang %}{{ page.lang }}{% else %}en{% endif %}'>
|
||||||
|
|
||||||
<div class="post-header">
|
<div class="post-header">
|
||||||
<h1 class="post-title">{{ page.title }}</h1>
|
<h1 class="post-title">{{ page.title }}</h1>
|
||||||
|
|||||||
@@ -232,3 +232,30 @@ pre {
|
|||||||
font-family: Mononoki;
|
font-family: Mononoki;
|
||||||
src: url(fonts/mononoki-Regular.woff);
|
src: url(fonts/mononoki-Regular.woff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: Sahel;
|
||||||
|
src: url(fonts/Sahel.eot);
|
||||||
|
src: url(fonts/Sahel.eot?#iefix) format('embedded-opentype'),
|
||||||
|
url(fonts/Sahel.woff) format('woff'),
|
||||||
|
url(fonts/Sahel.ttf) format('truetype');
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: Sahel;
|
||||||
|
src: url(fonts/Sahel-Bold.eot);
|
||||||
|
src: url(fonts/Sahel-Bold.eot?#iefix) format('embedded-opentype'),
|
||||||
|
url(fonts/Sahel-Bold.woff) format('woff'),
|
||||||
|
url(fonts/Sahel-Bold.ttf) format('truetype');
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: Sahel;
|
||||||
|
src: url(fonts/Sahel-Black.eot);
|
||||||
|
src: url(fonts/Sahel-Black.eot?#iefix) format('embedded-opentype'),
|
||||||
|
url(fonts/Sahel-Black.woff) format('woff'),
|
||||||
|
url(fonts/Sahel-Black.ttf) format('truetype');
|
||||||
|
font-weight: 900;
|
||||||
|
}
|
||||||
|
|||||||
@@ -127,6 +127,19 @@ strong {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lang-fa {
|
||||||
|
font-family: $base-font-family;
|
||||||
|
direction: rtl !important;
|
||||||
|
.post-content {
|
||||||
|
text-align: right;
|
||||||
|
font-size: 1.05em;
|
||||||
|
line-height: 1.718em;
|
||||||
|
}
|
||||||
|
.share-page {
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.post-content .heading-link {
|
.post-content .heading-link {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
@charset "utf-8";
|
@charset "utf-8";
|
||||||
|
|
||||||
// Our variables
|
// Our variables
|
||||||
$base-font-family: 'Nunito', Open Sans, sans-serif;
|
$base-font-family: 'Nunito', 'Sahel', Open Sans, sans-serif;
|
||||||
$head-font-family: 'Secular One', sans-serif;
|
$head-font-family: 'Secular One', sans-serif;
|
||||||
$base-font-size: 12pt;
|
$base-font-size: 12pt;
|
||||||
$small-font-size: $base-font-size * 0.875;
|
$small-font-size: $base-font-size * 0.875;
|
||||||
|
|||||||
+1
-1
@@ -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>
|
<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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user