jazzy icon indicating copy to clipboard operation
jazzy copied to clipboard

Passing custom variables to the themes

Open dh-- opened this issue 9 years ago • 4 comments

I'd like to try creating a new theme. I've got the theme running as a starting point, and I'm finding a few places where I'd like to be able to pass some parameters, or custom strings for expansion in the template.

There are some things that I can configure already, for example, I can pass:

--head <>

To specify a value for custom_head

Is there a way that I could pass, say, a json file as a parameter that would allow me to have additional values to expand? Or, to include a dictionary in the theme folder that would be parsed at runtime.

dh-- avatar May 20 '16 19:05 dh--

there's no way to do that currently, although you could possibly use environment variables?

jpsim avatar May 20 '16 20:05 jpsim

@dh-- you could expand out the .jazzy.yml to include theme config variables?

orta avatar Jun 21 '16 12:06 orta

Hey @dh--, have you made any progress with the theme? For ReSwift I only needed some preprocessing of the markdown files. I will look at creating a React based frontend soon to alleviate some of the need for template parameters, but it won't encompass every requirement or be a quick project.

agentk avatar Jul 13 '16 12:07 agentk

Has any progress been made on this?

istx25 avatar Nov 23 '16 22:11 istx25