slipway-theme 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/_includes/analytics.html +12 -0
- data/_includes/author-card.html +29 -0
- data/_includes/author-ids.html +2 -0
- data/_includes/author-url.html +11 -0
- data/_includes/breadcrumbs.html +67 -0
- data/_includes/byline.html +14 -0
- data/_includes/compat.html +11 -0
- data/_includes/component-css.html +5 -0
- data/_includes/copy-page.html +5 -0
- data/_includes/date.html +90 -0
- data/_includes/dir.html +4 -0
- data/_includes/edit-sources.html +25 -0
- data/_includes/feedback.html +12 -0
- data/_includes/footer-custom.html +5 -0
- data/_includes/footer.html +16 -0
- data/_includes/head-custom.html +5 -0
- data/_includes/head.html +52 -0
- data/_includes/header.html +38 -0
- data/_includes/i18n/ar.html +43 -0
- data/_includes/i18n/de.html +43 -0
- data/_includes/i18n/en.html +43 -0
- data/_includes/i18n/es.html +43 -0
- data/_includes/i18n/fa.html +43 -0
- data/_includes/i18n/fr.html +43 -0
- data/_includes/i18n/he.html +42 -0
- data/_includes/i18n/it.html +43 -0
- data/_includes/i18n/ja.html +43 -0
- data/_includes/i18n/nl.html +43 -0
- data/_includes/i18n/pt.html +43 -0
- data/_includes/i18n/ru.html +43 -0
- data/_includes/i18n/tr.html +43 -0
- data/_includes/i18n/zh.html +43 -0
- data/_includes/i18n-builtin.html +8 -0
- data/_includes/icons/github.svg +1 -0
- data/_includes/icons/linkedin.svg +1 -0
- data/_includes/icons/mastodon.svg +1 -0
- data/_includes/icons/twitter.svg +1 -0
- data/_includes/icons/x.svg +1 -0
- data/_includes/icons/youtube.svg +1 -0
- data/_includes/jsonld.html +41 -0
- data/_includes/lang-switcher.html +15 -0
- data/_includes/layout-url.html +8 -0
- data/_includes/llms-item.html +19 -0
- data/_includes/num.html +3 -0
- data/_includes/post-item.html +4 -0
- data/_includes/related-posts.html +37 -0
- data/_includes/search.html +13 -0
- data/_includes/seo.html +42 -0
- data/_includes/series.html +47 -0
- data/_includes/skip-link.html +1 -0
- data/_includes/t.html +4 -0
- data/_includes/taxonomy.html +22 -0
- data/_includes/term.html +7 -0
- data/_includes/theme-init.html +1 -0
- data/_includes/theme-var.html +4 -0
- data/_includes/theme-vars.html +17 -0
- data/_layouts/archive.html +32 -0
- data/_layouts/author.html +31 -0
- data/_layouts/base.html +19 -0
- data/_layouts/default.html +4 -0
- data/_layouts/doc.html +89 -0
- data/_layouts/feed.html +37 -0
- data/_layouts/glossary.html +23 -0
- data/_layouts/home.html +96 -0
- data/_layouts/llms-full.html +54 -0
- data/_layouts/llms.html +32 -0
- data/_layouts/not-found.html +27 -0
- data/_layouts/page.html +13 -0
- data/_layouts/post.html +72 -0
- data/_layouts/search-index.html +12 -0
- data/_layouts/sitemap.html +24 -0
- data/_layouts/sourcemap.html +28 -0
- data/_layouts/tags.html +24 -0
- data/_layouts/translation-status.html +44 -0
- data/assets/css/components/glossary.css +21 -0
- data/assets/css/fonts.css +47 -0
- data/assets/css/nav.css +104 -0
- data/assets/css/print.css +70 -0
- data/assets/css/slipway.css +952 -0
- data/assets/css/tokens.css +57 -0
- data/assets/fonts/LICENSES/InstrumentSerif-OFL.txt +93 -0
- data/assets/fonts/LICENSES/SourceSerif4-OFL.txt +93 -0
- data/assets/fonts/LICENSES/Vazirmatn-OFL.txt +93 -0
- data/assets/fonts/instrument-serif-latin-400-italic.woff2 +0 -0
- data/assets/fonts/instrument-serif-latin-400-normal.woff2 +0 -0
- data/assets/fonts/source-serif-4-latin-wght-italic.woff2 +0 -0
- data/assets/fonts/source-serif-4-latin-wght-normal.woff2 +0 -0
- data/assets/fonts/vazirmatn-arabic-wght-normal.woff2 +0 -0
- data/assets/images/social.png +0 -0
- data/assets/js/copy-code.js +53 -0
- data/assets/js/edit-prompt.js +23 -0
- data/assets/js/search.js +114 -0
- data/assets/js/theme-toggle.js +66 -0
- metadata +156 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{%- case include.key -%}
|
|
2
|
+
{%- when 'about_author' -%}دربارهٔ نویسنده
|
|
3
|
+
{%- when 'and' -%}و
|
|
4
|
+
{%- when 'breadcrumbs' -%}مسیر یابی
|
|
5
|
+
{%- when 'by' -%}نوشتهٔ
|
|
6
|
+
{%- when 'categories' -%}دستهها
|
|
7
|
+
{%- when 'comma' -%}،
|
|
8
|
+
{%- when 'copied' -%}کپی شد
|
|
9
|
+
{%- when 'copy' -%}کپی
|
|
10
|
+
{%- when 'copy_failed' -%}Ctrl+C را بزنید
|
|
11
|
+
{%- when 'copy_page_md' -%}کپی صفحه به صورت مارکداون
|
|
12
|
+
{%- when 'docs_nav' -%}مستندات
|
|
13
|
+
{%- when 'edit_label' -%}ویرایش با دستیار
|
|
14
|
+
{%- when 'edit_prompt' -%}فایل {source} را ویرایش کن. متن فعلی: «{text}». تغییر:
|
|
15
|
+
{%- when 'go_home' -%}رفتن به صفحهٔ اصلی
|
|
16
|
+
{%- when 'home' -%}خانه
|
|
17
|
+
{%- when 'language' -%}زبان
|
|
18
|
+
{%- when 'latest_posts' -%}آخرین نوشتهها
|
|
19
|
+
{%- when 'main_nav' -%}منوی اصلی
|
|
20
|
+
{%- when 'min_read' -%}دقیقه مطالعه
|
|
21
|
+
{%- when 'mode_auto' -%}خودکار
|
|
22
|
+
{%- when 'mode_dark' -%}تیره
|
|
23
|
+
{%- when 'mode_light' -%}روشن
|
|
24
|
+
{%- when 'next' -%}بعدی
|
|
25
|
+
{%- when 'not_found_text' -%}این نشانی وجود ندارد یا جابهجا شده است. از میدان جستوجو استفاده کنید یا به صفحهٔ اصلی بروید.
|
|
26
|
+
{%- when 'not_found_title' -%}صفحه پیدا نشد
|
|
27
|
+
{%- when 'on_this_page' -%}در این صفحه
|
|
28
|
+
{%- when 'pager' -%}صفحهٔ قبل و بعد
|
|
29
|
+
{%- when 'post_pager' -%}نوشتهٔ قبل و بعد
|
|
30
|
+
{%- when 'posts' -%}نوشتهها
|
|
31
|
+
{%- when 'previous' -%}قبلی
|
|
32
|
+
{%- when 'related_posts' -%}نوشتههای مرتبط
|
|
33
|
+
{%- when 'search' -%}جستوجو
|
|
34
|
+
{%- when 'search_count' -%}{n} نتیجه
|
|
35
|
+
{%- when 'search_none' -%}نتیجهای پیدا نشد
|
|
36
|
+
{%- when 'series' -%}مجموعه
|
|
37
|
+
{%- when 'series_pager' -%}بخش قبل و بعد این مجموعه
|
|
38
|
+
{%- when 'series_part' -%}بخش {n} از {total}
|
|
39
|
+
{%- when 'skip' -%}رفتن به محتوا
|
|
40
|
+
{%- when 'tags' -%}برچسبها
|
|
41
|
+
{%- when 'theme' -%}تم
|
|
42
|
+
{%- when 'translation_key' -%}کلید ترجمه
|
|
43
|
+
{%- endcase -%}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{%- case include.key -%}
|
|
2
|
+
{%- when 'about_author' -%}À propos de l''auteur
|
|
3
|
+
{%- when 'and' -%}et
|
|
4
|
+
{%- when 'breadcrumbs' -%}Fil d''Ariane
|
|
5
|
+
{%- when 'by' -%}Par
|
|
6
|
+
{%- when 'categories' -%}Catégories
|
|
7
|
+
{%- when 'comma' -%},
|
|
8
|
+
{%- when 'copied' -%}Copié
|
|
9
|
+
{%- when 'copy' -%}Copier
|
|
10
|
+
{%- when 'copy_failed' -%}Appuyez sur Ctrl+C
|
|
11
|
+
{%- when 'copy_page_md' -%}Copier la page en Markdown
|
|
12
|
+
{%- when 'docs_nav' -%}Documentation
|
|
13
|
+
{%- when 'edit_label' -%}Éditer avec votre agent
|
|
14
|
+
{%- when 'edit_prompt' -%}Éditer {source}. Texte actuel: "{text}". Changement:
|
|
15
|
+
{%- when 'go_home' -%}Retourner à l''accueil
|
|
16
|
+
{%- when 'home' -%}Accueil
|
|
17
|
+
{%- when 'language' -%}Langue
|
|
18
|
+
{%- when 'latest_posts' -%}Derniers articles
|
|
19
|
+
{%- when 'main_nav' -%}Principal
|
|
20
|
+
{%- when 'min_read' -%}min de lecture
|
|
21
|
+
{%- when 'mode_auto' -%}Auto
|
|
22
|
+
{%- when 'mode_dark' -%}Sombre
|
|
23
|
+
{%- when 'mode_light' -%}Clair
|
|
24
|
+
{%- when 'next' -%}Suivant
|
|
25
|
+
{%- when 'not_found_text' -%}Cette adresse n''existe pas ou a été déplacée. Utilisez le champ de recherche ou retournez à l''accueil.
|
|
26
|
+
{%- when 'not_found_title' -%}Page non trouvée
|
|
27
|
+
{%- when 'on_this_page' -%}Sur cette page
|
|
28
|
+
{%- when 'pager' -%}Précédent et suivant
|
|
29
|
+
{%- when 'post_pager' -%}Article précédent et suivant
|
|
30
|
+
{%- when 'posts' -%}Articles
|
|
31
|
+
{%- when 'previous' -%}Précédent
|
|
32
|
+
{%- when 'related_posts' -%}Articles liés
|
|
33
|
+
{%- when 'search' -%}Rechercher
|
|
34
|
+
{%- when 'search_count' -%}{n} résultats
|
|
35
|
+
{%- when 'search_none' -%}Aucun résultat
|
|
36
|
+
{%- when 'series' -%}Série
|
|
37
|
+
{%- when 'series_pager' -%}Précédent et suivant dans cette série
|
|
38
|
+
{%- when 'series_part' -%}Partie {n} sur {total}
|
|
39
|
+
{%- when 'skip' -%}Passer au contenu
|
|
40
|
+
{%- when 'tags' -%}Mots-clés
|
|
41
|
+
{%- when 'theme' -%}Thème
|
|
42
|
+
{%- when 'translation_key' -%}Clé de traduction
|
|
43
|
+
{%- endcase -%}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{%- case include.key -%}
|
|
2
|
+
{%- when 'about_author' -%}על הכותב
|
|
3
|
+
{%- when 'and' -%}וגם
|
|
4
|
+
{%- when 'breadcrumbs' -%}פירורי לחם
|
|
5
|
+
{%- when 'by' -%}מאת
|
|
6
|
+
{%- when 'categories' -%}קטגוריות
|
|
7
|
+
{%- when 'comma' -%},
|
|
8
|
+
{%- when 'copied' -%}הועתק
|
|
9
|
+
{%- when 'copy' -%}העתקה
|
|
10
|
+
{%- when 'copy_failed' -%}הקישו Ctrl+C
|
|
11
|
+
{%- when 'copy_page_md' -%}העתקת הדף כ-Markdown
|
|
12
|
+
{%- when 'docs_nav' -%}תיעוד
|
|
13
|
+
{%- when 'edit_label' -%}עריכה עם הסוכן שלך
|
|
14
|
+
{%- when 'edit_prompt' -%}ערוך את {source}. הטקסט הנוכחי: "{text}". השינוי:
|
|
15
|
+
{%- when 'go_home' -%}מעבר לדף הבית
|
|
16
|
+
{%- when 'home' -%}ראשי
|
|
17
|
+
{%- when 'language' -%}שפה
|
|
18
|
+
{%- when 'latest_posts' -%}פוסטים אחרונים
|
|
19
|
+
{%- when 'main_nav' -%}תפריט ראשי
|
|
20
|
+
{%- when 'min_read' -%}דקות קריאה
|
|
21
|
+
{%- when 'mode_auto' -%}אוטומטי
|
|
22
|
+
{%- when 'mode_dark' -%}כהה
|
|
23
|
+
{%- when 'mode_light' -%}בהיר
|
|
24
|
+
{%- when 'next' -%}הבא
|
|
25
|
+
{%- when 'not_found_text' -%}הכתובת הזאת לא קיימת או שהועברה. השתמשו בשדה החיפוש או עברו לדף הבית.
|
|
26
|
+
{%- when 'not_found_title' -%}הדף לא נמצא
|
|
27
|
+
{%- when 'on_this_page' -%}בדף הזה
|
|
28
|
+
{%- when 'pager' -%}הדף הקודם והבא
|
|
29
|
+
{%- when 'post_pager' -%}הפוסט הקודם והבא
|
|
30
|
+
{%- when 'posts' -%}פוסטים
|
|
31
|
+
{%- when 'previous' -%}הקודם
|
|
32
|
+
{%- when 'search' -%}חיפוש
|
|
33
|
+
{%- when 'search_count' -%}{n} תוצאות
|
|
34
|
+
{%- when 'search_none' -%}לא נמצאו תוצאות
|
|
35
|
+
{%- when 'series' -%}סדרה
|
|
36
|
+
{%- when 'series_pager' -%}החלק הקודם והבא בסדרה
|
|
37
|
+
{%- when 'series_part' -%}חלק {n} מתוך {total}
|
|
38
|
+
{%- when 'skip' -%}דילוג לתוכן
|
|
39
|
+
{%- when 'tags' -%}תגיות
|
|
40
|
+
{%- when 'theme' -%}ערכת נושא
|
|
41
|
+
{%- when 'translation_key' -%}מפתח תרגום
|
|
42
|
+
{%- endcase -%}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{%- case include.key -%}
|
|
2
|
+
{%- when 'about_author' -%}L''autore
|
|
3
|
+
{%- when 'and' -%}e
|
|
4
|
+
{%- when 'breadcrumbs' -%}Briciole di pane
|
|
5
|
+
{%- when 'by' -%}Di
|
|
6
|
+
{%- when 'categories' -%}Categorie
|
|
7
|
+
{%- when 'comma' -%},
|
|
8
|
+
{%- when 'copied' -%}Copiato
|
|
9
|
+
{%- when 'copy' -%}Copia
|
|
10
|
+
{%- when 'copy_failed' -%}Premi Ctrl+C
|
|
11
|
+
{%- when 'copy_page_md' -%}Copia pagina come Markdown
|
|
12
|
+
{%- when 'docs_nav' -%}Documentazione
|
|
13
|
+
{%- when 'edit_label' -%}Modifica con il tuo agente
|
|
14
|
+
{%- when 'edit_prompt' -%}Modifica {source}. Testo attuale: "{text}". Modifica:
|
|
15
|
+
{%- when 'go_home' -%}Vai alla home page
|
|
16
|
+
{%- when 'home' -%}Home
|
|
17
|
+
{%- when 'language' -%}Lingua
|
|
18
|
+
{%- when 'latest_posts' -%}Ultimi articoli
|
|
19
|
+
{%- when 'main_nav' -%}Principale
|
|
20
|
+
{%- when 'min_read' -%}min di lettura
|
|
21
|
+
{%- when 'mode_auto' -%}Auto
|
|
22
|
+
{%- when 'mode_dark' -%}Scuro
|
|
23
|
+
{%- when 'mode_light' -%}Chiaro
|
|
24
|
+
{%- when 'next' -%}Successivo
|
|
25
|
+
{%- when 'not_found_text' -%}Questo indirizzo non esiste o è stato spostato. Usa il campo di ricerca o vai alla home page.
|
|
26
|
+
{%- when 'not_found_title' -%}Pagina non trovata
|
|
27
|
+
{%- when 'on_this_page' -%}In questa pagina
|
|
28
|
+
{%- when 'pager' -%}Precedente e successivo
|
|
29
|
+
{%- when 'post_pager' -%}Articolo precedente e successivo
|
|
30
|
+
{%- when 'posts' -%}Articoli
|
|
31
|
+
{%- when 'previous' -%}Precedente
|
|
32
|
+
{%- when 'related_posts' -%}Articoli correlati
|
|
33
|
+
{%- when 'search' -%}Cerca
|
|
34
|
+
{%- when 'search_count' -%}{n} risultati
|
|
35
|
+
{%- when 'search_none' -%}Nessun risultato
|
|
36
|
+
{%- when 'series' -%}Serie
|
|
37
|
+
{%- when 'series_pager' -%}Precedente e successivo in questa serie
|
|
38
|
+
{%- when 'series_part' -%}Parte {n} di {total}
|
|
39
|
+
{%- when 'skip' -%}Vai al contenuto
|
|
40
|
+
{%- when 'tags' -%}Tag
|
|
41
|
+
{%- when 'theme' -%}Tema
|
|
42
|
+
{%- when 'translation_key' -%}Chiave di traduzione
|
|
43
|
+
{%- endcase -%}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{%- case include.key -%}
|
|
2
|
+
{%- when 'about_author' -%}著者について
|
|
3
|
+
{%- when 'and' -%}と
|
|
4
|
+
{%- when 'breadcrumbs' -%}パンくずリスト
|
|
5
|
+
{%- when 'by' -%}作成者
|
|
6
|
+
{%- when 'categories' -%}カテゴリー
|
|
7
|
+
{%- when 'comma' -%}、
|
|
8
|
+
{%- when 'copied' -%}コピーしました
|
|
9
|
+
{%- when 'copy' -%}コピー
|
|
10
|
+
{%- when 'copy_failed' -%}Ctrl+Cを押してください
|
|
11
|
+
{%- when 'copy_page_md' -%}ページをMarkdownとしてコピー
|
|
12
|
+
{%- when 'docs_nav' -%}ドキュメント
|
|
13
|
+
{%- when 'edit_label' -%}エージェントで編集
|
|
14
|
+
{%- when 'edit_prompt' -%}{source} を編集します。現在のテキスト: "{text}"。変更内容:
|
|
15
|
+
{%- when 'go_home' -%}ホームページへ移動
|
|
16
|
+
{%- when 'home' -%}ホーム
|
|
17
|
+
{%- when 'language' -%}言語
|
|
18
|
+
{%- when 'latest_posts' -%}最新の記事
|
|
19
|
+
{%- when 'main_nav' -%}メイン
|
|
20
|
+
{%- when 'min_read' -%}分で読めます
|
|
21
|
+
{%- when 'mode_auto' -%}自動
|
|
22
|
+
{%- when 'mode_dark' -%}ダーク
|
|
23
|
+
{%- when 'mode_light' -%}ライト
|
|
24
|
+
{%- when 'next' -%}次へ
|
|
25
|
+
{%- when 'not_found_text' -%}このアドレスは存在しないか、移動しました。検索フィールドを使用するか、ホームページに移動してください。
|
|
26
|
+
{%- when 'not_found_title' -%}ページが見つかりません
|
|
27
|
+
{%- when 'on_this_page' -%}このページ内
|
|
28
|
+
{%- when 'pager' -%}前後
|
|
29
|
+
{%- when 'post_pager' -%}前後の記事
|
|
30
|
+
{%- when 'posts' -%}投稿
|
|
31
|
+
{%- when 'previous' -%}前へ
|
|
32
|
+
{%- when 'related_posts' -%}関連記事
|
|
33
|
+
{%- when 'search' -%}検索
|
|
34
|
+
{%- when 'search_count' -%}{n} 件の結果
|
|
35
|
+
{%- when 'search_none' -%}結果がありません
|
|
36
|
+
{%- when 'series' -%}シリーズ
|
|
37
|
+
{%- when 'series_pager' -%}このシリーズの前後
|
|
38
|
+
{%- when 'series_part' -%}{total}部中の第{n}部
|
|
39
|
+
{%- when 'skip' -%}メインコンテンツへスキップ
|
|
40
|
+
{%- when 'tags' -%}タグ
|
|
41
|
+
{%- when 'theme' -%}テーマ
|
|
42
|
+
{%- when 'translation_key' -%}翻訳キー
|
|
43
|
+
{%- endcase -%}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{%- case include.key -%}
|
|
2
|
+
{%- when 'about_author' -%}Over de auteur
|
|
3
|
+
{%- when 'and' -%}en
|
|
4
|
+
{%- when 'breadcrumbs' -%}Broodkruimels
|
|
5
|
+
{%- when 'by' -%}Door
|
|
6
|
+
{%- when 'categories' -%}Categorieën
|
|
7
|
+
{%- when 'comma' -%},
|
|
8
|
+
{%- when 'copied' -%}Gekopieerd
|
|
9
|
+
{%- when 'copy' -%}Kopiëren
|
|
10
|
+
{%- when 'copy_failed' -%}Druk op Ctrl+C
|
|
11
|
+
{%- when 'copy_page_md' -%}Pagina kopiëren als Markdown
|
|
12
|
+
{%- when 'docs_nav' -%}Documentatie
|
|
13
|
+
{%- when 'edit_label' -%}Bewerken met uw agent
|
|
14
|
+
{%- when 'edit_prompt' -%}Bewerk {source}. Huidige tekst: "{text}". Wijziging:
|
|
15
|
+
{%- when 'go_home' -%}Ga naar de startpagina
|
|
16
|
+
{%- when 'home' -%}Startpagina
|
|
17
|
+
{%- when 'language' -%}Taal
|
|
18
|
+
{%- when 'latest_posts' -%}Laatste berichten
|
|
19
|
+
{%- when 'main_nav' -%}Hoofdmenu
|
|
20
|
+
{%- when 'min_read' -%}min lezen
|
|
21
|
+
{%- when 'mode_auto' -%}Auto
|
|
22
|
+
{%- when 'mode_dark' -%}Donker
|
|
23
|
+
{%- when 'mode_light' -%}Licht
|
|
24
|
+
{%- when 'next' -%}Volgende
|
|
25
|
+
{%- when 'not_found_text' -%}Dit adres bestaat niet of is verplaatst. Gebruik het zoekveld of ga naar de startpagina.
|
|
26
|
+
{%- when 'not_found_title' -%}Pagina niet gevonden
|
|
27
|
+
{%- when 'on_this_page' -%}Op deze pagina
|
|
28
|
+
{%- when 'pager' -%}Vorige en volgende
|
|
29
|
+
{%- when 'post_pager' -%}Vorig en volgend bericht
|
|
30
|
+
{%- when 'posts' -%}Berichten
|
|
31
|
+
{%- when 'previous' -%}Vorige
|
|
32
|
+
{%- when 'related_posts' -%}Gerelateerde berichten
|
|
33
|
+
{%- when 'search' -%}Zoeken
|
|
34
|
+
{%- when 'search_count' -%}{n} resultaten
|
|
35
|
+
{%- when 'search_none' -%}Geen resultaten
|
|
36
|
+
{%- when 'series' -%}Serie
|
|
37
|
+
{%- when 'series_pager' -%}Vorige en volgende in deze serie
|
|
38
|
+
{%- when 'series_part' -%}Deel {n} van {total}
|
|
39
|
+
{%- when 'skip' -%}Naar inhoud springen
|
|
40
|
+
{%- when 'tags' -%}Tags
|
|
41
|
+
{%- when 'theme' -%}Thema
|
|
42
|
+
{%- when 'translation_key' -%}Vertaalsleutel
|
|
43
|
+
{%- endcase -%}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{%- case include.key -%}
|
|
2
|
+
{%- when 'about_author' -%}Sobre o autor
|
|
3
|
+
{%- when 'and' -%}e
|
|
4
|
+
{%- when 'breadcrumbs' -%}Trilha de navegação
|
|
5
|
+
{%- when 'by' -%}Por
|
|
6
|
+
{%- when 'categories' -%}Categorias
|
|
7
|
+
{%- when 'comma' -%},
|
|
8
|
+
{%- when 'copied' -%}Copiado
|
|
9
|
+
{%- when 'copy' -%}Copiar
|
|
10
|
+
{%- when 'copy_failed' -%}Pressione Ctrl+C
|
|
11
|
+
{%- when 'copy_page_md' -%}Copiar página como Markdown
|
|
12
|
+
{%- when 'docs_nav' -%}Documentação
|
|
13
|
+
{%- when 'edit_label' -%}Editar com seu agente
|
|
14
|
+
{%- when 'edit_prompt' -%}Editar {source}. Texto atual: "{text}". Alteração:
|
|
15
|
+
{%- when 'go_home' -%}Ir para a página inicial
|
|
16
|
+
{%- when 'home' -%}Início
|
|
17
|
+
{%- when 'language' -%}Idioma
|
|
18
|
+
{%- when 'latest_posts' -%}Últimas postagens
|
|
19
|
+
{%- when 'main_nav' -%}Principal
|
|
20
|
+
{%- when 'min_read' -%}min de leitura
|
|
21
|
+
{%- when 'mode_auto' -%}Auto
|
|
22
|
+
{%- when 'mode_dark' -%}Escuro
|
|
23
|
+
{%- when 'mode_light' -%}Claro
|
|
24
|
+
{%- when 'next' -%}Próximo
|
|
25
|
+
{%- when 'not_found_text' -%}Este endereço não existe ou foi movido. Use o campo de busca ou vá para a página inicial.
|
|
26
|
+
{%- when 'not_found_title' -%}Página não encontrada
|
|
27
|
+
{%- when 'on_this_page' -%}Nesta página
|
|
28
|
+
{%- when 'pager' -%}Anterior e próximo
|
|
29
|
+
{%- when 'post_pager' -%}Postagem anterior e próxima
|
|
30
|
+
{%- when 'posts' -%}Postagens
|
|
31
|
+
{%- when 'previous' -%}Anterior
|
|
32
|
+
{%- when 'related_posts' -%}Postagens relacionadas
|
|
33
|
+
{%- when 'search' -%}Buscar
|
|
34
|
+
{%- when 'search_count' -%}{n} resultados
|
|
35
|
+
{%- when 'search_none' -%}Nenhum resultado
|
|
36
|
+
{%- when 'series' -%}Série
|
|
37
|
+
{%- when 'series_pager' -%}Anterior e próximo nesta série
|
|
38
|
+
{%- when 'series_part' -%}Parte {n} de {total}
|
|
39
|
+
{%- when 'skip' -%}Pular para o conteúdo
|
|
40
|
+
{%- when 'tags' -%}Tags
|
|
41
|
+
{%- when 'theme' -%}Tema
|
|
42
|
+
{%- when 'translation_key' -%}Chave de tradução
|
|
43
|
+
{%- endcase -%}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{%- case include.key -%}
|
|
2
|
+
{%- when 'about_author' -%}Об авторе
|
|
3
|
+
{%- when 'and' -%}и
|
|
4
|
+
{%- when 'breadcrumbs' -%}Хлебные крошки
|
|
5
|
+
{%- when 'by' -%}От
|
|
6
|
+
{%- when 'categories' -%}Категории
|
|
7
|
+
{%- when 'comma' -%},
|
|
8
|
+
{%- when 'copied' -%}Скопировано
|
|
9
|
+
{%- when 'copy' -%}Копировать
|
|
10
|
+
{%- when 'copy_failed' -%}Нажмите Ctrl+C
|
|
11
|
+
{%- when 'copy_page_md' -%}Копировать страницу как Markdown
|
|
12
|
+
{%- when 'docs_nav' -%}Документация
|
|
13
|
+
{%- when 'edit_label' -%}Редактировать с вашим агентом
|
|
14
|
+
{%- when 'edit_prompt' -%}Редактировать {source}. Текущий текст: "{text}". Изменение:
|
|
15
|
+
{%- when 'go_home' -%}Перейти на главную страницу
|
|
16
|
+
{%- when 'home' -%}Главная
|
|
17
|
+
{%- when 'language' -%}Язык
|
|
18
|
+
{%- when 'latest_posts' -%}Последние посты
|
|
19
|
+
{%- when 'main_nav' -%}Главное
|
|
20
|
+
{%- when 'min_read' -%}мин чтения
|
|
21
|
+
{%- when 'mode_auto' -%}Авто
|
|
22
|
+
{%- when 'mode_dark' -%}Темная
|
|
23
|
+
{%- when 'mode_light' -%}Светлая
|
|
24
|
+
{%- when 'next' -%}Следующая
|
|
25
|
+
{%- when 'not_found_text' -%}Этот адрес не существует или был перемещен. Используйте поле поиска или перейдите на главную страницу.
|
|
26
|
+
{%- when 'not_found_title' -%}Страница не найдена
|
|
27
|
+
{%- when 'on_this_page' -%}На этой странице
|
|
28
|
+
{%- when 'pager' -%}Предыдущая и следующая
|
|
29
|
+
{%- when 'post_pager' -%}Предыдущий и следующий пост
|
|
30
|
+
{%- when 'posts' -%}Посты
|
|
31
|
+
{%- when 'previous' -%}Предыдущая
|
|
32
|
+
{%- when 'related_posts' -%}Похожие посты
|
|
33
|
+
{%- when 'search' -%}Поиск
|
|
34
|
+
{%- when 'search_count' -%}{n} результатов
|
|
35
|
+
{%- when 'search_none' -%}Нет результатов
|
|
36
|
+
{%- when 'series' -%}Серия
|
|
37
|
+
{%- when 'series_pager' -%}Предыдущая и следующая в этой серии
|
|
38
|
+
{%- when 'series_part' -%}Часть {n} из {total}
|
|
39
|
+
{%- when 'skip' -%}Перейти к контенту
|
|
40
|
+
{%- when 'tags' -%}Теги
|
|
41
|
+
{%- when 'theme' -%}Тема
|
|
42
|
+
{%- when 'translation_key' -%}Ключ перевода
|
|
43
|
+
{%- endcase -%}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{%- case include.key -%}
|
|
2
|
+
{%- when 'about_author' -%}Yazar hakkında
|
|
3
|
+
{%- when 'and' -%}ve
|
|
4
|
+
{%- when 'breadcrumbs' -%}Ekmek kırıntıları
|
|
5
|
+
{%- when 'by' -%}Yazan:
|
|
6
|
+
{%- when 'categories' -%}Kategoriler
|
|
7
|
+
{%- when 'comma' -%},
|
|
8
|
+
{%- when 'copied' -%}Kopyalandı
|
|
9
|
+
{%- when 'copy' -%}Kopyala
|
|
10
|
+
{%- when 'copy_failed' -%}Ctrl+C''ye basın
|
|
11
|
+
{%- when 'copy_page_md' -%}Sayfayı Markdown olarak kopyala
|
|
12
|
+
{%- when 'docs_nav' -%}Belgeler
|
|
13
|
+
{%- when 'edit_label' -%}Ajanınızla düzenleyin
|
|
14
|
+
{%- when 'edit_prompt' -%}{source} dosyasını düzenle. Mevcut metin: "{text}". Değişiklik:
|
|
15
|
+
{%- when 'go_home' -%}Ana sayfaya git
|
|
16
|
+
{%- when 'home' -%}Ana Sayfa
|
|
17
|
+
{%- when 'language' -%}Dil
|
|
18
|
+
{%- when 'latest_posts' -%}Son yazılar
|
|
19
|
+
{%- when 'main_nav' -%}Ana
|
|
20
|
+
{%- when 'min_read' -%}dk okuma
|
|
21
|
+
{%- when 'mode_auto' -%}Otomatik
|
|
22
|
+
{%- when 'mode_dark' -%}Koyu
|
|
23
|
+
{%- when 'mode_light' -%}Açık
|
|
24
|
+
{%- when 'next' -%}Sonraki
|
|
25
|
+
{%- when 'not_found_text' -%}Bu adres mevcut değil veya taşınmış. Arama alanını kullanın veya ana sayfaya gidin.
|
|
26
|
+
{%- when 'not_found_title' -%}Sayfa bulunamadı
|
|
27
|
+
{%- when 'on_this_page' -%}Bu sayfada
|
|
28
|
+
{%- when 'pager' -%}Önceki ve sonraki
|
|
29
|
+
{%- when 'post_pager' -%}Önceki ve sonraki yazı
|
|
30
|
+
{%- when 'posts' -%}Yazılar
|
|
31
|
+
{%- when 'previous' -%}Önceki
|
|
32
|
+
{%- when 'related_posts' -%}İlgili yazılar
|
|
33
|
+
{%- when 'search' -%}Ara
|
|
34
|
+
{%- when 'search_count' -%}{n} sonuç
|
|
35
|
+
{%- when 'search_none' -%}Sonuç yok
|
|
36
|
+
{%- when 'series' -%}Seri
|
|
37
|
+
{%- when 'series_pager' -%}Bu serideki önceki ve sonraki
|
|
38
|
+
{%- when 'series_part' -%}Bölüm {n} / {total}
|
|
39
|
+
{%- when 'skip' -%}İçeriğe atla
|
|
40
|
+
{%- when 'tags' -%}Etiketler
|
|
41
|
+
{%- when 'theme' -%}Tema
|
|
42
|
+
{%- when 'translation_key' -%}Çeviri anahtarı
|
|
43
|
+
{%- endcase -%}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{%- case include.key -%}
|
|
2
|
+
{%- when 'about_author' -%}关于作者
|
|
3
|
+
{%- when 'and' -%}和
|
|
4
|
+
{%- when 'breadcrumbs' -%}面包屑导航
|
|
5
|
+
{%- when 'by' -%}作者
|
|
6
|
+
{%- when 'categories' -%}分类
|
|
7
|
+
{%- when 'comma' -%},
|
|
8
|
+
{%- when 'copied' -%}已复制
|
|
9
|
+
{%- when 'copy' -%}复制
|
|
10
|
+
{%- when 'copy_failed' -%}按Ctrl+C
|
|
11
|
+
{%- when 'copy_page_md' -%}复制页面为Markdown
|
|
12
|
+
{%- when 'docs_nav' -%}文档
|
|
13
|
+
{%- when 'edit_label' -%}与您的助手一起编辑
|
|
14
|
+
{%- when 'edit_prompt' -%}编辑 {source}。当前文本:"{text}"。更改:
|
|
15
|
+
{%- when 'go_home' -%}返回主页
|
|
16
|
+
{%- when 'home' -%}首页
|
|
17
|
+
{%- when 'language' -%}语言
|
|
18
|
+
{%- when 'latest_posts' -%}最新文章
|
|
19
|
+
{%- when 'main_nav' -%}主导航
|
|
20
|
+
{%- when 'min_read' -%}分钟阅读
|
|
21
|
+
{%- when 'mode_auto' -%}自动
|
|
22
|
+
{%- when 'mode_dark' -%}深色
|
|
23
|
+
{%- when 'mode_light' -%}浅色
|
|
24
|
+
{%- when 'next' -%}下一个
|
|
25
|
+
{%- when 'not_found_text' -%}此地址不存在或已移动。请使用搜索框或返回主页。
|
|
26
|
+
{%- when 'not_found_title' -%}未找到页面
|
|
27
|
+
{%- when 'on_this_page' -%}本页内容
|
|
28
|
+
{%- when 'pager' -%}上一页和下一页
|
|
29
|
+
{%- when 'post_pager' -%}上一篇和下一篇文章
|
|
30
|
+
{%- when 'posts' -%}文章
|
|
31
|
+
{%- when 'previous' -%}上一个
|
|
32
|
+
{%- when 'related_posts' -%}相关文章
|
|
33
|
+
{%- when 'search' -%}搜索
|
|
34
|
+
{%- when 'search_count' -%}{n} 个结果
|
|
35
|
+
{%- when 'search_none' -%}无结果
|
|
36
|
+
{%- when 'series' -%}系列
|
|
37
|
+
{%- when 'series_pager' -%}本系列的上一个和下一个
|
|
38
|
+
{%- when 'series_part' -%}第 {n} 部分,共 {total} 部分
|
|
39
|
+
{%- when 'skip' -%}跳至内容
|
|
40
|
+
{%- when 'tags' -%}标签
|
|
41
|
+
{%- when 'theme' -%}主题
|
|
42
|
+
{%- when 'translation_key' -%}翻译键
|
|
43
|
+
{%- endcase -%}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{%- comment -%} Built-in UI strings. A site overrides or adds languages in _data/i18n/<lang>.yml. {%- endcomment -%}
|
|
2
|
+
{%- assign sl_builtin_lang = include.lang -%}
|
|
3
|
+
{%- assign sl_supported = 'fa,ar,he,es,fr,pt,de,it,ru,tr,nl,ja,zh,en' | split: ',' -%}
|
|
4
|
+
{%- unless sl_supported contains sl_builtin_lang -%}
|
|
5
|
+
{%- assign sl_builtin_lang = 'en' -%}
|
|
6
|
+
{%- endunless -%}
|
|
7
|
+
{%- capture sl_i18n_path -%}i18n/{{ sl_builtin_lang }}.html{%- endcapture -%}
|
|
8
|
+
{%- include {{ sl_i18n_path }} key=include.key -%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="currentColor" d="M12 2C6.477 2 2 6.477 2 12c0 4.418 2.865 8.166 6.839 9.489.5.092.682-.217.682-.482 0-.237-.008-.866-.013-1.7-2.782.603-3.369-1.34-3.369-1.34-.454-1.156-1.11-1.462-1.11-1.462-.908-.62.069-.608.069-.608 1.003.07 1.531 1.03 1.531 1.03.892 1.529 2.341 1.087 2.91.831.092-.646.35-1.086.636-1.336-2.22-.253-4.555-1.11-4.555-4.943 0-1.091.39-1.984 1.029-2.683-.103-.253-.446-1.27.098-2.647 0 0 .84-.269 2.75 1.025A9.578 9.578 0 0 1 12 6.836c.85.004 1.705.114 2.504.336 1.909-1.294 2.747-1.025 2.747-1.025.546 1.379.203 2.394.1 2.647.64.699 1.028 1.592 1.028 2.683 0 3.842-2.339 4.687-4.566 4.935.359.309.678.919.678 1.852 0 1.336-.012 2.415-.012 2.743 0 .267.18.578.688.48C19.138 20.161 22 16.416 22 12c0-5.523-4.477-10-10-10z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="currentColor" d="M21.17 0H2.83C1.268 0 0 1.268 0 2.83v18.34C0 22.732 1.268 24 2.83 24h18.34C22.732 24 24 22.732 24 21.17V2.83C24 1.268 22.732 0 21.17 0zM7.054 20.452H3.535V8.997h3.52v11.455zM5.295 7.433c-1.127 0-2.037-.91-2.037-2.037 0-1.126.91-2.036 2.037-2.036 1.126 0 2.036.91 2.036 2.036 0 1.127-.91 2.037-2.036 2.037zm15.158 13.019h-3.52v-5.58c0-1.33-.024-3.04-1.854-3.04-1.854 0-2.137 1.448-2.137 2.943v5.677H9.423V8.997h3.377v1.566h.048c.47-.89 1.616-1.826 3.324-1.826 3.555 0 4.214 2.34 4.214 5.38v6.335z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="currentColor" d="M12 0C5.372 0 0 5.373 0 12s5.372 12 12 12 12-5.373 12-12S18.628 0 12 0zm-1.637 17.584c-3.136 0-5.679-2.541-5.679-5.682 0-3.139 2.543-5.681 5.679-5.681 3.14 0 5.684 2.542 5.684 5.681 0 3.141-2.544 5.682-5.684 5.682zM12 7.747c-2.28 0-4.133 1.852-4.133 4.136s1.853 4.137 4.133 4.137c2.282 0 4.137-1.853 4.137-4.137S14.282 7.747 12 7.747zm-1.896 6.002h-1.07v-3.76h1.07v3.76zm2.348 0h-1.07v-3.76h1.07v3.76zm2.348 0h-1.07v-3.76h1.07v3.76z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="currentColor" d="M21.464 4.093c-.767.502-1.597.834-2.482 1.026a4.347 4.347 0 0 0-3.18-1.378c-2.404 0-4.354 1.95-4.354 4.354 0 .34.038.673.113 1.002-3.618-.182-6.827-1.914-8.972-4.545a4.363 4.363 0 0 0-.589 2.19c0 1.51.768 2.842 1.936 3.623a4.316 4.316 0 0 1-1.97-.544v.055c0 2.107 1.499 3.865 3.491 4.267a4.372 4.372 0 0 1-1.964.075c.553 1.728 2.158 2.986 4.057 3.021a8.736 8.736 0 0 1-5.418 1.867c-.35 0-.695-.02-1.036-.06a12.3 12.3 0 0 0 6.666 1.953c8 0 12.373-6.627 12.373-12.373 0-.188-.004-.376-.013-.562a8.847 8.847 0 0 0 2.176-2.257z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="currentColor" d="M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="currentColor" d="M21.198 2.766a2.6 2.6 0 0 0-2.228-2.228C16.924.015 11.996 0 11.996 0S7.067.015 5.021.538a2.6 2.6 0 0 0-2.228 2.228C2.27 4.812 2.25 12 2.25 12s.02 7.188.543 9.234a2.6 2.6 0 0 0 2.228 2.228C7.067 23.985 11.996 24 11.996 24s4.928-.015 6.974-.538a2.6 2.6 0 0 0 2.228-2.228C21.73 19.188 21.75 12 21.75 12s-.02-7.188-.552-9.234zM16.98 12.012l-6.198 3.585V8.428l6.198 3.584z"/></svg>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{%- comment -%}
|
|
2
|
+
Structured data (schema.org JSON-LD) for the page's layout: WebSite on home, BlogPosting on post,
|
|
3
|
+
TechArticle on doc, CollectionPage on archive and tags, WebPage on the rest, nothing on not-found.
|
|
4
|
+
Every string goes through jsonify, and "<" becomes \u003c so no value can end the script element.
|
|
5
|
+
Plain Liquid: it needs no plugin, so classic GitHub Pages builds it too.
|
|
6
|
+
{%- endcomment -%}
|
|
7
|
+
{%- assign sl_ld_layout = page.layout -%}
|
|
8
|
+
{%- unless sl_ld_layout == 'not-found' -%}
|
|
9
|
+
{%- case sl_ld_layout -%}
|
|
10
|
+
{%- when 'home' -%}{%- assign sl_ld_type = 'WebSite' -%}
|
|
11
|
+
{%- when 'post' -%}{%- assign sl_ld_type = 'BlogPosting' -%}
|
|
12
|
+
{%- when 'doc' -%}{%- assign sl_ld_type = 'TechArticle' -%}
|
|
13
|
+
{%- when 'archive' or 'tags' -%}{%- assign sl_ld_type = 'CollectionPage' -%}
|
|
14
|
+
{%- else -%}{%- assign sl_ld_type = 'WebPage' -%}
|
|
15
|
+
{%- endcase -%}
|
|
16
|
+
{%- assign sl_ld_lang = page.lang | default: site.lang | default: 'en' -%}
|
|
17
|
+
{%- assign sl_ld_title = page.title | default: site.title -%}
|
|
18
|
+
{%- assign sl_ld_author = site.author.name | default: site.author -%}
|
|
19
|
+
{%- capture sl_ld_site -%}{"@type":"WebSite","name":{{ site.title | default: sl_ld_title | jsonify }},"url":{{ '/' | absolute_url | jsonify }}}{%- endcapture -%}
|
|
20
|
+
{%- capture sl_ld -%}
|
|
21
|
+
{"@context":"https://schema.org","@type":"{{ sl_ld_type }}"
|
|
22
|
+
{%- if sl_ld_type == 'WebSite' -%}
|
|
23
|
+
,"name":{{ site.title | default: sl_ld_title | jsonify }}
|
|
24
|
+
{%- elsif sl_ld_type == 'BlogPosting' or sl_ld_type == 'TechArticle' -%}
|
|
25
|
+
,"headline":{{ sl_ld_title | jsonify }},"mainEntityOfPage":{{ page.url | absolute_url | jsonify }},"isPartOf":{{ sl_ld_site }}
|
|
26
|
+
{%- else -%}
|
|
27
|
+
,"name":{{ sl_ld_title | jsonify }},"isPartOf":{{ sl_ld_site }}
|
|
28
|
+
{%- endif -%}
|
|
29
|
+
,"url":{{ page.url | absolute_url | jsonify }},"inLanguage":{{ sl_ld_lang | jsonify }}
|
|
30
|
+
{%- if sl_desc and sl_desc != '' -%},"description":{{ sl_desc | jsonify }}{%- endif -%}
|
|
31
|
+
{%- if sl_ld_type == 'BlogPosting' and page.date -%}
|
|
32
|
+
,"datePublished":{{ page.date | date_to_xmlschema | jsonify }},"dateModified":{{ page.date | date_to_xmlschema | jsonify }}
|
|
33
|
+
{%- endif -%}
|
|
34
|
+
{%- if sl_ld_type == 'BlogPosting' or sl_ld_type == 'TechArticle' -%}
|
|
35
|
+
{%- if sl_ld_author -%},"author":{"@type":"Person","name":{{ sl_ld_author | jsonify }}}{%- endif -%}
|
|
36
|
+
{%- if page.tags and page.tags.size > 0 -%},"keywords":{{ page.tags | jsonify }}{%- endif -%}
|
|
37
|
+
{%- endif -%}
|
|
38
|
+
}
|
|
39
|
+
{%- endcapture %}
|
|
40
|
+
<script type="application/ld+json">{{ sl_ld | strip_newlines | replace: '<', '\u003c' }}</script>
|
|
41
|
+
{%- endunless -%}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{%- assign sl_langs = site.slipway.languages -%}
|
|
2
|
+
{%- if sl_langs.size > 1 -%}
|
|
3
|
+
{%- assign sl_cur = page.lang | default: site.lang | default: 'en' -%}
|
|
4
|
+
{%- assign sl_all = site.pages | concat: site.documents -%}
|
|
5
|
+
<nav class="sl-lang" aria-label="{% include t.html key='language' %}">
|
|
6
|
+
{%- for l in sl_langs %}
|
|
7
|
+
{%- assign sl_href = l.prefix | append: '/' -%}
|
|
8
|
+
{%- if page.translation_key -%}
|
|
9
|
+
{%- assign sl_match = sl_all | where: 'translation_key', page.translation_key | where: 'lang', l.code | first -%}
|
|
10
|
+
{%- if sl_match %}{% assign sl_href = sl_match.url %}{% endif -%}
|
|
11
|
+
{%- endif %}
|
|
12
|
+
<a href="{{ sl_href | relative_url }}" hreflang="{{ l.code }}" lang="{{ l.code }}"{% if l.code == sl_cur %} aria-current="true"{% endif %}>{{ l.name }}</a>
|
|
13
|
+
{%- endfor %}
|
|
14
|
+
</nav>
|
|
15
|
+
{%- endif -%}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{%- comment -%} Prints the url of the first page with layout include.layout in the current language, or nothing. {%- endcomment -%}
|
|
2
|
+
{%- assign sl_lu_lang = page.lang | default: site.lang | default: 'en' -%}
|
|
3
|
+
{%- for p in site.pages -%}
|
|
4
|
+
{%- if p.layout == include.layout -%}
|
|
5
|
+
{%- assign sl_lu_page_lang = p.lang | default: site.lang | default: 'en' -%}
|
|
6
|
+
{%- if sl_lu_page_lang == sl_lu_lang -%}{{ p.url | relative_url }}{%- break -%}{%- endif -%}
|
|
7
|
+
{%- endif -%}
|
|
8
|
+
{%- endfor -%}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{%- comment -%}
|
|
2
|
+
For llms.txt and llms-full.txt: sets sl_li_group to the section include.item belongs in ("Docs",
|
|
3
|
+
"Posts" or "Pages"), or to nothing when it is left out. Left out, as in the sitemap: pages with
|
|
4
|
+
sitemap: false, the 404 page, generated files (feed, sitemap, search index, source map, these two),
|
|
5
|
+
every url that is neither a folder nor .html, and collections that do not output.
|
|
6
|
+
{%- endcomment -%}
|
|
7
|
+
{%- assign sl_li = include.item -%}
|
|
8
|
+
{%- assign sl_li_group = nil -%}
|
|
9
|
+
{%- assign sl_li_last = sl_li.url | slice: -1 -%}
|
|
10
|
+
{%- assign sl_li_ext = sl_li.url | split: '.' | last -%}
|
|
11
|
+
{%- assign sl_li_coll = nil -%}
|
|
12
|
+
{%- if sl_li.collection -%}{%- assign sl_li_coll = site.collections | where: 'label', sl_li.collection | first -%}{%- endif -%}
|
|
13
|
+
{%- if sl_li.url == nil or sl_li.sitemap == false or sl_li.url == '/404.html' or sl_li_coll.output == false -%}
|
|
14
|
+
{%- elsif sl_li.layout == 'feed' or sl_li.layout == 'sitemap' or sl_li.layout == 'search-index' or sl_li.layout == 'sourcemap' or sl_li.layout == 'llms' or sl_li.layout == 'llms-full' -%}
|
|
15
|
+
{%- elsif sl_li_last != '/' and sl_li_ext != 'html' -%}
|
|
16
|
+
{%- elsif sl_li.collection == 'posts' -%}{%- assign sl_li_group = 'Posts' -%}
|
|
17
|
+
{%- elsif sl_li.collection or sl_li.layout == 'doc' -%}{%- assign sl_li_group = 'Docs' -%}
|
|
18
|
+
{%- else -%}{%- assign sl_li_group = 'Pages' -%}
|
|
19
|
+
{%- endif -%}
|
data/_includes/num.html
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{%- comment -%} Prints include.value, with Persian or Arabic-Indic digits when the page is Persian or Arabic and slipway.persian.digits or slipway.arabic.digits is on. {%- endcomment -%}
|
|
2
|
+
{%- assign sl_n_lang = page.lang | default: site.lang | default: 'en' | split: '-' | first -%}
|
|
3
|
+
{%- if sl_n_lang == 'fa' and site.slipway.persian.digits -%}{{ include.value | append: '' | replace: '0', '۰' | replace: '1', '۱' | replace: '2', '۲' | replace: '3', '۳' | replace: '4', '۴' | replace: '5', '۵' | replace: '6', '۶' | replace: '7', '۷' | replace: '8', '۸' | replace: '9', '۹' }}{%- elsif sl_n_lang == 'ar' and site.slipway.arabic.digits -%}{{ include.value | append: '' | replace: '0', '٠' | replace: '1', '١' | replace: '2', '٢' | replace: '3', '٣' | replace: '4', '٤' | replace: '5', '٥' | replace: '6', '٦' | replace: '7', '٧' | replace: '8', '٨' | replace: '9', '٩' }}{%- else -%}{{ include.value }}{%- endif -%}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{%- comment -%}
|
|
2
|
+
Up to three posts in the same language that share tags with include.page, most shared tags first, newer first on a tie.
|
|
3
|
+
Prints nothing when no post shares a tag. Each candidate becomes "<1000 - shared>-<index>" so a plain sort ranks them.
|
|
4
|
+
{%- endcomment -%}
|
|
5
|
+
{%- assign sl_r_page = include.page -%}
|
|
6
|
+
{%- assign sl_r_lang = sl_r_page.lang | default: site.lang | default: 'en' -%}
|
|
7
|
+
{%- assign sl_r_keys = '' -%}
|
|
8
|
+
{%- if sl_r_page.tags and sl_r_page.tags.size > 0 -%}
|
|
9
|
+
{%- for post in site.posts -%}
|
|
10
|
+
{%- if post.url == sl_r_page.url %}{% continue %}{% endif -%}
|
|
11
|
+
{%- assign sl_r_post_lang = post.lang | default: site.lang | default: 'en' -%}
|
|
12
|
+
{%- if sl_r_post_lang != sl_r_lang %}{% continue %}{% endif -%}
|
|
13
|
+
{%- assign sl_r_shared = 0 -%}
|
|
14
|
+
{%- for tag in post.tags -%}
|
|
15
|
+
{%- if sl_r_page.tags contains tag %}{% assign sl_r_shared = sl_r_shared | plus: 1 %}{% endif -%}
|
|
16
|
+
{%- endfor -%}
|
|
17
|
+
{%- if sl_r_shared > 0 -%}
|
|
18
|
+
{%- assign sl_r_rank = 1000 | minus: sl_r_shared -%}
|
|
19
|
+
{%- capture sl_r_index %}00000{{ forloop.index0 }}{% endcapture -%}
|
|
20
|
+
{%- assign sl_r_index = sl_r_index | slice: -6, 6 -%}
|
|
21
|
+
{%- capture sl_r_keys %}{{ sl_r_keys }}{{ sl_r_rank }}-{{ sl_r_index }},{% endcapture -%}
|
|
22
|
+
{%- endif -%}
|
|
23
|
+
{%- endfor -%}
|
|
24
|
+
{%- endif -%}
|
|
25
|
+
{%- if sl_r_keys != '' -%}
|
|
26
|
+
{%- assign sl_r_keys = sl_r_keys | split: ',' | sort %}
|
|
27
|
+
<nav class="sl-related" aria-labelledby="sl-related-title">
|
|
28
|
+
<h2 id="sl-related-title">{% include t.html key='related_posts' %}</h2>
|
|
29
|
+
<ul class="sl-post-list">
|
|
30
|
+
{%- for key in sl_r_keys limit: 3 -%}
|
|
31
|
+
{%- assign sl_r_i = key | split: '-' | last | plus: 0 -%}
|
|
32
|
+
{%- assign sl_r_post = site.posts[sl_r_i] %}
|
|
33
|
+
{% include post-item.html post=sl_r_post %}
|
|
34
|
+
{%- endfor %}
|
|
35
|
+
</ul>
|
|
36
|
+
</nav>
|
|
37
|
+
{%- endif -%}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{%- comment -%} The search field points at this language's search-index page; a site without one gets no field. {%- endcomment -%}
|
|
2
|
+
{%- capture sl_s_url %}{% include layout-url.html layout='search-index' %}{% endcapture -%}
|
|
3
|
+
{%- assign sl_s_url = sl_s_url | strip -%}
|
|
4
|
+
{%- if sl_s_url != '' -%}
|
|
5
|
+
<form class="sl-search" role="search" data-search="{{ sl_s_url }}" data-none="{% include t.html key='search_none' %}" data-count="{% include t.html key='search_count' %}" hidden>
|
|
6
|
+
<input type="search" name="q" autocomplete="off" spellcheck="false" aria-label="{% include t.html key='search' %}" placeholder="{% include t.html key='search' %}">
|
|
7
|
+
<div class="sl-search-panel" hidden>
|
|
8
|
+
<p class="sl-search-status" aria-live="polite"></p>
|
|
9
|
+
<ul class="sl-search-results"></ul>
|
|
10
|
+
</div>
|
|
11
|
+
<button type="submit" hidden aria-hidden="true"></button>
|
|
12
|
+
</form>
|
|
13
|
+
{%- endif -%}
|