Skip to content

Navigation and locale

Yas does not have its own direction setting. Ghost passes the publication language, and the theme writes lang and dir on the page.

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.

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.

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.

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.

The theme ships ar and en. To add a language, copy locales/en.json to locales/<code>.json, translate the values, and keep the keys. Then:

Terminal
npm run locales
npm run zip

Upload the zip as in updating. npm run locales fails if a key is missing or if a key has no match in the English file.

Yas is free under the MIT licence. Yas Pro is a paid edition. By Yasser Maadan.