Skip to content

Commit 4ed59cf

Browse files
authored
Add Persian (#401)
1 parent 7c5168c commit 4ed59cf

File tree

13 files changed

+38
-25
lines changed

13 files changed

+38
-25
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ plugins:
2121
permalink: /:categories/:title
2222

2323
# Localization
24-
languages: [en, fr, nl, it, da, de, es]
24+
languages: [en, fr, nl, it, da, de, es, fa]
2525
# don't forget to add new languages also in _data/locales.yml
2626
defaultLang: en
2727
default_locale_in_subfolder: false

_data/locales.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@
1414
- code: da
1515
name: Dansk
1616
- code: es
17-
name: Español
17+
name: Español
18+
- code: fa
19+
name: فارسی

_includes/breadcrumbs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<li class="breadcrumb-item"><a href="/{% if site.lang != 'en' %}{{ site.lang }}{% endif %}">{% t generic.home %}</a></li>
66
{% for crumb in crumbs offset: 1 %}
77
{% if forloop.last %}
8-
<li class="breadcrumb-item active" aria-current="page">{% if page.texts %}{% t {{ page.texts }}.title %}{% else %}{% t page.title %}{% endif %}</li>
8+
/ <li class="breadcrumb-item active" aria-current="page">{% if page.texts %}{% t {{ page.texts }}.title %}{% else %}{% t page.title %}{% endif %}</li>
99
{% else %}
10-
<li class="breadcrumb-item"><a href="{% if site.lang != 'en' %}/{{ site.lang }}{% endif %}{% assign crumb_limit = forloop.index %}{% for crumb in crumbs offset: 1 limit: crumb_limit %}/{{ crumb }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a></li>
10+
/ <li class="breadcrumb-item"><a href="{% if site.lang != 'en' %}/{{ site.lang }}{% endif %}{% assign crumb_limit = forloop.index %}{% for crumb in crumbs offset: 1 limit: crumb_limit %}/{{ crumb }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a></li>
1111
{% endif %}
1212
{% endfor %}
1313
</ol>

_includes/footer.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,34 +56,34 @@
5656
{% if site.mastodon_username %}
5757
<p class="mb-2">
5858
<a class="mr-2" href="https://{{ site.mastodon_server }}/@{{ site.mastodon_username }}" target="_blank" rel="me noopener">
59-
<i class="fa-brands fa-mastodon mr-1"></i>Mastodon
59+
<i class="fa-brands fa-mastodon mr-1 ml-1"></i>Mastodon
6060
</a>
6161
</p>
6262
{% endif %}
6363
{% if site.github_username %}
6464
<p class="mb-2">
6565
<a class="mr-2" href="https://github.com/{{ site.github_username }}" target="_blank" rel="noopener">
66-
<i class="fa-brands fa-github mr-1"></i>GitHub
66+
<i class="fa-brands fa-github mr-1 ml-1"></i>GitHub
6767
</a>
6868
</p>
6969
{% endif %}
7070
{% if site.bluesky_username %}
7171
<p class="mb-2">
7272
<a class="mr-2" href="https://bsky.app/profile/{{ site.bluesky_username }}" target="_blank" rel="noopener">
73-
<i class="fa-brands fa-bluesky mr-1"></i>Bluesky
73+
<i class="fa-brands fa-bluesky mr-1 ml-1"></i>Bluesky
7474
</a>
7575
</p>
7676
{% endif %}
7777
{% if site.twitter_username %}
7878
<p class="mb-2">
7979
<a class="mr-2" href="https://twitter.com/{{ site.twitter_username }}" target="_blank" rel="noopener">
80-
<i class="fa-brands fa-x-twitter mr-1"></i>Twitter
80+
<i class="fa-brands fa-x-twitter mr-1 ml-1"></i>Twitter
8181
</a>
8282
</p>
8383
{% endif %}
8484
<p>
8585
<a class="mr-2" href="/rss.xml" target="_blank" rel="noopener">
86-
<i class="fa fa-rss mr-1"></i>RSS
86+
<i class="fa fa-rss mr-1 ml-1"></i>RSS
8787
</a>
8888
</p>
8989
</div>

_includes/nav.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
<div class="nav-item dropdown mb-0">
2727
<button class="nav-link dropdown-toggle" id="navbarDropdown1" aria-label="{% t generic.accessibility.lang-menu %}"
2828
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
29-
<i class="fa fa-globe size-16 color-gray-900"></i><span
30-
class="ml-1 size-16 color-gray-900 weight-600">{{ site.lang | upcase }}</span>
29+
<i class="fa fa-globe size-16 color-gray-900"></i>
30+
<span class="ml-1 mr-1 size-16 color-gray-900 weight-600">{{ site.lang | upcase }}</span>
3131
</button>
3232
<div class="dropdown-menu" aria-labelledby="navbarDropdown1">
3333
{% include nav_languages.html %}

_layouts/blog.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<head>
44
{% include head.html %}
55
</head>
6-
<body>
6+
<body dir="auto">
77
<div class="content">
88
{% include nav.html %}
9-
<div class="container-fluid">
9+
<div class="container-fluid" dir="ltr">
1010
<div class="container py-3">
1111
<div class="row no-gutters justify-content-center">
1212
<div class="col-lg-9 col-sm-12 pt-3">
@@ -28,7 +28,7 @@ <h1 class="size-36 weight-700 color-gray-900">{{ page.title }}</h1>
2828
<img class="round-img" src="{{ site.baseurl_root }}/assets/images/authors/{{ author.image }}" width="40" />
2929
<a class="underline" href="{{ author.web }}" target="_blank" rel="noopener">{{ author.name }}</a>
3030
{% endif %}
31-
31+
3232
{% capture month %}{{ page.date | date: "%b" }}{% endcapture %}
3333
{% t month.{{ month }} %} {{ page.date | date: "%-d, %Y"}}
3434
</p>
@@ -41,7 +41,7 @@ <h1 class="size-36 weight-700 color-gray-900">{{ page.title }}</h1>
4141
</div>
4242
</div>
4343
</div>
44-
<div class="container-fluid">
44+
<div class="container-fluid" dir="ltr">
4545
<div class="container py-3">
4646
<div class="row no-gutters justify-content-center pb-4">
4747
<div class="col-lg-9">

_layouts/doc.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
{% include head.html %}
55
</head>
6-
<body>
6+
<body dir="auto">
77
<div class="content">
88
{% include nav.html %}
99
<div class="container-fluid">
@@ -26,4 +26,4 @@
2626
{% include footer.html %}
2727
</body>
2828

29-
</html>
29+
</html>

_layouts/download.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% capture redirect_to %}{% if site.lang != 'en' %}/{{ site.lang }}{% endif %}{{ page.redirect_to }}{% endcapture %}
66
<meta http-equiv="refresh" content="0; URL={{ redirect_to }}">
77
</head>
8-
<body>
8+
<body dir="auto">
99
<div class="content">
1010
{% include nav.html %}
1111
<div class="container-fluid background-gray-100 py-4">

_layouts/homepage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
{% include head.html %}
55
</head>
6-
<body>
6+
<body dir="auto">
77
<div class="content">
88
{% include nav.html %}
99
{% include header.html %}

_layouts/internal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
{% include head.html %}
55
</head>
6-
<body>
6+
<body dir="auto">
77
<div class="content">
88
{% include nav.html %}
99
{{ content | remove: "<!-- mdpo-disable -->" | remove: "<!-- mdpo-enable -->" | remove: "<!-- mdpo-disable-next-line -->" | remove: "<!-- mdpo-enable-next-line -->" }}

0 commit comments

Comments
 (0)