# Yas guide (full text) Arabic pages come first, then English. Each page starts with its URL. # المقدمة https://yas.yasser.ae/ **ياس** قالب لمنصة [Ghost](https://ghost.org/) 6، كُتب للقراءة الطويلة بالعربية ثم ضُبط ليرتاح بالإنجليزية أيضًا. الخطوط العربية مستضافة داخل القالب، واتجاه الصفحة يتبع لغة الموقع، والوضع الليلي خيار للقارئ لا فرض عليه. الإصدار في هذا المستودع مجاني برخصة MIT. **ياس برو** إصدار مدفوع منفصل: التخطيطات الإضافية وصفحة الاشتراكات والحفظ للوقت لاحقًا. الموقع يعمل بالاثنين من غير علامة مائية ومن غير حد زمني. الموقع التجريبي: [ghost.yasser.ae](https://ghost.yasser.ae). ## ما الذي يفعله القالب - يضبط `lang` و`dir` من لغة النشر في Ghost. العربية والفارسية والأردية والعبرية وغيرها من اليمين إلى اليسار، وبقية اللغات من اليسار إلى اليمين. - يترجم كل نص ظاهر. الملفان المرفقان `locales/ar.json` و`locales/en.json`. - يوفّر فاتحًا وداكنًا وحسب الجهاز، وزرًا في الترويسة يتذكر اختيار القارئ. - يتيح أربعة خطوط عربية مفتوحة: IBM Plex Sans Arabic وNoto Naskh Arabic وNoto Kufi Arabic وAmiri. - يرسم حاجز المحتوى حسب نوع الوصول، وشريط اشتراك في النشرة. - يجهّز قوالب صفحات للتصنيفات والكتّاب والتواصل. - في المقال: محتويات، شريط تقدّم، عارض صور، مشاركة، مقالات ذات صلة، وتعليقات تُحمَّل عند الاقتراب منها. ## ياس وياس برو | | ياس | ياس برو | |---|---|---| | الاتجاه من لغة الموقع، وترجمة عربية وإنجليزية | ✓ | ✓ | | فاتح / داكن / حسب الجهاز، وزر للقارئ | ✓ | ✓ | | منتقي الخطوط العربية (أربع عائلات) | ✓ | ✓ | | حاجز المحتوى، شريط النشرة، التصنيفات والكتّاب والتواصل | ✓ | ✓ | | عارض الصور، المحتويات، التقدم، المشاركة، ذات الصلة، التعليقات | ✓ | ✓ | | تخطيطات الرئيسية: كلاسيكي، افتتاحية، مجلة | — | ✓ | | قالب مقالة للنص الطويل | — | ✓ | | زر «المزيد» أو التحميل المتواصل | — | ✓ | | صفحة اشتراكات مع تبديل شهري / سنوي | — | ✓ | | الحفظ لوقت لاحق، تنسيق الطباعة، وصف احتياطي للمشاركة | — | ✓ | الإصدار المجاني فيه **15** إعدادًا مخصصًا. برو يضيف **5** ويصل إلى سقف Ghost وهو **20** إعدادًا، ومنها `license_key`. التفاصيل في [مرجع الإعدادات](/settings/). ## شكل القالب اللقطات من الموقع التجريبي. الرئيسية في ياس المجاني تبدأ بمقدمة ثم شبكة بطاقات، وأول بطاقة أكبر من البقية. (الرئيسية العربية في الوضع الفاتح: ترويسة فيها القائمة والبحث وزر الوضع الليلي، ثم عنوان الموقع وفقرة تعريف وشرائح التصنيفات وشبكة مقالات) *الرئيسية الكلاسيكية. شرائح التصنيفات تأخذ أنشط التصنيفات العامة، والشبكة تعرض آخر المقالات.* (الرئيسية نفسها في الوضع الداكن، بخلفية حبر دافئة وبطاقات أغمق) *الوضع الداكن لوحة كاملة، لا عكس بسيط للألوان الفاتحة.* (الرئيسية بالإنجليزية من اليسار إلى اليمين، والقائمة والبطاقات تتبع الاتجاه) *لغة النشر `en`. الاتجاه ينقلب، والنصوص المختلطة داخل البطاقات تبقى مقروءة.* (الرئيسية على شاشة هاتف، عمود واحد وقائمة تُطوى) *على الهاتف تُطوى القائمة، والبطاقات تصطف في عمود.* (صفحة مقال: عنوان، صورة غلاف، صندوق محتويات، نص، أزرار مشاركة، نشرة، ومقالات ذات صلة) *المقال. صندوق «محتويات المقال» يظهر عندما يحتوي النص على ثلاثة عناوين من المستوى الثاني أو أكثر.* (عارض صور بملء الشاشة فوق المقال، مع زر إغلاق وتعليق تحت الصورة) *النقر على صورة داخل المقال يفتح العارض. الأسهم والسحب يتبعان اتجاه الصفحة.* ## قبل أن ترفع القالب تحتاج Ghost 6.0 أو أحدث، على Ghost(Pro) أو على استضافة تديرها أنت. 1. [ثبّت القالب](/install/) من ملف الإصدار، من غير فك الضغط. 2. اضبط لغة الموقع على `ar` إن كانت المدونة عربية. راجع [القوائم واللغة](/navigation/). 3. راجع [الإعدادات](/settings/) ثم [العضوية](/membership/) إن كنت تفتح الاشتراك. 4. إن اشتريت برو، انتقل إلى [مزاياه](/pro/) ثم [تفعيل الترخيص](/license/). # التثبيت https://yas.yasser.ae/install/ ارفع ملف القالب كما هو. Ghost يفكه بنفسه، وتفكيكه على جهازك ثم إعادة ضغطه يغيّر بنية الملف ويرفضه الفحص أحيانًا. ## ملف الإصدار - **ياس:** نزّل `yas.zip` من [صفحة الإصدارات](https://github.com/YaserMaadan/yas-ghost/releases) في هذا المستودع. - **ياس برو:** الملف `yas-pro.zip` يأتي مع النسخة المدفوعة، منفصلًا عن هذا المستودع المرخّص بـ MIT. لا تغيّر اسم الملف. Ghost يميّز القالب بالاسم، والتحديث لاحقًا يعتمد على أن الاسم بقي `yas` أو `yas-pro`. ## الرفع من لوحة Ghost 1. افتح لوحة Ghost. 2. اذهب إلى **الإعدادات ← التصميم ← تغيير القالب ← رفع قالب**. 3. اختر الملف المضغوط. 4. فعّل القالب بعد أن يظهر في القائمة. ثم من **الإعدادات ← عام ← لغة الموقع** ضع `ar` لمدونة عربية أو `en` لمدونة إنجليزية. الاتجاه يُحسب من هذه القيمة، لا من لغة المتصفح. التفصيل في [القوائم واللغة](/navigation/). :::note في Ghost 6 تعيش هذه الشاشة تحت التصميم. إن اختلفت تسمية القائمة قليلًا بين Ghost(Pro) والاستضافة الذاتية، ابحث عن Change theme وUpload theme داخل إعدادات التصميم. ::: ## بعد التفعيل - من **التصميم ← تخصيص** اضبط نظام الألوان والخطوط وشريط النشرة. الجدول الكامل في [مرجع الإعدادات](/settings/). - ابنِ القائمة الرئيسية، والقائمة الثانوية التي تظهر في عمود «استكشف» بالتذييل. - أنشئ الصفحات واختر القالب من إعدادات الصفحة: `Tags` و`Authors` و`Contact`. في برو أضف صفحة واختر `Membership`. - إن استخدمت صفحة التواصل، ضع عنوان النموذج في إعداد `contact_form_endpoint`. من غيره يرى المدير ملاحظة في المعاينة فقط، والقرّاء لا يرون نموذجًا فارغًا. لون العلامة وخطوطها في **التصميم ← العلامة** شأن آخر: خط العلامة يتقدّم على خط ياس للحروف التي يدعمها، بينما لون أزرار ياس نفسه يُضبط من متغيرات القالب. انظر [التخصيص](/customize/). ## قائمة قبل النشر - [ ] لغة الموقع، الاسم، الوصف، الأيقونة، والشعار. الشعار الفاتح يظهر على الوضع الداكن أيضًا إن رفعته في Ghost. - [ ] القائمة الرئيسية والثانوية. - [ ] وصف وصورة لكل تصنيف عام. صفحة التصنيف تعرضهما. - [ ] ملف الكاتب: صورة، نبذة، مكان، موقع، وحسابات. - [ ] الصفحات وقوالبها، وعنوان نموذج التواصل. - [ ] النشرة مفعّلة، وجرّبت الاشتراك في نافذة خاصة. - [ ] مقال للأعضاء فقط، ونص الحاجز واضح. - [ ] الوضع الداكن والهاتف، وصفحة بالإنجليزية إن كنت تنشر بالاتجاهين. - [ ] معاينة المشاركة لمقال (بطاقة فيسبوك أو X). - [ ] في برو: [مفتاح الترخيص](/license/) في إعداد `license_key`. عند صدور نسخة أحدث، راجع [التحديث](/update/). # التحديث https://yas.yasser.ae/update/ التحديث هو رفع النسخة الجديدة فوق القديمة. Ghost يستبدل ملفات القالب ويبقي ما خزّنه هو خارجها. ## ارفع بالاسم نفسه 1. نزّل `yas.zip` الجديد، أو `yas-pro.zip` لنسخة برو. لا تفك الضغط ولا تعِد تسمية الملف. 2. من لوحة Ghost: **الإعدادات ← التصميم ← تغيير القالب ← رفع قالب**. 3. عندما يخبرك Ghost أن قالبًا بالاسم نفسه موجود، اختر **Overwrite** (استبدال). اسم الحزمة داخل `package.json` هو هوية القالب. `yas.zip` يستبدل ياس، و`yas-pro.zip` يستبدل برو. رفع أحدهما لا يمس الآخر. إن غيّرت الاسم عامل Ghost الملف كقالب ثانٍ وترك القديم مفعّلًا. ## ما يبقى وما يذهب يبقى: - إعدادات التصميم المخصصة (الألوان، الخطوط، النصوص، ومفتاح برو). - القوائم الرئيسية والثانوية، والشعارات، ولغة الموقع. - المقالات والصفحات والتصنيفات والأعضاء والنشرة. - حقن الشيفرة في إعدادات Ghost، لأنه يُحفظ في الموقع لا في ملفات القالب. يذهب: - أي تعديل داخل ملفات القالب: CSS أو قوالب Handlebars أو ملفات الترجمة أو السكربتات. النسخة الجديدة تحل محلها. إن غيّرت `src/css` ثم بنيت القالب بنفسك، احتفظ بالنسخة في git وأعد تطبيق الفرق على الإصدار الجديد قبل أن تضغط الملف. لا تعدّل `assets/css/screen.css` مباشرة؛ يُبنى من `src/css`. انظر [التخصيص](/customize/). ## ملاحظة النسخة الجديدة المستودع ينشر ملف `versions.json` في جذره. أثناء **معاينة التصميم** في لوحة Ghost، يقارن القالب نسخته المثبتة بما في ذلك الملف. إن وُجدت نسخة أحدث تظهر ملاحظة للمدير داخل المعاينة فقط. القرّاء على الموقع العام لا يرونها. لا تعطّل الموقع ولا تخبئ محتوى. العلاج أن تنزّل الملف الجديد من الإصدارات وتعيد رفعه كما في الأعلى. هذه الملاحظة غير ملاحظة مفتاح برو. تلك تظهر في المعاينة أيضًا، وتخص الترخيص لا رقم الإصدار. شرحها في [تفعيل الترخيص](/license/). :::caution المعاينة تعرض الملاحظة لمن يملك لوحة التحكم. لا تعتمد على زائر عادي ليخبرك بوجود تحديث. ::: # إعدادات القالب https://yas.yasser.ae/settings/ الإعدادات المخصصة تظهر في **التصميم ← تخصيص**. الأسماء في عمود «المفتاح» هي معرّفات Ghost كما في `package.json` لهذا المستودع، لا الترجمة التي يرسمها Ghost بجانب الحقل. ياس المجاني يعرّف **15** إعدادًا. ياس برو يضيف **5** فيصل إلى **20**، وهو الحد الأقصى الذي يسمح به Ghost. الخمسة، ومنها `license_key`، في جدول مستقل أسفل الصفحة. برو يضم أيضًا الخمسة عشر نفسها. القيمة الفارغة `""` تعني أن القالب يستعمل نصًا مترجمًا أو وصف الموقع، كما هو موضّح في الوظيفة. `posts_per_page` في `package.json` يساوي 12. هذا ليس إعدادًا في شاشة التخصيص؛ تغييره يحتاج تعديل الملف وإعادة بناء الحزمة. ## عام | المفتاح | النوع | الافتراضي | الوظيفة | |---|---|---|---| | `color_scheme` | اختيار: Light، Dark، System | `Light` | ما يراه القارئ في أول زيارة. System يتبع وضع جهازه. | | `show_scheme_toggle` | تشغيل / إيقاف | `true` | زر القمر والشمس في الترويسة. اختيار القارئ يُحفظ في متصفحه. | | `heading_typeface` | اختيار: IBM Plex Sans Arabic، Noto Kufi Arabic، Noto Naskh Arabic، Amiri | `IBM Plex Sans Arabic` | خط العناوين والقوائم والأزرار. خط العلامة في Ghost يتقدّم إن كان مضبوطًا. | | `body_typeface` | اختيار: Noto Naskh Arabic، IBM Plex Sans Arabic، Amiri، Noto Kufi Arabic | `Noto Naskh Arabic` | خط نص المقال. خط العلامة يتقدّم للحروف التي يعرفها. | | `subscribe_title` | نص | `""` | عنوان شريط النشرة. الفارغ يستعمل الترجمة: «تصلك المقالات الجديدة على بريدك». | | `contact_form_endpoint` | نص | `""` | عنوان نموذج صفحة التواصل، مثل `https://formspree.io/f/abcd1234`. يقبل Formspree أو Basin أو Getform أو عنوانك. | | `footer_text` | نص | `""` | سطر تحت اسم الموقع في التذييل. الفارغ يستعمل وصف الموقع. | ## الصفحة الرئيسية المجموعة في `package.json` اسمها `homepage`. | المفتاح | النوع | الافتراضي | الوظيفة | |---|---|---|---| | `show_intro` | تشغيل / إيقاف | `true` | اسم الموقع وفقرة التعريف أعلى الرئيسية، في التخطيط الكلاسيكي. | | `intro_kicker` | نص | `""` | وسم صغير فوق اسم الموقع، مثل «مدونة شخصية». يظهر فقط عندما `show_intro` مفعّل. | | `intro_text` | نص | `""` | فقرة التعريف. الفارغ يستعمل وصف الموقع. يظهر فقط عندما `show_intro` مفعّل. | | `show_tag_chips` | تشغيل / إيقاف | `true` | صف فيه «الكل» ثم أكثر التصنيفات العامة نشاطًا، حتى ثمانية. | `intro_kicker` و`intro_text` مربوطان بالظهور `show_intro:true`. إيقاف المقدمة يخفيهما من شاشة التخصيص. ## المقال المجموعة اسمها `post`. | المفتاح | النوع | الافتراضي | الوظيفة | |---|---|---|---| | `show_toc` | تشغيل / إيقاف | `true` | صندوق «محتويات المقال» عندما يوجد ثلاثة عناوين `h2` أو أكثر. | | `show_reading_progress` | تشغيل / إيقاف | `true` | شريط رفيع أعلى المقال يمتلئ مع القراءة، ويبدأ من طرف الصفحة بحسب الاتجاه. | | `show_share` | تشغيل / إيقاف | `true` | مشاركة الجهاز، واتساب، X، تيليجرام، لينكدإن، فيسبوك، البريد، ونسخ الرابط. | | `show_related` | تشغيل / إيقاف | `true` | ثلاثة مقالات من التصنيف الأساسي نفسه، تحت عنوان «المزيد في {التصنيف}». | ## إعدادات ياس برو هذه الخمسة ليست في `package.json` المجاني. مع الخمسة عشر أعلاه يصبح العدد عشرين، ومنها `license_key`. | الإعداد | النوع | الافتراضي | الوظيفة | |---|---|---|---| | تخطيط الرئيسية | اختيار: كلاسيكي، افتتاحية، مجلة | كلاسيكي | كلاسيكي: مقدمة وشبكة وأول بطاقة كبيرة. افتتاحية: أحدث مقال مميز (أو أحدث مقال) مكان المقدمة. مجلة: افتتاحية ثم قائمة. | | طريقة التصفح | اختيار: المزيد، لا نهائي، أرقام | المزيد | كيف تصل الصفحة التالية. الرابط العادي يعمل من غير جافاسكربت. | | رابط صفحة العضوية | نص | `membership` | مسار الصفحة التي تفتحها روابط «اطّلع على الاشتراكات». | | الحفظ لوقت لاحق | تشغيل / إيقاف | تشغيل | علامة الحفظ على البطاقة ودرج المحفوظات. البيانات تبقى في متصفح القارئ. | | مفتاح الترخيص `license_key` | نص | `""` | الصق مفتاح برو هنا. يفتح التحديثات والدعم، ولا يوقف الموقع إن تُرك فارغًا. | شرح التخطيطات والحفظ وصفحة الاشتراكات في [مزايا ياس برو](/pro/)، وخطوات المفتاح في [تفعيل الترخيص](/license/). # القوائم واللغة https://yas.yasser.ae/navigation/ اتجاه ياس ليس إعدادًا في القالب. Ghost يمرّر لغة النشر، والقالب يضع `lang` و`dir` على الصفحة. ## لغة الموقع من **الإعدادات ← عام ← لغة الموقع**: - `ar` للعربية، والاتجاه من اليمين إلى اليسار. - `en` للإنجليزية، والاتجاه من اليسار إلى اليمين. الصيغ الإقليمية تتبع الجذر: `ar-AE` من اليمين إلى اليسار مثل `ar`. القائمة الكاملة للاتجاه من اليمين إلى اليسار: `ar`، `fa`، `ur`، `he`، `ps`، `ckb`، `sd`، `ug`، `yi`، `dv`. أي لغة أخرى تُعرض من اليسار إلى اليمين. ما ينقلب مع الاتجاه: القائمة، الأسهم، شريط التقدم، سحب عارض الصور، والأدراج. العناوين والمقتطفات تحمل `dir="auto"`، فعنوان إنجليزي داخل موقع عربي يُقرأ من اليسار، والعكس صحيح. التواريخ وأسماء الشهور تأتي من لغة Ghost. مع `ar` يطبع Ghost أرقام التاريخ بالأرقام الهندية (٢٣)، بينما عدّاد المقالات يبقى بالأرقام الغربية. (قائمة الهاتف مفتوحة من اليمين: الرئيسية، التصنيفات، الكتّاب، عن المدونة، تواصل، ثم تسجيل الدخول واشترك) *القائمة الرئيسية على الهاتف. «تسجيل الدخول» و«اشترك» يظهران عندما تكون العضوية مفعّلة.* (الرئيسية الإنجليزية من اليسار إلى اليمين، وفي الترويسة رابط العربية الذي أضافته القائمة) *الموقع نفسه بعد تغيير لغة النشر إلى `en`. رابط «العربية» في هذه اللقطة عنصر أضافه صاحب الموقع في القائمة، وليس مبدّل لغة داخل القالب.* ## القائمتان من **الإعدادات ← التنقل** (Navigation): - **الرئيسية** تظهر في الترويسة وعلى الهاتف. مثال مناسب: الرئيسية، التصنيفات، الكتّاب، عن المدونة، تواصل. - **الثانوية** تظهر في التذييل تحت عنوان «استكشف». ضع فيها ما لا يلزم في الترويسة. روابط العضوية («اشترك»، «تسجيل الدخول»، «حسابي») يضيفها القالب عندما تفعّل الأعضاء في Ghost، فلا حاجة لتكرارها في القائمة إلا إن أردت ذلك. حسابات التواصل في إعدادات Ghost تظهر في التذييل مع رابط RSS. ## صفحات بقوالب أنشئ صفحة عادية، ثم من إعداداتها اختر القالب: | القالب | ماذا يعرض | |---|---| | `Tags` | شبكة التصنيفات العامة: صورتها ووصفها وعدد المقالات. من غير صورة يبقى الاسم على أرضية هادئة. | | `Authors` | بطاقة لكل كاتب: صورته ونبذته وعدد مقالاته. | | `Contact` | نص الصفحة ونموذج (الاسم، البريد، الرسالة). يحتاج `contact_form_endpoint`. | | `Membership` | برو خطط Ghost مع تبديل شهري / سنوي. انظر [العضوية](/membership/). | اربط هذه الصفحات من القائمة حتى يجدها القارئ. (صفحة التصنيفات: بطاقات القراءة والكتابة والسفر والتقنية، وتصنيفان بلا صورة) *قالب Tags. الصورة والوصف يأتيان من إعدادات التصنيف في Ghost.* (أرشيف تصنيف القراءة: صورة عريضة، الاسم، الوصف، ثم بطاقات المقالات) *صفحة التصنيف نفسها (ليست قالب Tags). الوصف والصورة يظهران فوق المقالات.* (صفحة الكتّاب وفيها بطاقة واحدة: صورة الكاتبة وسارة الكاتبة ونبذتها وعدد المقالات) *قالب Authors.* (صفحة كاتبة: صورتها ونبذتها وروابطها ثم شبكة مقالاتها) *أرشيف الكاتب. الصورة والنبذة والمكان والموقع والحسابات تُملأ من ملفه في Ghost.* (صفحة تواصل: العنوان والنص في جهة، ونموذج الاسم والبريد والرسالة في الجهة الأخرى) *قالب Contact بعد ضبط عنوان النموذج.* من غير عنوان للنموذج تظهر للمدير في المعاينة جملة تطلب إضافته من التصميم. الزائر لا يرى هذه الجملة ولا يرى نموذجًا مكسورًا. ## لغة إضافية في الملفات القالب يُشحن بـ `ar` و`en`. لإضافة لغة انسخ `locales/en.json` إلى `locales/.json`، ترجم القيم واترك المفاتيح، ثم: ```bash npm run locales npm run zip ``` ارفع الملف الناتج كما في [التحديث](/update/). `npm run locales` يفشل إن نقص مفتاح أو زاد مفتاح بلا مقابل في الإنجليزية. # العضوية وحاجز المحتوى https://yas.yasser.ae/membership/ ياس يستعمل أعضاء Ghost كما هم: بوابة التسجيل، وStripe للاشتراك المدفوع، وصلاحية كل مقال. القالب يغيّر شكل الحاجز وشريط النشرة، ولا يستبدل نظام العضوية. فعّل الأعضاء من إعدادات العضوية في Ghost. بعدها تظهر «اشترك» و«تسجيل الدخول» في الترويسة، ويظهر شريط النشرة أسفل الرئيسية وأسفل المقال. ## شريط النشرة العنوان يأتي من `subscribe_title`. إن تركته فارغًا فالنص «تصلك المقالات الجديدة على بريدك»، وتحته «بلا إزعاج، وتقدر تلغي اشتراكك متى شئت.» الحقل اتجاهه من اليسار إلى اليمين لأنه بريد. في ياس برو يضيف الشريط رابط «اطّلع على الاشتراكات» إلى صفحة العضوية. المسار الافتراضي `membership`، وتغيّره من إعداد رابط صفحة العضوية. ## حاجز المحتوى Ghost يقطع المقال حيث حددت المعاينة المجانية، وياس يرسم صندوقًا حسب نوع الوصول: | صلاحية المقال | العنوان | ماذا يُعرض | |---|---|---| | للأعضاء | هذا المقال للمشتركين | الاشتراك المجاني يفتحه، وتصلك المقالات الجديدة على بريدك. الزر «اشترك مجانًا»، وبجانبه «تسجيل الدخول». | | للمدفوعين | هذا المقال للمشتركين المدفوعين | أي اشتراك مدفوع يفتحه. الزر «اطّلع على الاشتراكات» و«تسجيل الدخول». | | لخطط محددة | هذا المقال لاشتراكات محددة | يذكر أسماء الخطط. الزر «اطّلع على الاشتراكات». | من دخل بحساب لا تغطيه الصلاحية يرى «رقِّ اشتراكك» ويفتح خطط حسابه في بوابة Ghost. (مقال للأعضاء وقد توقف النص عند صندوق: هذا المقال للمشتركين، اشترك مجانًا، تسجيل الدخول، ثم المشاركة والنشرة والمزيد في القراءة) *حاجز «للمشتركين». أسفله المشاركة وشريط النشرة وثلاثة مقالات من التصنيف نفسه، وهذه لا تخضع للحاجز.* ## البوابة وStripe أزرار الاشتراك والدخول تفتح بوابة Ghost (`#/portal/...`). لون البوابة والتعليقات يتبع لون العلامة في Ghost، لا لون أزرار ياس. إن أردتهما متقاربين، قرّب لون العلامة من أخضر القالب `#2f6f66` أو غيّر متغير القالب. انظر [التخصيص](/customize/). الاشتراك المدفوع يحتاج ربط Stripe من إعدادات العضوية. من غيره تبقى الخطة المجانية، ولا يظهر في برو تبديل الشهري والسنوي. ## التعليقات فعّلها من إعدادات العضوية. ياس لا يحمّلها مع أول رسم للصفحة: القسم يُبنى عندما يقترب القارئ منه. من غير جافاسكربت تظهر جملة «التعليقات تحتاج تفعيل جافاسكربت.» ## صفحة الخطط في برو قالب `Membership` يعرض خطط Ghost في بطاقات، مع مفتاح **شهري / سنوي** عندما تكون الأسعار السنوية موجودة في Stripe. عنوان الصفحة ونصها من محتوى الصفحة التي تنشئها، لا من القالب. أنشئ الصفحة بالمسار نفسه الذي في إعداد «رابط صفحة العضوية» (الافتراضي `membership`)، ثم اختر القالب `Membership`. إن أشار «اطّلع على الاشتراكات» إلى صفحة بلا هذا القالب، أو إلى مسار لم تُنشئه، يصل القارئ إلى 404. اللقطات وسلوك الحفظ والطباعة في [مزايا ياس برو](/pro/). ## تجربة سريعة 1. افتح نافذة خاصة وسجّل بريدًا في الشريط. 2. أكّد الرسالة، ثم افتح مقالًا للأعضاء. 3. من حساب مجاني افتح مقالًا مدفوعًا وتأكد أن الحاجز يطلب الترقية. 4. عطّل جافاسكربت لحظة: التعليقات تعتذر، وروابط الصفحات في المجاني ما زالت تعمل. # مزايا ياس برو https://yas.yasser.ae/pro/ ياس برو يضيف صفحات وتخطيطات فوق [الإصدار المجاني](/). لا يفتح قفلًا في المجاني ولا يضع علامة مائية. الموقع يعمل من غير مفتاح؛ المفتاح للتحديثات والدعم كما في [تفعيل الترخيص](/license/). الإعدادات الخمسة الخاصة ببرو، مع الخمسة عشر المشتركة، موثّقة في [مرجع الإعدادات](/settings/). ## تخطيطات الرئيسية الإعداد اسمه «تخطيط الرئيسية»، وافتراضه **كلاسيكي** وهو شكل المجاني: مقدمة ثم شبكة. **افتتاحية.** أحدث مقال عليه علامة «مميز» يأخذ مكان المقدمة. إن لم يوجد مقال مميز يُستخدم أحدث مقال. تحته الشبكة، وعلى البطاقات علامة حفظ. (افتتاحية برو: بطاقة عريضة فيها عنوان المقال المميز وصورته وزر اقرأ التدوينة، ثم شبكة عليها علامات حفظ) *تخطيط الافتتاحية. زر أسفل الشبكة يحمّل الصفحة التالية.* (الافتتاحية في الوضع الداكن، وعلامة الحفظ على زاوية كل بطاقة) *الافتتاحية مع الوضع الداكن.* **مجلة.** الافتتاحية تبقى في الأعلى، وتحتها قائمة من عمودين: عنوان ومقتطف وصورة صغيرة. (تخطيط المجلة: افتتاحية ثم صفوف من عنوان وصورة مصغرة) *تخطيط المجلة. المقدمة الكلاسيكية تختفي لأن الافتتاحية حلّت محلها.* ## التصفح الإعداد «طريقة التصفح»: - **المزيد:** زر يحمّل الصفحة التالية في المكان نفسه. - **لا نهائي:** التحميل عند الاقتراب من أسفل القائمة. - **أرقام:** روابط الصفحات كما في المجاني. في الحالات الثلاث يبقى رابط الصفحة التالية في HTML. إن مُنع جافاسكربت انتقل القارئ إلى الصفحة التالية بالطريقة العادية، ولم يعلق على زر صامت. ## قالب المقالة على المقال، من إعدادات المقال في Ghost، اختر قالب **Essay** (المقالة). الشكل للنص: عنوان كبير، وصندوق المحتويات قريب من البداية، والصورة داخل النص لا شريطًا عريضًا فوق العنوان. (مقال بقالب المقالة: عنوان كبير، صندوق محتويات، صور داخل النص، مشاركة، نشرة، تعليقات، ومقالات ذات صلة) *قالب المقالة. المحتويات والمشاركة والنشرة تبقى من إعدادات المقال العامة.* ## صفحة الاشتراكات أنشئ صفحة بالمسار `membership` (أو المسار الذي وضعته في الإعداد) واختر قالب `Membership`. البطاقات هي خطط Ghost. **شهري / سنوي** يظهر عندما يوفّر Stripe سعرًا سنويًا. (صفحة ادعم دفتر وفيها خطتان، مجانية ومدفوعة، والمفتاح على شهري) *القالب يرتب الخطط. عنوان الصفحة وفقرتها من محرر Ghost، وأسئلة الأسفل من محتوى الصفحة أيضًا.* (الصفحة نفسها والمفتاح على سنوي والسعر السنوي ظاهر) *التبديل إلى سنوي يغيّر السعر المعروض. من غير Stripe مدفوع لا يظهر المفتاح.* روابط «اطّلع على الاشتراكات» في الحاجز وفي شريط النشرة تذهب إلى هذه الصفحة. ## الحفظ لوقت لاحق عند تشغيل الإعداد تظهر علامة على البطاقة وعلى المقال. الدرج اسمه «المحفوظات»، وفيه جملة أن القائمة تبقى في هذا المتصفح فقط، وزر لمسحها. لا يُرسل شيء إلى Ghost ولا إلى حساب العضو. قارئ يبدّل الجهاز أو يمسح بيانات الموقع يبدأ من جديد. هذا مقصود. (درج المحفوظات مفتوح وفيه مقالان محفوظان وخلفه الرئيسية معتمة) *الدرج. العدّاد على أيقونة الحفظ في الترويسة يتبع عدد المحفوظات في هذا المتصفح.* ## الطباعة والوصف ورقة الطباعة تخفي الترويسة والتذييل وشريط التقدم والمشاركة والمقالات ذات الصلة والنشرة والتعليقات وصندوق المحتويات، وتُبقي النص. من المتصفح: طباعة أو حفظ PDF. إن خلا المقال من وصف مخصص ومن مقتطف، يكتب برو وصفًا احتياطيًا لمحركات البحث ولبطاقات المشاركة من أول الكلام. إن ملأت الوصف في Ghost فهو الذي يُستخدم. بعد اختيار التخطيطات ضع [المفتاح](/license/) في `license_key` حتى تصلك التحديثات. # تفعيل الترخيص https://yas.yasser.ae/license/ مفتاح ياس برو حقل نصي اسمه `license_key` في **التصميم ← تخصيص**. الصقه هناك واحفظ. لا تضعه في مقال، ولا في حقن الشيفرة، ولا في ملف عام. المفتاح يفتح **التحديثات والدعم**. لا يفتح ميزات مقفلة: [مزايا برو](/pro/) تعمل والحقل فارغ. الموقع لا يتوقف، ولا يُخفى محتوى، ولا تُعرض شارة للقرّاء. ## ماذا ترى في المعاينة المفتاح لا يُكتب في HTML العام. يظهر داخل معاينة التصميم في لوحة Ghost فقط (`@site._preview`). إن كان الحقل فارغًا فشريط أعلى المعاينة يطلب إضافة المفتاح من إعدادات القالب، ويذكّر أن الموقع يعمل من دونه. الزائر العادي لا يرى الشريط. (معاينة التصميم وفي أعلاها شريط أصفر يطلب مفتاح الترخيص، وتحت الشريط افتتاحية الموقع) *الملاحظة للمدير داخل المعاينة. هذه غير ملاحظة [توفّر نسخة أحدث](/update/) التي تعتمد على `versions.json`.* إن رفض الفحص المفتاح لاحقًا، أقصى ما يتغير هو نص هذه الملاحظة. الواجهة العامة تبقى. ## من أين يأتي المفتاح يصل مع شراء ياس برو. انسخه كما هو، من غير مسافات زائدة، إلى `license_key`. مفتاح ياس (المجاني) غير موجود لأن المجاني لا يطلب ترخيصًا. تحديث برو يتم برفع `yas-pro.zip` الجديد واستبدال القالب، كما في [التحديث](/update/). المفتاح لا يُرفع ملفًا. ## كيف يعمل الفحص هذا الجزء لمن يبني نسخة برو أو يراجعها. - `assets/js/license.js` يُحمَّل في المعاينة فقط، وعند وجود قيمة في `license_key`. - الفحص **معطّل في الملف** (`ENABLED = false`) إلى أن تضبطه أنت. - لتفعيله: `ENABLED = true` مع `STORE_ID` و`PRODUCT_ID` الخاصين بمتجرك. - الطلب عام: `POST https://api.lemonsqueezy.com/v1/licenses/validate` ويرسل `license_key`. لا مفتاح سري في القالب، ولا يصح وضع سر فيه. - يتحقق الرد من `valid` ومن `meta.store_id` و`meta.product_id`، وتُحفظ النتيجة 24 ساعة. - خطأ الشبكة أو CORS يُقابل بالصمت. لا رسالة حمراء للقرّاء لأنهم لا يحمّلون السكربت أصلًا. - إن أردت وسيطًا، وجّه `ENDPOINT` إلى عامل صغير (مثل Cloudflare Worker) يمرر الطلب ويضيف ترويسات CORS ويحد المعدل. يمكن للوسيط أن يتعامل مع `activate` و`instance_id` إن احتجتهما. الفحص ملاحظة إدارية. ليس قفلًا. # التخصيص https://yas.yasser.ae/customize/ أكثر الشكل يُضبط من لوحة Ghost من غير فتح ملف. هذا الصفحة لما يبقى بعد ذلك: لون ياس، الخطوط، وحقن شيفرة صغيرة. ## حقن الشيفرة من **الإعدادات ← حقن الشيفرة** (Code injection): - **ترويسة الموقع** تُضاف لكل الصفحات داخل ``. - **تذييل الموقع** قبل إغلاق الصفحة. مناسب لسكربت بـ `defer` أو `async`. - حقن المقال من إعدادات المقال نفسه، إن أردت شيفرة على مقال واحد. حقن الترويسة يبقى عند [التحديث](/update/) لأنه محفوظ في Ghost لا في ملف القالب. مثال يغيّر لون الأزرار والروابط وشريط التقدم. ضعه في ترويسة الموقع: ```html :root { --yas-accent: #8a4b2f; --yas-accent-strong: #6e3a24; --yas-accent-soft: #f3e6dc; --yas-on-accent: #fffaf6; } html[data-theme="dark"] { --yas-accent: #e2b08a; --yas-accent-strong: #f0c9ad; --yas-accent-soft: #3a2c24; --yas-on-accent: #2a160e; } ``` أبقِ الوضع الداكن في الحسبان. لون واحد على الخلفيتين يقلب التباين. ## لون ياس ولون Ghost أزرار ياس وروابطه وشريط تقدمه وبطاقاته تقرأ `--yas-accent` من `src/css/10-tokens.css`. القيمة الفاتحة `#2f6f66`. لون **العلامة** في Ghost (Brand) يلوّن بوابة الأعضاء وتعليقات Ghost، لأنهما يأتيان من `{{ghost_head}}` لا من ورقة ياس. تقريب اللونين يجعل البوابة والقالب من عائلة واحدة. تغيير لون العلامة وحده لا يعيد طلاء أزرار المقال. ## الخطوط من **التصميم ← تخصيص**: - `heading_typeface` للعناوين والقوائم والأزرار. الافتراضي IBM Plex Sans Arabic. - `body_typeface` لنص المقال. الافتراضي Noto Naskh Arabic. الخيارات الأربعة: IBM Plex Sans Arabic، Noto Kufi Arabic، Noto Naskh Arabic، Amiri. كلها بترخيص SIL Open Font License، ملفات `woff2` داخل القالب، مقسومة عربي / لاتيني بـ `unicode-range`. لا طلب إلى Google. من **التصميم ← العلامة ← الخطوط** يضع Ghost خطًا يتقدّم على اختيار ياس. خط ياس يبقى احتياطًا للحروف العربية التي لا يرسمها خط العلامة. إن بدا الخط مختلفًا عن العرض التجريبي، فغالبًا هناك خط علامة مضبوط، وهذا مقصود. على المواقع ذات اللغة `ar` أو `fa` أو `ur` يُحمَّل خط النص العربي مسبقًا. غير ذلك لا يُطلب الملف العربي قبل الحاجة. لاستبدال العائلة كلها، عدّل `src/css/00-fonts.css` ثم أعد البناء. لا تلمس `assets/css/screen.css`؛ الأمر `npm run css` يكتبه من جديد. ## مقاسات الصور `package.json` يطلب من Ghost المقاسات 160 و400 و720 و1200 و2000 بكسل. الغلاف في المقال يُعرض حتى 2000، والبطاقات أصغر. ارفع صورة الغلاف بعرض لا يقل عن 2000 بكسل على الضلع الطويل، واجعل موضوعها قرب الوسط لأن الإطار يقص من المنتصف. ## لمن يبني القالب ```bash npm install npm run css # يبني assets/css/screen.css من src/css npm run locales # يطابق مفاتيح الترجمة npm run zip # ينشئ dist/yas.zip npm test # ما سبق ثم gscan لإصدار Ghost 6 ``` الملفات: قوالب `*.hbs` في الجذر، `partials/`، `locales/`، `assets/`، ومصادر CSS في `src/css`. الخصائص منطقية (`margin-inline-start`، `inset-inline-end`) حتى ينقلب الاتجاه من غير نسخة ثانية. النصوص التي يقرأها جافاسكربت في `partials/strings.hbs` حتى تدخل فحص الترجمة. عند تبديل الوضع يُطلق الحدث `yas:scheme`. في برو، بعد جلب مقالات إضافية، يُطلق `yas:cards` حتى تعيد السكربتات ربط البطاقات الجديدة. سقف Ghost عشرون إعدادًا مخصصًا. المجاني يستعمل 15، وبرو يستعمل العشرين. لا تضف حقلًا في برو من غير حذف آخر. # أسئلة شائعة https://yas.yasser.ae/faq/ ## هل المجاني نسخة تجربة؟ لا. لا مدة، ولا علامة مائية، ولا مقالات تختفي. [ياس برو](/pro/) يضيف تخطيطات وصفحة اشتراكات وحفظًا وطباعة. لا يفتح شيئًا مخفيًا في المجاني. ## هل يتوقف برو إن لم أضع المفتاح؟ لا. `license_key` للتحديثات والدعم. الموقع العام لا يقرأ المفتاح. التفاصيل في [تفعيل الترخيص](/license/). ## هل يصلح ياس لمدونة إنجليزية فقط؟ نعم. **الإعدادات ← عام ← لغة الموقع** = `en`. الاتجاه يصبح من اليسار إلى اليمين، والخطوط اللاتينية في الملفات نفسها تغطي النص الإنجليزي. الخط العربي يبقى للحروف العربية إن وردت في عنوان أو اقتباس. ## هل أستطيع استخدام خط من عندي؟ نعم، بطريقتين. خط **العلامة** في Ghost يتقدّم تلقائيًا. أو حرّر `src/css/00-fonts.css` وأعد البناء. انظر [التخصيص](/customize/). ## أين تُحفظ مقالات برو المحفوظة؟ في `localStorage` داخل متصفح القارئ. لا حساب، ولا طلب إلى خادمك. مسح بيانات الموقع يمسح القائمة. الدرج يقول ذلك صراحة. ## هل أفك الضغط قبل الرفع؟ لا. ارفع `yas.zip` أو `yas-pro.zip` كما نزّلته. فكّه ثم أعد ضغطه يغيّر الجذر الذي يتوقعه Ghost. ## ما إصدار Ghost المطلوب؟ Ghost 6.0 أو أحدث، مستضافًا أو على Ghost(Pro). الحقل `engines.ghost` في `package.json` هو `>=6.0.0`. ## مشكلات بعد الرفع | ما تراه | ماذا تفعل | |---|---| | الموقع عربي والمحتوى من اليسار إلى اليمين | **الإعدادات ← عام ← لغة الموقع** يجب أن تكون `ar` أو رمزًا من قائمة الاتجاه في [القوائم واللغة](/navigation/). لغة المتصفح لا تكفي. | | الوضع الليلي يعود للفاتح | متصفح القارئ يمنع التخزين المحلي. القالب يرجع إلى إعداد الجهاز أو إلى `color_scheme`. | | صفحة التواصل تقول أضف عنوان النموذج | الجملة للمدير في المعاينة. ضع `contact_form_endpoint`. القرّاء لا يرونها. | | التعليقات غير ظاهرة | فعّلها من إعدادات العضوية. تُحمَّل عند الاقتراب من أسفل المقال، وتحتاج جافاسكربت. | | الخط ليس كالموقع التجريبي | خط العلامة في **التصميم ← العلامة ← الخطوط** يتقدّم على خط ياس. أزله أو غيّره. | | «اطّلع على الاشتراكات» يفتح 404 | برو أنشئ صفحة بمسار الإعداد (الافتراضي `membership`) واختر قالب Membership. | | لا يوجد تبديل شهري / سنوي | برو الاشتراك المدفوع عبر Stripe غير مربوط، أو الخطة بلا سعر سنوي. | | زر المزيد يفتح صفحة جديدة | برو جافاسكربت لم يعمل. الرابط العادي هو البديل، وهو متعمد. | | بعد التحديث ضاعت تعديلاتي على CSS | استبدال القالب يستبدل الملفات. إعدادات Ghost والمحتوى يبقيان. انظر [التحديث](/update/). | لم تجد الحالة؟ افتح [المقدمة](/) وتأكد أن السلوك الذي تبحث عنه من برو لا من المجاني. # سجل التغييرات https://yas.yasser.ae/changelog/ هذا السجل للإصدار المجاني في هذا المستودع. ياس برو يتبع ترقيمه الخاص ويصل مع `yas-pro.zip`. عند صدور رقم جديد يظهر تنبيه في معاينة التصميم اعتمادًا على `versions.json`. انظر [التحديث](/update/). ## 1.0.0 — 5 ديسمبر 2026 أول إصدار عام. - قالب قراءة لـ Ghost 6، عربي أولًا. `lang` و`dir` يتبعان لغة النشر. الاتجاه من اليمين إلى اليسار للرموز `ar` و`fa` و`ur` و`he` و`ps` و`ckb` و`sd` و`ug` و`yi` و`dv`. - كل نص ظاهر عبر `{{t}}`. ملفّا `locales/ar.json` و`locales/en.json`، وفحص `npm run locales`. - نظام فاتح أو داكن أو حسب الجهاز، وزر للقارئ يتذكر الاختيار. - منتقي خطوط عربية: IBM Plex Sans Arabic وNoto Naskh Arabic وNoto Kufi Arabic وAmiri، مستضافة ومقسومة بـ `unicode-range`. خط العلامة في Ghost يتقدّم إن وُجد. - شريط نشرة، وحاجز يعرف الوصول: أعضاء، مدفوع، أو خطط محددة. - قوالب Tags وAuthors وContact، وصفحة تصنيف وصفحة كاتب أغنى. - عارض صور بلوحة مفاتيح وسحب، يتبع اتجاه القراءة. - محتويات المقال، شريط تقدم، مقالات ذات صلة، وتعليقات تُحمَّل عند الاقتراب. - مشاركة: مشاركة الجهاز، واتساب، X، تيليجرام، لينكدإن، فيسبوك، البريد، نسخ الرابط. - قائمة التذييل وحسابات التواصل من إعدادات Ghost. - إتاحة: رابط تخطٍّ، حلقات تركيز، احترام تقليل الحركة، وألوان قسرية. - `npm test` يبني CSS ويطابق الترجمات ويضغط الملف ويشغّل gscan. مزايا برو (التخطيطات، المقالة، التصفح، صفحة الاشتراكات، الحفظ، الطباعة) ليست في حزمة 1.0.0 هذه. شرحها في [مزايا ياس برو](/pro/). # للمساعدات الذكية https://yas.yasser.ae/ai/ الدليل منشور للناس، ونسخته النصية منشورة للمساعدات. الملفان في جذر الموقع، بجانب الصفحة الرئيسية: - [`/llms.txt`](/llms.txt) فهرس قصير: عنوان كل صفحة ورابطها وجملة عما فيها، بالعربية والإنجليزية. - [`/llms-full.txt`](/llms-full.txt) نص الصفحات كلها من غير التنسيق، حتى يقرأه مساعد لا يفتح كل رابط وحده. العنوانان الكاملان على الاستضافة: - `https://yas.yasser.ae/llms.txt` و `https://yas.yasser.ae/llms-full.txt` - وعلى GitHub Pages: `https://yasermaadan.github.io/yas-ghost/llms.txt` و `https://yasermaadan.github.io/yas-ghost/llms-full.txt` المساران `/llms.txt` و`/llms-full.txt` ثابتان بالنسبة لجذر الموقع. البناء يكتب الملفين من صفحات `site/src/content/docs` قبل توليد HTML، ويضع فيهما اسم النطاق الذي بُني له الدليل (`DOCS_SITE`). ## كيف تستعملهما أعطِ المساعد الرابط الكامل لـ `llms-full.txt` إن كان يستطيع جلب عنوان، أو الصق محتواه في المحادثة. للفهرس وحده يكفي `llms.txt` ثم اطلب الصفحة التي تحتاجها. الملف يغطي الإصدار المجاني في هذا المستودع وسلوك ياس برو كما هو موثّق هنا: الإعدادات، التثبيت، التحديث، اللغة، العضوية، والمفتاح. لا يغني عن `package.json` إن كان السؤال عن مفتاح إعداد بعينه؛ [مرجع الإعدادات](/settings/) ينقل تلك المفاتيح كما هي. لا تضع مفتاح ترخيص ولا سر متجر داخل محادثة مساعد. `license_key` يبقى في إعداد القالب، والفحص لا يحتاج سرًا داخل القالب أصلًا. انظر [تفعيل الترخيص](/license/). # Introduction https://yas.yasser.ae/en/ **Yas** is a theme for [Ghost](https://ghost.org/) 6, written for long reading in Arabic and set so English feels at home too. Arabic fonts ship inside the theme, writing direction follows the publication language, and dark mode is the reader's choice. The edition in this repository is free under the MIT licence. **Yas Pro** is a separate paid edition: extra layouts, a membership page, and save-for-later. Neither edition times out or watermarks the site. Demo: [ghost.yasser.ae](https://ghost.yasser.ae). ## What the theme does - Sets `lang` and `dir` from Ghost's publication language. Arabic, Persian, Urdu, Hebrew and the other languages listed later are right to left; everything else is left to right. - Translates every visible string. `locales/ar.json` and `locales/en.json` ship with the theme. - Offers light, dark, or system, plus a header switch that remembers the reader's choice. - Offers four open Arabic families: IBM Plex Sans Arabic, Noto Naskh Arabic, Noto Kufi Arabic, and Amiri. - Draws the paywall from the post's access level, and a newsletter band. - Provides page templates for tags, authors, and contact. - On a post: contents, a progress bar, a lightbox, sharing, related posts, and comments that load as the reader reaches them. ## Yas and Yas Pro | | Yas | Yas Pro | |---|---|---| | Direction from the publication language, Arabic and English translations | ✓ | ✓ | | Light / dark / system, and a reader switch | ✓ | ✓ | | Arabic font picker (four families) | ✓ | ✓ | | Paywall, newsletter band, tags, authors, contact | ✓ | ✓ | | Lightbox, contents, progress, share, related posts, comments | ✓ | ✓ | | Homepage layouts: Classic, Opener, Magazine | — | ✓ | | Essay template for long text | — | ✓ | | Load more, or continuous loading | — | ✓ | | Membership page with a monthly / yearly switch | — | ✓ | | Save for later, print stylesheet, fallback share description | — | ✓ | The free edition defines **15** custom settings. Pro adds **5** and reaches Ghost's cap of **20**, including `license_key`. The tables are on the [settings reference](/en/settings/). ## What it looks like Screenshots are from the demo publication. The free homepage opens with an intro, then a card grid whose first card is larger. (Arabic homepage in light mode: header with navigation, search and theme switch, site title, intro, tag chips, and a post grid) *Classic homepage. Tag chips are the busiest public tags. The grid is the latest posts.* (The same homepage in dark mode, with a warm ink background and darker cards) *Dark mode is its own palette, not an inversion of the light one.* (English homepage, left to right, with the same cards following the new direction) *Publication language `en`. Direction flips. Mixed titles inside cards stay readable.* (Homepage on a phone, one column, navigation collapsed) *On a phone the menu collapses and cards stack.* (A post: title, feature image, contents box, body, share buttons, newsletter, and related posts) *A post. The contents box appears when the body has three or more second-level headings.* (A full-screen image viewer over the post, with a close button and a caption) *Clicking an image in the post opens the viewer. Arrows and swipe follow the page direction.* ## Before you upload You need Ghost 6.0 or newer, on Ghost(Pro) or on a server you run. 1. [Install](/en/install/) from the release zip. Do not unzip it. 2. Set the publication language to `ar` for an Arabic site. See [navigation and locale](/en/navigation/). 3. Walk through [settings](/en/settings/), then [membership](/en/membership/) if you take subscribers. 4. If you bought Pro, read [its features](/en/pro/) and then [licence activation](/en/license/). # Installation https://yas.yasser.ae/en/install/ Upload the theme file as it shipped. Ghost unpacks it. Unzipping it yourself and zipping it again changes the folder Ghost expects, and the upload can fail the check. ## The release file - **Yas:** download `yas.zip` from this repository's [Releases](https://github.com/YaserMaadan/yas-ghost/releases). - **Yas Pro:** `yas-pro.zip` comes with the paid edition, separate from this MIT repository. Keep the filename. Ghost identifies the theme by the package name, and a later update depends on that name staying `yas` or `yas-pro`. ## Upload in Ghost Admin 1. Open Ghost Admin. 2. Go to **Settings → Design → Change theme → Upload theme**. 3. Choose the zip. 4. Activate the theme when it appears in the list. Then, in **Settings → General → Publication language**, set `ar` for Arabic or `en` for English. Direction is calculated from that value, not from the browser language. Detail is on [navigation and locale](/en/navigation/). :::note On Ghost 6 this screen lives under Design. If the label differs slightly between Ghost(Pro) and a self-hosted install, look for Change theme and Upload theme inside the design settings. ::: ## After activation - Under **Design → Customize**, set the colour scheme, fonts, and newsletter title. The full table is the [settings reference](/en/settings/). - Build the primary navigation, and the secondary navigation that shows in the footer's Explore column. - Create pages and pick a template in the page settings: `Tags`, `Authors`, and `Contact`. On Pro, add a page and pick `Membership`. - If you use the contact page, set `contact_form_endpoint`. Without it, only an admin sees a note in the design preview. Readers do not see a broken form. Ghost's accent colour and brand fonts, under **Design → Brand**, are separate: a brand font wins for letters it can draw, while Yas's own buttons use the theme's tokens. See [customization](/en/customize/). ## Before you publish - [ ] Publication language, title, description, icon, and logo. A light logo still shows on the dark scheme if Ghost has one. - [ ] Primary and secondary navigation. - [ ] A description and image on each public tag. The tag page shows them. - [ ] Author profile: photo, bio, location, website, and accounts. - [ ] Pages and their templates, plus the contact form address. - [ ] Newsletter on, and a sign-up tried in a private window. - [ ] A members-only post, with the paywall text checked. - [ ] Dark mode and a phone, plus an English page if you publish both ways. - [ ] A share preview of a post (the Facebook or X card). - [ ] On Pro: the [licence key](/en/license/) in `license_key`. When a newer build ships, follow [updating](/en/update/). # Updating https://yas.yasser.ae/en/update/ An update is uploading the new package over the old one. Ghost replaces the theme files and keeps what it stores outside them. ## Upload the same name 1. Download the new `yas.zip`, or `yas-pro.zip` for Pro. Do not unzip it and do not rename it. 2. In Ghost Admin: **Settings → Design → Change theme → Upload theme**. 3. When Ghost says a theme with the same name already exists, choose **Overwrite**. The `name` in `package.json` is the theme's identity. `yas.zip` replaces Yas. `yas-pro.zip` replaces Pro. Uploading one does not touch the other. If you rename the file, Ghost treats it as a second theme and leaves the old one active. ## What stays and what goes Stays: - Custom design settings (scheme, fonts, text, and the Pro key). - Primary and secondary navigation, logos, and the publication language. - Posts, pages, tags, members, and the newsletter. - Code injection in Ghost settings, because Ghost stores it on the site, not in the theme files. Goes: - Any edit inside the theme files: CSS, Handlebars templates, locale files, or scripts. The new package replaces them. If you changed `src/css` and built the theme yourself, keep that work in git and reapply the diff onto the new release before you zip it. Do not edit `assets/css/screen.css` by hand; `npm run css` writes it from `src/css`. See [customization](/en/customize/). ## The new-version notice This repository publishes `versions.json` at its root. In the **design preview** inside Ghost Admin, the theme compares the installed version with that file. When a newer version is listed, a notice appears in the preview for the admin. Readers of the public site do not see it. It does not disable the site or hide content. Download the new zip from Releases and upload it as above. This notice is not the Pro licence note. That one also shows in the preview, and it is about the key, not the version number. It is described under [licence activation](/en/license/). :::caution The preview shows the notice to someone who can open Ghost Admin. Do not wait for a public visitor to tell you an update exists. ::: # Theme settings https://yas.yasser.ae/en/settings/ Custom settings show under **Design → Customize**. The Key column is the Ghost id from this repository's `package.json`, not the label Ghost prints beside the field. Free Yas defines **15** settings. Yas Pro adds **5**, which brings the total to **20**, Ghost's maximum. Those five, including `license_key`, are in their own table at the bottom. Pro also includes the same fifteen. An empty string `""` means the theme uses a translated sentence or the site description, as the Purpose column says. `posts_per_page` in `package.json` is 12. That is not a Customize field. Changing it means editing the file and rebuilding the zip. ## Site-wide | Key | Type | Default | Purpose | |---|---|---|---| | `color_scheme` | Select: Light, Dark, System | `Light` | What a first-time reader sees. System follows their device. | | `show_scheme_toggle` | On / off | `true` | Moon and sun button in the header. The reader's choice is stored in their browser. | | `heading_typeface` | Select: IBM Plex Sans Arabic, Noto Kufi Arabic, Noto Naskh Arabic, Amiri | `IBM Plex Sans Arabic` | Titles, menus, and buttons. A Ghost Brand font wins when one is set. | | `body_typeface` | Select: Noto Naskh Arabic, IBM Plex Sans Arabic, Amiri, Noto Kufi Arabic | `Noto Naskh Arabic` | Post text. The Brand font wins for letters it covers. | | `subscribe_title` | Text | `""` | Newsletter heading. Empty uses the translation: "Get new posts by email". | | `contact_form_endpoint` | Text | `""` | Where the contact form posts, for example `https://formspree.io/f/abcd1234`. Formspree, Basin, Getform, or your own endpoint. | | `footer_text` | Text | `""` | Line under the site name in the footer. Empty uses the site description. | ## Homepage The group name in `package.json` is `homepage`. | Key | Type | Default | Purpose | |---|---|---|---| | `show_intro` | On / off | `true` | Site title and intro paragraph at the top of the homepage, on the Classic layout. | | `intro_kicker` | Text | `""` | Small label above the site title, such as "Personal blog". Shown only while `show_intro` is on. | | `intro_text` | Text | `""` | The intro paragraph. Empty uses the site description. Shown only while `show_intro` is on. | | `show_tag_chips` | On / off | `true` | A row with All, then the busiest public tags, up to eight. | `intro_kicker` and `intro_text` are tied to visibility `show_intro:true`. Turning the intro off hides those fields on the Customize screen. ## Post The group name is `post`. | Key | Type | Default | Purpose | |---|---|---|---| | `show_toc` | On / off | `true` | A "Contents" box when the post has three or more `h2` headings. | | `show_reading_progress` | On / off | `true` | A thin bar at the top of a post. It grows from the start edge of the page. | | `show_share` | On / off | `true` | Device share, WhatsApp, X, Telegram, LinkedIn, Facebook, email, and copy link. | | `show_related` | On / off | `true` | Three posts from the same primary tag, under "More in {tag}". | ## Yas Pro settings These five are not in the free `package.json`. Together with the fifteen above, Pro uses twenty settings, including `license_key`. | Setting | Type | Default | Purpose | |---|---|---|---| | Homepage layout | Select: Classic, Opener, Magazine | Classic | Classic: intro and a grid with a large first card. Opener: the newest featured post (or the newest post) replaces the intro. Magazine: opener, then a list. | | Pagination style | Select: Load more, Infinite, Page numbers | Load more | How the next page arrives. The plain link still works without JavaScript. | | Membership page slug | Text | `membership` | Path used by "See plans" links. | | Show save for later | On / off | On | Bookmark on cards and the saved drawer. Data stays in the reader's browser. | | Licence key `license_key` | Text | `""` | Paste the Pro key here. It enables updates and support, and never stops the site if left empty. | Layouts, saving, and the membership page are described under [Yas Pro](/en/pro/). The key steps are under [licence activation](/en/license/). # Navigation and locale https://yas.yasser.ae/en/navigation/ Yas does not have its own direction setting. Ghost passes the publication language, and the theme writes `lang` and `dir` on the page. ## Publication language In **Settings → General → Publication language**: - `ar` for Arabic, right to left. - `en` for English, left to right. Regional tags follow the root: `ar-AE` is right to left, the same as `ar`. Right to left: `ar`, `fa`, `ur`, `he`, `ps`, `ckb`, `sd`, `ug`, `yi`, `dv`. Every other language is left to right. What flips with the direction: the menu, arrows, the progress bar, lightbox swipe, and drawers. Titles and excerpts use `dir="auto"`, so an English title on an Arabic site reads left to right, and the reverse holds too. Dates and month names come from Ghost's locale. With `ar`, Ghost prints dates in Arabic-Indic digits, while post counts stay in Western digits. (Phone menu open: Home, Tags, Authors, About, Contact, then Sign in and Subscribe) *Primary navigation on a phone. Sign in and Subscribe show when membership is enabled.* (English homepage, left to right. The Arabic item in the header is a link the publication added) *The same site after the publication language is set to `en`. The "العربية" item in this shot is a navigation link the publisher added. The theme does not ship a language switcher.* ## The two menus Under **Settings → Navigation**: - **Primary** is the header, and the phone menu. A useful set: Home, Tags, Authors, About, Contact. - **Secondary** is the footer, under the heading Explore. Put there what does not need to sit in the header. Membership links (Subscribe, Sign in, Account) are added by the theme when members are enabled in Ghost. You do not have to duplicate them unless you want to. Social accounts from Ghost settings show in the footer next to the RSS link. ## Pages and templates Create an ordinary page, then pick the template in its settings: | Template | What it shows | |---|---| | `Tags` | A grid of public tags: image, description, and post count. Without an image, the name sits on a quiet panel. | | `Authors` | A card per author: photo, bio, and post count. | | `Contact` | The page text plus a form (name, email, message). Needs `contact_form_endpoint`. | | `Membership` | Pro Ghost tiers with a monthly / yearly switch. See [membership](/en/membership/). | Link these pages from the menu so readers can find them. (Tags page: cards for reading, writing, travel and technology, plus two tags without images) *The Tags template. Image and description come from the tag in Ghost.* (A tag archive: wide image, tag name, description, then post cards) *The tag's own page, which is not the Tags template. Description and image sit above the posts.* (Authors page with one card: portrait, name, bio, and post count) *The Authors template.* (An author page: portrait, bio, links, then a grid of their posts) *The author archive. Photo, bio, location, website, and accounts come from their Ghost profile.* (Contact page: title and text on one side, name, email and message fields on the other) *The Contact template after the form endpoint is set.* Without an endpoint, an admin sees a sentence in the preview asking for one. Visitors do not see that sentence, and they do not see a broken form. ## Another language in the files The theme ships `ar` and `en`. To add a language, copy `locales/en.json` to `locales/.json`, translate the values, and keep the keys. Then: ```bash npm run locales npm run zip ``` Upload the zip as in [updating](/en/update/). `npm run locales` fails if a key is missing or if a key has no match in the English file. # Membership and paywall https://yas.yasser.ae/en/membership/ Yas uses Ghost members as they are: Portal for sign-up, Stripe for paid plans, and each post's access level. The theme changes the paywall and the newsletter band. It does not replace membership. Turn members on in Ghost's membership settings. Subscribe and Sign in then show in the header, and the newsletter band shows under the homepage and under each post. ## Newsletter band The heading comes from `subscribe_title`. Left empty, the line is "Get new posts by email", with "No spam. Unsubscribe any time." under it. The email field is left to right, because it is an email address. On Yas Pro the band also links "See plans" to the membership page. The default path is `membership`, changed with the membership page slug setting. ## The paywall Ghost cuts the post where you set the free preview. Yas draws a box from the access level: | Post access | Heading | What is offered | |---|---|---| | Members | This post is for subscribers | A free subscription opens it, and new posts arrive by email. The button is "Subscribe for free", beside "Sign in". | | Paid | This post is for paid subscribers | Any paid plan opens it. The buttons are "See plans" and "Sign in". | | Selected tiers | This post is for selected plans | Names the tiers. The button is "See plans". | A signed-in member whose plan does not cover the post sees "Upgrade your plan", which opens their plans in Portal. (A members post stopped at a box: This post is for subscribers, Subscribe for free, Sign in, then share, newsletter, and more from the tag) *The members paywall. Share, the newsletter, and three posts from the same tag sit below it, and they are not gated.* ## Portal and Stripe Subscribe and Sign in open Ghost Portal (`#/portal/...`). Portal and Ghost comments take Ghost's brand accent, not Yas's button colour, because they arrive through `{{ghost_head}}`. To bring them closer, move the brand accent toward the theme teal `#2f6f66`, or change the theme token. See [customization](/en/customize/). Paid plans need Stripe connected in membership settings. Without it the free tier remains, and on Pro the monthly / yearly switch does not appear. ## Comments Turn them on in membership settings. Yas does not load them with the first paint: the block is built when the reader nears it. Without JavaScript the line "Comments need JavaScript." shows instead. ## The plans page on Pro The `Membership` template lays Ghost tiers out as cards, with a **Monthly / Yearly** switch when Stripe has a yearly price. The page title and the text are the page you write, not a string baked into the template. Create the page at the same path as the membership page slug (default `membership`), then pick the `Membership` template. If "See plans" points at a page without that template, or at a path you never created, the reader gets a 404. Screenshots, saving, and print are on [Yas Pro](/en/pro/). ## A short test 1. Open a private window and subscribe from the band. 2. Confirm the email, then open a members-only post. 3. From a free account, open a paid post and check that the box asks for an upgrade. 4. Disable JavaScript for a moment: comments apologise, and on the free edition the page links still work. # Yas Pro https://yas.yasser.ae/en/pro/ Yas Pro adds pages and layouts on top of the [free edition](/en/). It does not unlock anything hidden in the free theme, and it does not watermark the site. The site runs without a key. The key is for updates and support, as described under [licence activation](/en/license/). Pro's five settings, plus the fifteen shared ones, are listed in the [settings reference](/en/settings/). ## Homepage layouts The setting is Homepage layout. The default is **Classic**, which is the free homepage: intro, then a grid. **Opener.** The newest post marked Featured takes the place of the intro. If none is featured, the newest post is used. The grid follows, and cards carry a save mark. (Pro opener: a wide card with the featured title, image, and a read button, then a grid with save marks) *The opener layout. A button under the grid loads the next page.* (The opener in dark mode, with a save mark on each card) *The opener with dark mode.* **Magazine.** The opener stays on top. Under it, a two-column list: title, excerpt, and a small image. (Magazine layout: opener, then rows of title and thumbnail) *The magazine layout. The classic intro is gone because the opener replaced it.* ## Pagination The Pagination style setting: - **Load more:** a button fetches the next page in place. - **Infinite:** loading as the reader nears the bottom. - **Page numbers:** the same previous and next links as the free edition. In all three, the next-page link is in the HTML. If JavaScript is blocked, the reader still moves to the next page. The button does not sit there doing nothing. ## Essay template On a post, in the Ghost post settings, pick the **Essay** template. It is built for text: a large title, the contents box near the start, and images inside the body rather than a wide band above the title. (An essay post: large title, contents box, images in the body, share, newsletter, comments, and related posts) *The essay template. Contents, share, and the newsletter still follow the shared post settings.* ## Membership page Create a page at `membership` (or whatever path you set) and pick the `Membership` template. The cards are Ghost tiers. **Monthly / Yearly** shows when Stripe has a yearly price. (A support page with two plans, free and paid, and the switch on monthly) *The template arranges the tiers. The title, the intro, and the questions below come from the page content in Ghost.* (The same page with the switch on yearly and the yearly price showing) *Yearly changes the price on display. Without a paid Stripe plan, the switch is absent.* "See plans" on the paywall and in the newsletter band points at this page. ## Save for later With the setting on, a mark appears on the card and on the post. The drawer is labelled Saved. It says the list stays in this browser only, and it has a button to clear it. Nothing is sent to Ghost or to the member account. A reader who changes device, or who clears site data, starts again. That is intentional. (The saved drawer open with two posts, the homepage dimmed behind it) *The drawer. The count on the header icon follows how many posts this browser has saved.* ## Print and the description The print stylesheet hides the header, footer, progress bar, share row, related posts, newsletter, comments, and contents, and keeps the text. From the browser: print, or save as PDF. If a post has neither a custom meta description nor an excerpt, Pro writes a fallback for search engines and share cards from the opening of the text. A description you set in Ghost is the one that is used. After you pick the layouts, put the [key](/en/license/) in `license_key` so updates can reach you. # Licence activation https://yas.yasser.ae/en/license/ The Yas Pro key is a text field named `license_key` under **Design → Customize**. Paste it there and save. Do not put it in a post, in code injection, or in a public file. The key enables **updates and support**. It does not unlock gated features: [Pro's features](/en/pro/) work with the field empty. The site does not stop, content is not hidden, and readers never see a badge. ## What the preview shows The key is never written into public HTML. It is available only inside Ghost Admin's design preview (`@site._preview`). If the field is empty, a bar at the top of the preview asks you to add the key in the theme settings, and it says the site keeps working without one. A normal visitor does not see the bar. (Design preview with a notice along the top asking for the licence key, and the opener underneath) *The note is for an admin, inside the preview. It is separate from the [newer-version notice](/en/update/), which reads `versions.json`.* If a later check rejects the key, the only change is the wording of this note. The public site stays as it was. ## Where the key comes from It arrives with the Yas Pro purchase. Copy it as it is, without extra spaces, into `license_key`. There is no key for free Yas, because the free edition does not ask for one. Updating Pro is uploading the new `yas-pro.zip` and overwriting the theme, as in [updating](/en/update/). The key is not a file you upload. ## How the check works This part is for someone building or reviewing a Pro package. - `assets/js/license.js` loads only in the preview, and only when `license_key` has a value. - The check is **off in the file** (`ENABLED = false`) until you turn it on. - To turn it on: `ENABLED = true`, plus your `STORE_ID` and `PRODUCT_ID`. - The request is public: `POST https://api.lemonsqueezy.com/v1/licenses/validate` with `license_key`. No API secret belongs in the theme, and none should be put there. - The response is checked for `valid`, `meta.store_id`, and `meta.product_id`. The answer is kept for 24 hours. - A network or CORS error is met with silence. Readers never see a red error, because they never load the script. - If you want a proxy, point `ENDPOINT` at a small worker (a Cloudflare Worker is enough) that forwards the request, adds CORS headers, and rate-limits. The proxy can handle `activate` and `instance_id` if you need them. The check is an admin note. It is not a lock. # Customization https://yas.yasser.ae/en/customize/ Most of the look is set from Ghost Admin without opening a file. This page is what is left: Yas's colour, the fonts, and a small piece of injected code. ## Code injection Under **Settings → Code injection**: - **Site header** is added on every page, inside ``. - **Site footer** is before the page closes. Use it for a script with `defer` or `async`. - A post's own code injection, in the post settings, if you want code on one post only. Header injection survives an [update](/en/update/) because Ghost stores it on the site, not in a theme file. This example recolors buttons, links, and the progress bar. Put it in the site header: ```html :root { --yas-accent: #8a4b2f; --yas-accent-strong: #6e3a24; --yas-accent-soft: #f3e6dc; --yas-on-accent: #fffaf6; } html[data-theme="dark"] { --yas-accent: #e2b08a; --yas-accent-strong: #f0c9ad; --yas-accent-soft: #3a2c24; --yas-on-accent: #2a160e; } ``` Keep the dark scheme in the same block. One colour on both backgrounds will fail contrast. ## Yas colour and Ghost's colour Yas buttons, links, the progress bar, and cards read `--yas-accent` from `src/css/10-tokens.css`. The light value is `#2f6f66`. Ghost's **brand** accent colours Portal and Ghost comments, because those come from `{{ghost_head}}`, not from Yas's stylesheet. Moving the two colours closer makes Portal and the theme feel related. Changing the brand accent alone does not repaint Yas's buttons. ## Fonts Under **Design → Customize**: - `heading_typeface` for titles, menus, and buttons. Default: IBM Plex Sans Arabic. - `body_typeface` for post text. Default: Noto Naskh Arabic. The four choices are IBM Plex Sans Arabic, Noto Kufi Arabic, Noto Naskh Arabic, and Amiri. All four are SIL Open Font License, shipped as `woff2`, split into Arabic and Latin with `unicode-range`. There is no request to Google. Under **Design → Brand → Typography**, a Ghost font goes first. The Yas face remains the fallback for Arabic letters that font cannot draw. If the site does not match the demo, a brand font is usually set, and that is deliberate. On `ar`, `fa`, and `ur` sites the Arabic body face is preloaded. Otherwise the Arabic file is not requested until it is needed. To replace a family entirely, edit `src/css/00-fonts.css` and rebuild. Do not hand-edit `assets/css/screen.css`; `npm run css` overwrites it. ## Image sizes `package.json` asks Ghost for widths of 160, 400, 720, 1200, and 2000 pixels. A post's feature image is served up to 2000; cards are smaller. Upload a feature image at least 2000 pixels on the long side, and keep the subject near the centre, because the frame crops from the middle. ## Building the theme ```bash npm install npm run css # writes assets/css/screen.css from src/css npm run locales # checks translation keys npm run zip # writes dist/yas.zip npm test # the above, then gscan for Ghost 6 ``` Files: `*.hbs` templates at the root, `partials/`, `locales/`, `assets/`, and CSS sources in `src/css`. Properties are logical (`margin-inline-start`, `inset-inline-end`) so direction flips without a second stylesheet. Strings that JavaScript reads live in `partials/strings.hbs`, so the locale check sees them. Changing the scheme fires `yas:scheme`. On Pro, after more posts are fetched, `yas:cards` fires so scripts can bind the new cards. Ghost caps custom settings at twenty. The free theme uses 15. Pro uses all twenty. Do not add a Pro field without removing one. # FAQ https://yas.yasser.ae/en/faq/ ## Is the free edition a trial? No. There is no time limit, no watermark, and no post that disappears. [Yas Pro](/en/pro/) adds layouts, a membership page, saving, and print. It does not unlock something hidden in the free theme. ## Does Pro stop if I skip the key? No. `license_key` is for updates and support. The public site does not read the key. Detail is under [licence activation](/en/license/). ## Can Yas run an English-only site? Yes. **Settings → General → Publication language** = `en`. Direction becomes left to right, and the Latin files cover English. The Arabic files remain for Arabic letters in a title or a quotation. ## Can I use my own fonts? Yes, two ways. A Ghost **brand** font takes the lead on its own. Or edit `src/css/00-fonts.css` and rebuild. See [customization](/en/customize/). ## Where does Pro store saved posts? In `localStorage` in the reader's browser. No account, and no request to your server. Clearing site data clears the list. The drawer says so. ## Should I unzip before uploading? No. Upload `yas.zip` or `yas-pro.zip` as you downloaded it. Unzipping and rezipping changes the root Ghost expects. ## Which Ghost version? Ghost 6.0 or newer, self-hosted or on Ghost(Pro). `engines.ghost` in `package.json` is `>=6.0.0`. ## After upload, something looks wrong | What you see | What to do | |---|---| | The site is Arabic but the layout is left to right | **Settings → General → Publication language** must be `ar`, or another code from the list on [navigation and locale](/en/navigation/). The browser language is not enough. | | Dark mode snaps back to light | The reader's browser blocks local storage. The theme falls back to the device, or to `color_scheme`. | | The contact page says to add an endpoint | That sentence is for an admin in the preview. Set `contact_form_endpoint`. Readers do not see it. | | Comments never appear | Turn them on in membership settings. They load near the bottom of the post, and they need JavaScript. | | Fonts do not match the demo | A brand font under **Design → Brand → Typography** wins over the Yas face. Clear it or change it. | | "See plans" is a 404 | Pro Create a page at the slug in the setting (default `membership`) and pick the Membership template. | | No monthly / yearly switch | Pro Paid Stripe is not connected, or the tier has no yearly price. | | Load more opens a new page | Pro JavaScript did not run. The plain link is the fallback, and it is deliberate. | | A CSS edit vanished after an update | Overwrite replaces theme files. Ghost settings and content stay. See [updating](/en/update/). | If the behaviour you want is listed only under Pro, check [the introduction](/en/) before changing a setting. # Changelog https://yas.yasser.ae/en/changelog/ This log is the free edition in this repository. Yas Pro follows its own version numbers and arrives with `yas-pro.zip`. When a new number is published, the design preview can show a notice based on `versions.json`. See [updating](/en/update/). ## 1.0.0 — 5 December 2026 First public release. - A reading theme for Ghost 6, Arabic first. `lang` and `dir` follow the publication language. Right to left for `ar`, `fa`, `ur`, `he`, `ps`, `ckb`, `sd`, `ug`, `yi`, and `dv`. - Every visible string goes through `{{t}}`. `locales/ar.json` and `locales/en.json`, checked by `npm run locales`. - Light, dark, or system, and a reader switch that remembers the choice. - Arabic font picker: IBM Plex Sans Arabic, Noto Naskh Arabic, Noto Kufi Arabic, and Amiri, self-hosted and split with `unicode-range`. A Ghost Brand font wins when one is set. - Newsletter band, and a paywall that knows the access level: members, paid, or specific tiers. - Templates for Tags, Authors, and Contact, plus richer tag and author archives. - Lightbox with keyboard and swipe, following the reading direction. - Post contents, reading progress, related posts, and comments that load as the reader approaches. - Share: the device share sheet, WhatsApp, X, Telegram, LinkedIn, Facebook, email, and copy link. - Footer menu and social accounts from Ghost settings. - Accessibility: skip link, focus rings, reduced motion, and forced colours. - `npm test` builds the CSS, checks locales, zips the theme, and runs gscan. Pro features (layouts, the essay template, pagination styles, the membership page, save for later, print) are not in this 1.0.0 package. They are described under [Yas Pro](/en/pro/). # For AI assistants https://yas.yasser.ae/en/ai/ The guide is published for people, and a plain-text copy is published for assistants. Both files sit at the site root, next to the homepage: - [`/llms.txt`](/llms.txt) is a short index: each page's title, URL, and one line about it, in Arabic and in English. - [`/llms-full.txt`](/llms-full.txt) is the text of every page, without the layout, so an assistant can read the guide without opening each link. The full addresses on the public host are: - `https://yas.yasser.ae/llms.txt` and `https://yas.yasser.ae/llms-full.txt` - On GitHub Pages: `https://yasermaadan.github.io/yas-ghost/llms.txt` and `https://yasermaadan.github.io/yas-ghost/llms-full.txt` The paths `/llms.txt` and `/llms-full.txt` stay at the site root on both hosts. The build writes both files from `site/src/content/docs` before it renders HTML, and the links inside them use the host this build was made for (`DOCS_SITE`). ## How to use them Give the assistant the full URL of `llms-full.txt` if it can fetch a URL, or paste the file into the conversation. For a map of the guide, `llms.txt` is enough, and you can then ask for one page. The files cover the free edition in this repository and the Pro behaviour documented here: settings, install, update, language, membership, and the key. They do not replace `package.json` when the question is a single setting id. The [settings reference](/en/settings/) lists those ids as they are in the theme. Do not paste a licence key or a store secret into an assistant. `license_key` stays in the theme setting, and the check does not need a secret inside the theme. See [licence activation](/en/license/).