Skip to content

Commit 9bae26c

Browse files
committed
Add Arabic translation of content
1 parent d456e52 commit 9bae26c

30 files changed

+481
-32
lines changed

config.toml

+25-9
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,26 @@ taxonomies = [
3939
title = "Linkita"
4040
generate_feeds = false
4141
taxonomies = [
42-
{ name = "tags", feed = true, paginate_by = 5 },
43-
{ name = "authors", feed = true, paginate_by = 5 },
42+
{ name = "tags", feed = false, paginate_by = 5 },
43+
{ name = "authors", feed = false, paginate_by = 5 },
4444
]
4545

4646
[languages.uwu]
4747
title = "Linkita"
4848
generate_feeds = false
4949
description = "a cwean and ewegant bwog theme fow Zowa. Winkita is based on Kita and Hugo-Papew and is muwtiwinguaw and SEO fwiendwy. *nuzzles*"
5050
taxonomies = [
51-
{ name = "tags", feed = true, paginate_by = 5 },
52-
{ name = "authors", feed = true, paginate_by = 5 },
51+
{ name = "tags", feed = false, paginate_by = 5 },
52+
{ name = "authors", feed = false, paginate_by = 5 },
53+
]
54+
55+
[languages.ar]
56+
title = "لينكيتا"
57+
generate_feeds = false
58+
description = "لينكيتا هو قالب مدونة زولا."
59+
taxonomies = [
60+
{ name = "tags", feed = false, paginate_by = 5 },
61+
{ name = "authors", feed = false, paginate_by = 5 },
5362
]
5463

5564
[markdown]
@@ -79,10 +88,11 @@ main = [
7988
{ url = "$BASE_URL/tags/", name = "Tags", names_i18n = "common_tags" },
8089
{ url = "$BASE_URL/about/", name = "About", names_i18n = "common_about" },
8190
]
82-
main_glb = [
83-
{ url = "$BASE_URL/projects/", name = "Projects", names_i18n = "common_projects" },
84-
{ url = "$BASE_URL/archive/", name = "Archive", names_i18n = "common_archive" },
85-
{ url = "$BASE_URL/about/", name = "About", names_i18n = "common_about" },
91+
main_ar = [
92+
{ url = "$BASE_URL/projects/", name = "مشاريعي" },
93+
{ url = "$BASE_URL/archive/", name = "أرشيف" },
94+
{ url = "$BASE_URL/tags/", name = "العلامات" },
95+
{ url = "$BASE_URL/about/", name = "ْعَنِّي" },
8696
]
8797

8898
[extra.profiles]
@@ -115,6 +125,10 @@ avatar_alt = "Demoprofila avataro."
115125
[extra.profiles.your_username.languages.uwu]
116126
name = "Linkita"
117127
bio = "a cwean and ewegant bwog theme fow Zowa. Winkita is based on Kita and Hugo-Papew and is muwtiwinguaw and SEO fwiendwy. *nuzzles*"
128+
[extra.profiles.your_username.languages.ar]
129+
name = "لينكيتا - قوالب مدونة زولا"
130+
bio = "لينكيتا هو قالب مدونة زولا."
131+
avatar_alt = "الصورة الرمزية للملف الشخصي التجريبي"
118132
[extra.profiles.your_username.open_graph]
119133
image = "images/screenshot.png"
120134
image_alt = "A screenshot of this website."
@@ -190,11 +204,13 @@ date_format_archive = "%d %b"
190204

191205
[extra.languages.glb]
192206
art_x_lang = "art-x-globasa"
193-
header_menu_name = "main_glb"
194207

195208
[extra.languages.uwu]
196209
art_x_lang = "art-x-uwu"
197210

211+
[extra.languages.ar]
212+
header_menu_name = "main_ar"
213+
198214
[extra.goatcounter]
199215
endpoint = "https://sgi.goatcounter.com/count"
200216
src = "//gc.zgo.at/count.js"

content/_index.ar.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
+++
2+
sort_by = "date"
3+
paginate_by = 5
4+
[extra]
5+
profile = "your_username"
6+
+++

content/markdown-syntax.ar.md

+149
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
+++
2+
title = "دليل تنسيق ماركداون"
3+
description = "نموذج مقال يعرض تنسيق ماركداون الأساسي وتنسيق عناصر HTML."
4+
date = 2022-10-20
5+
updated = 2025-01-05
6+
[taxonomies]
7+
tags = ["markdown", "css", "html"]
8+
authors = ["kita", "salif"]
9+
[extra]
10+
cover.image = "images/markdown-syntax.png"
11+
cover.alt = "شعار ماركداون"
12+
+++
13+
14+
تقدم هذه المقالة عينة من تنسيق ماركداون الأساسي الذي يمكن استخدامه في ملفات محتوى Zola، كما توضح ما إذا كانت عناصر HTML الأساسية مزينة بـ CSS في سمة لينكيتا.
15+
16+
<!--more-->
17+
18+
## العناوين
19+
20+
تمثل عناصر HTML `<h1>``<h6>` التالية ستة مستويات من عناوين الأقسام. `<h1>` هو أعلى مستوى للقسم بينما `<h6>` هو الأدنى.
21+
22+
# H1
23+
24+
## H2
25+
26+
### H3
27+
28+
#### H4
29+
30+
##### H5
31+
32+
###### H6
33+
34+
## الفقرة
35+
36+
Xerum، quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum، voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur، offic to cor sequas etum rerum idem sintibus eiur؟ Quianimin porecus evelectur، cum que nis nust voloribus ratem aut omnimi، sitatur؟ Quiatem. Nam، omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus، sin conecerem erum fuga. Ri oditatquam، ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost، temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
37+
38+
Itatur؟ Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum، core et que aut hariosam ex eat.
39+
40+
## الاقتباسات
41+
42+
يمثل عنصر الاقتباس المحتوى المقتبس من مصدر آخر، مع اقتباس اختياري يجب أن يكون داخل عنصر `footer` أو `cite`، واختياريًا مع تغييرات مضمنة مثل التعليقات التوضيحية والاختصارات.
43+
44+
#### اقتباس بدون إسناد
45+
46+
> Tiam، ad mint andaepu dandae nostion secatur sequo quae.
47+
> **ملاحظة** أنه يمكنك استخدام _تنسيق ماركداون_ داخل اقتباس.
48+
49+
#### اقتباس مع إسناد
50+
51+
> لا تتواصل من خلال مشاركة الذاكرة، شارك الذاكرة من خلال التواصل. <br>
52+
> — <cite>روب بايك[^1]</cite>
53+
54+
[^1]: الاقتباس أعلاه مقتطف من [حديث](https://www.youtube.com/watch?v=PAAkCSZUG1c) روب بايك خلال Gopherfest، 18 نوفمبر 2015.
55+
56+
## الروابط
57+
58+
لإنشاء رابط، قم بإحاطة نص الرابط بين قوسين ثم اتبعه مباشرةً بعنوان URL بين قوسين.
59+
60+
[GitHub](https://github.com)
61+
62+
لتحويل عنوان URL أو عنوان بريد إلكتروني بسرعة إلى رابط، قم بإحاطته بين أقواس زاوية.
63+
64+
<https://github.com>
65+
66+
## الصور
67+
68+
![دليل ماركداون](../../images/markdown-syntax.png)
69+
70+
## الجداول
71+
72+
الجداول ليست جزءًا من مواصفات ماركداون الأساسية، لكن Zola تدعمها.
73+
74+
| الاسم | العمر |
75+
| ----- | --- |
76+
| بوب | 27 |
77+
| أليس | 23 |
78+
79+
#### ماركداون المضمنة داخل الجداول
80+
81+
| مائل | عريض | كود |
82+
| -------- | ------ | ----- |
83+
| _مائل_ | **عريض** | `code` |
84+
85+
## كتل التعليمات البرمجية
86+
87+
#### كتلة التعليمات البرمجية مع backticks
88+
89+
```html
90+
<!doctype html>
91+
<html lang="en">
92+
<head>
93+
<meta charset="utf-8" />
94+
<title>Example HTML5 Document</title>
95+
</head>
96+
<body>
97+
<p>Test</p>
98+
</body>
99+
</html>
100+
```
101+
102+
#### كتلة التعليمات البرمجية بمسافة بادئة أربعة مسافات
103+
104+
<!doctype html>
105+
<html lang="en">
106+
<head>
107+
<meta charset="utf-8">
108+
<title>Example HTML5 Document</title>
109+
</head>
110+
<body>
111+
<p>Test</p>
112+
</body>
113+
</html>
114+
115+
## أنواع القوائم
116+
117+
#### قائمة مرتبة
118+
119+
1. العنصر الأول
120+
2. العنصر الثاني
121+
3. العنصر الثالث
122+
123+
#### قائمة غير مرتبة
124+
125+
- عنصر القائمة
126+
- عنصر آخر
127+
- وعنصر آخر
128+
129+
#### قائمة متداخلة
130+
131+
- فاكهة
132+
- تفاح
133+
- برتقال
134+
- موز
135+
- ألبان
136+
- حليب
137+
- جبن
138+
139+
## عناصر أخرى — abbr، sub، sup، kbd، mark
140+
141+
<abbr title="Graphics Interchange Format">GIF</abbr> هو تنسيق صورة نقطية.
142+
143+
H<sub>2</sub>O
144+
145+
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
146+
147+
اضغط على <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> لإنهاء الجلسة.
148+
149+
معظم <mark>السلمندرات</mark> ليلية، وتصطاد الحشرات والديدان والمخلوقات الصغيرة الأخرى.

content/markdown-syntax.en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title = "Markdown Syntax Guide"
33
description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
44
date = 2022-10-20
5-
# updated =
5+
#updated =
66
[taxonomies]
77
tags = ["markdown", "css", "html"]
88
authors = ["kita"]

content/math-typesetting.ar.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
+++
2+
title = "تنضيد المعادلات الرياضية"
3+
description = "دليل موجز لإعداد KaTeX."
4+
date = 2022-10-20
5+
updated = 2025-01-05
6+
[taxonomies]
7+
authors = ["kita", "salif"]
8+
[extra]
9+
math = true
10+
+++
11+
12+
يدعم قالب لينكيتا المعادلات الرياضية بصيغة $\LaTeX$ باستخدام [KaTeX](https://katex.org/).
13+
14+
<!--more-->
15+
16+
- لتمكين KaTeX بشكل عام، قم بتعيين المتغير `extra.math` إلى `true` في إعدادات المشروع.
17+
- لتمكين KaTeX على أساس كل صفحة على حدة، قم بتضمين المتغير `extra.math = true` في البيانات الوصفية لملفات المحتوى.
18+
19+
**ملاحظة:** استخدم المرجع عبر الإنترنت لـ [دوال TeX المدعومة](https://katex.org/docs/supported.html).
20+
21+
## أمثلة
22+
23+
### معادلة رياضية مُضمّنة
24+
25+
```markdown
26+
عندما $x = \pi$، يمكن إعادة كتابة صيغة أويلر بالشكل $e^{i \pi} + 1 = 0$.
27+
```
28+
29+
عندما $x = \pi$، يمكن إعادة كتابة صيغة أويلر بالشكل $e^{i \pi} + 1 = 0$.
30+
31+
### كتلة رياضية
32+
33+
```markdown
34+
$$
35+
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
36+
$$
37+
```
38+
39+
$$
40+
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
41+
$$

content/math-typesetting.en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title = "Math Typesetting"
33
description = "A brief guide to setup KaTeX."
44
date = 2022-10-20
5-
# updated =
5+
#updated =
66
[taxonomies]
77
authors = ["kita"]
88
[extra]

content/pages/_index.ar.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
+++
2+
render = false
3+
page_template = "pages.html"
4+
+++

content/pages/about.ar.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
+++
2+
title = "ْعَنِّي"
3+
#description = ""
4+
path = "/ar/about"
5+
+++
6+
7+
## مرحبا بالعالم!

content/pages/about.eo.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "Pri mi"
3-
# description = ""
3+
#description = ""
44
path = "/eo/about"
55
+++
66

content/pages/about.glb.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "Tem mi"
3-
# description = ""
3+
#description = ""
44
path = "/glb/about"
55
+++
66

content/pages/about.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "За мен"
3-
# description = ""
3+
#description = ""
44
path = "about"
55
+++
66

content/pages/about.uwu.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
2-
title = "abowt me"
3-
# description = ""
2+
title = "abouwt me"
3+
#description = ""
44
path = "/uwu/about"
55
+++
66

content/pages/archive.ar.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
+++
2+
title = "أرشيف"
3+
#description = ""
4+
path = "/ar/archive"
5+
template = "archive.html"
6+
[extra]
7+
section = "_index.ar.md"
8+
+++

content/pages/archive.en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "Archive"
3-
# description = ""
3+
#description = ""
44
path = "/en/archive"
55
template = "archive.html"
66
[extra]

content/pages/archive.eo.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "Arkivo"
3-
# description = ""
3+
#description = ""
44
path = "/eo/archive"
55
template = "archive.html"
66
[extra]

content/pages/archive.glb.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "Arcivo"
3-
# description = ""
3+
#description = ""
44
path = "/glb/archive"
55
template = "archive.html"
66
[extra]

content/pages/archive.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "Архив"
3-
# description = ""
3+
#description = ""
44
path = "archive"
55
template = "archive.html"
66
[extra]

content/pages/archive.uwu.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "awchive"
3-
# description = ""
3+
#description = ""
44
path = "/uwu/archive"
55
template = "archive.html"
66
[extra]

content/pages/projects/index.ar.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
+++
2+
title = "مشاريعي"
3+
#description = ""
4+
path = "/ar/projects"
5+
template = "projects.html"
6+
+++

content/pages/projects/index.en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "My Projects"
3-
# description = ""
3+
#description = ""
44
path = "/en/projects"
55
template = "projects.html"
66
+++

0 commit comments

Comments
 (0)