Multilingual Ghost CMS Blog: 2. Making 'More Posts' Multilingual
When you look at a post, you can see that even if it is an English post, the show_recent_posts section at the bottom displays all posts regardless of language. Let's fix this part. 0.0.2 · sanghunka/ghost-multilingual-theme@0e2b7a3: Multilingual show_recent_posts_footer Edit post.hbs {{# get "posts" filter = "id:-{{id}}" limit = "3" as | more_posts | }} {{#if more_posts }} <aside class=…
The article discusses a modification to the Ghost CMS multilingual theme to ensure that only posts with a specific language tag are displayed in the "show_recent_posts" section. The original code was edited to include conditional statements that check for the presence of specific language tags (#en and #ko) before retrieving and displaying the more recent posts. This change aims to provide a more targeted and relevant list of posts for users, based on their preferred language.
Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.