Ghost theme acniti is based on a modified version of the Editorial theme, a news-oriented design built around a dynamic 'locking' sidebar (try the toggle to see it in action!) and purpose built for content-centric sites. Originally created by @ajlkn for HTML5 UP and later ported to Ghost
- Demo of the English Ghost acniti theme https://h2.acniti.com/
- Demo of the Dutch Ghost acniti theme https://h2.acniti.com/nl/
- Demo of the Spanish Ghost acniti theme https://h2.acniti.com/es/
- Demo original site: https://editorial.ghost.io
To make a ghost site work in multi language the routes.yaml file needs to be modified The file located in: content / settings / routes.yaml
paste the following or modify if other languages required
routes:
/about/:
data: page.about
template: index
/over-ons/:
data: page.over-ons
template: index-nl
/sobre-nosotros/:
data: page.sobre-nosotros
template: index-es
/pricing/:
data: page.pricing
template: index
/prijzen/:
data: page.prijzen
template: index-nl
/precios/:
data: page.precios
template: index-es
/contact/:
data: page.contact
template: custom-page-with-form
/kontakt/:
data: page.kontakt
template: custom-page-with-form-nl
/contacto/:
data: page.contacto
template: custom-page-with-form-es
collections:
/:
permalink: /{slug}/
template: index
filter: 'tag:-[hash-nl,hash-es]'
/nl/:
permalink: /nl/{slug}/
template: index-nl
filter: 'tag:hash-nl'
/es/:
permalink: /es/{slug}/
template: index-es
filter: 'tag:hash-es'
taxonomies:
tag: /tag/{slug}/
further you need to label every post and page with a language tag which is in this case #nl, #en, #es. For Dutch, English and Spanish
for more detailed instructions read the following tutorial: https://ghost.org/tutorials/multi-language-content/
Ghost uses a simple templating language called Handlebars for its themes.
We've documented our default theme pretty heavily so that it should be fairly easy to work out what's going on just by reading the code and the comments. Once you feel comfortable with how everything works, we also have full theme API documentation which explains every possible Handlebars helper and template.
The main files are:
default.hbs
- The main template fileindex.hbs
- Used for the English home pageindex-nl.hbs
- Used for the Dutch home pageindex-es.hbs
- Used for the Spanish home pagepost.hbs
- Used for individual postspage.hbs
- Used for individual pagestag.hbs
- Used for tag archivesauthor.hbs
- Not enabled in this ghost theme
Directory partials for repetitive code Directory locales for theme translations
One neat trick is that you can also create custom one-off templates just by adding the slug of a page to a template file. For example:
page-about.hbs
- Custom template for the/about/
pagetag-news.hbs
- Custom template for/tag/news/
archiveauthor-ali.hbs
- Custom template for/author/ali/
archive
Copyright (c) 2013-2023 HTML5 UP & Ghost Foundation - This theme is licensed under both the MIT and Creative Commons Attribution 3.0. Please note that the terms of the Creative Commons license require that you maintain the footer attribution to freely use this theme.