Get the content API key in handlebars?

Is there a way to get the content API key in handlebars? I logged @site, but I don’t see it there. I’ve sometimes resorted to javascript to read the value getting set for comments & sodo-search, but maybe there’s a more direct way that’s accessible to the theme?

(Yes, I could use a custom field and require the user to copy it over, but that seems sub-optimal, and I only have 15 custom fields…)

I think that’s the only field needed to recreate {ghost_head} that isn’t accessible.

Anyone got an answer to this one? I suspect it’s no?

@Kevin Do you know the answer to this one?

1 Like

I did a thing.

Introducing the Content API Key helper! {{content_api_key}}

Live with the 5.96 release. (Later today for self-hosters, Monday/Tuesday for Ghost Pro.)

3 Likes