Hello,
I’m looking for ways to add my business address to footer. Is there any better way than just hardcode it to template?
Is it possible to add additional metadata under @site for example so then in template I can just add my address by referencing data under @site object like @site.businessAddress ?
I’m hosting my blog in DigitalPress.
I’m totally new with ghost but have learned some bits about handlebars etc. stuff. I’m more familiar with web development in general using techs like ReactJs and html/css stuff.
That’s generally how things are done. What’s not working for you / why are you looking to do it differently?
Is it possible to add additional metadata under @site for example so then in template I can just add my address by referencing data under @site object like @site.businessAddress ?
No, the @site object is fixed to what’s provided by core. The closest alternative would be adding a custom property to your theme which could then be accessed via @custom.
Does your business address change frequently enough for a theme modification to be troublesome? Or is this a theme you want to make available to others and you expect them to change the address?
Does your business address change frequently enough for a theme modification to be troublesome? Or is this a theme you want to make available to others and you expect them to change the address?
Well, this theme will not be for public but I will use it in couple other sites too which need different address. I just usually like do things as configurable as possible.
I give that custom property try, sounds working solution.