feat(types,emitter): list sections, page titles, per-route locale - #145
Merged
Conversation
1) QueryPage.title + RouteModel.title — arşiv/sayfalama/statik sayfaların <title>u boş üretilmiyor. 2) QueryPage.sections — liste blok dizisi: her bölümün şablonu, sarmalayıcısı (<!--@@Items@@-->) ve öğe sayısı. Büyük kart + ızgara sınıfı (kategori 56) çözülüyor; sarmalayıcı da bölümde olduğu için ızgara kabı chromeda sabit kalmıyor ve sayfa 2de yanlış yazı görünmüyor. item_template tek-bölüm kısayolu; bölümlü liste artık yanlış fallback uyarısı almıyor. 3) RouteModel.locale + QueryBinding.locale + EmitPost.locale; layout lang artık prop, her route kendi dilini geçiyor — ikinci dil collection workaroundu olmadan route+aile+sorgu olarak verilebiliyor.
✅ Deploy Preview for contentrain-ai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ne
Üç madde, üçü de emitter sözleşmesi.
1. Sorgu sayfası başlığı.
QueryPage.title+RouteModel.title(statik/liste route'ları için). Arşiv/sayfalama<title>'ı artık boş üretilmiyor;marks.term_name = site adıgeçici çözümü kalkabilir. Sıra: sayfanın kendi başlığı → route başlığı →term_name/parametre.2. Liste için ikinci öğe şablonu — bölüm modeli.
first_item_templateyerineQueryPage.sections: her bölümün kendi şablonu, kendi sarmalayıcısı (<!--@@items@@-->) ve öğe sayısı var.Sarmalayıcıyı de taşıması gerekiyordu: ölçülen sınıfta büyük kart ve ızgara ayrı kaplarda; yalnız "ilk N için farklı şablon" olsaydı ızgara sarmalayıcısı chrome'da sabit kalırdı.
item_templatetek-bölüm kısayolu olarak duruyor; bölümlü liste artık yanlış "item template missing" uyarısı almıyor. Boş kalan bölüm sarmalayıcısıyla birlikte atlanıyor (sayfa 2'de hero yoksa kap da yok).3. Çok dilli.
RouteModel.locale+QueryBinding.locale+EmitPost.locale; layoutlang'ı artık prop (varsayılan = proje dili) ve her route kendi dilini geçiyor. Yani ikinci dil = kendi route'u + ailesi + sorgusu;collectionroute'u ile idare etme zorunluluğu bitti.EmitPost.localekarışık koleksiyonda satır bazında ezebiliyor.Test
lint 0/0 · tsc · 8/8 paket build+test · 49 emitter + 11 runtime testi. Yeni: bölüm render'ı (hero+ızgara, gerçek üretilen runtime ile), boş bölüm atlama, sayfa/route başlığı, dil başına route, bölümlü listede uyarı yokluğu.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NjgQYCFqwZjJt97yioyjnS