Hello again, everybody in this lovely forum!
I have some new questions about Ghost I need some help with.
I love the collections feature and I use it heavily. I use it to run multiple blogs on the same site. Thank you Ghost, for that!
However, is there a way to have a base url? I recently found out you can add custom routes like this:
routes: /en/: template: page data: page.home
That’s great, but I wonder if it’s possible to have that
/en/ route as a base for all my pages and posts in English? I’ve tagged the posts and pages with
#en but it only works for posts, not pages.
Today I tested and added this for my about page in Swedish and it worked:
routes: /sv/: template: page data: page.sv /sv/om/: template: page data: page.om
My swedish about page is now found at
/sv/om/. However, it feels a bit redundant/weird to add all pages with that base to my custom
/sv/ route. Why is that so? It could be a pretty big file with many lines, when a base is all that’s needed, really.
To clarify - when I create a page inside the admin, I’d like to just set the permalink to
/en/about/about-me for example, so it could look more like a sub-structured menu, paired with each collection, and then in my
routes.yaml file, add the base
Also I have another question - is it possible to remove the
/: route so I can have custom ‘landing pages’ for each language I write in instead? If it works, what do I do with the sitemaps and feeds? I’d like for my English readers to only read my English stuff and vice versa.
This without having multiple Ghost installs - very, very important!!!
I switched to Ghost to let go of the hassle of handling multiple separate blogs, and it’s working better than I thought. This solution, if it works would only be like adding cream with cherries on top .
As it is now, it’s very mixed and majority of readers are coming from the U.S, even though I write mostly in Swedish.
Thanks in advance!!!