Log in Sign up

Site-wide custom metadata?

Is there currently a way to replicate Jekyll style site-wide metadata? I am trying to use Blot for my teaching materials and there are several bits of information (deadlines for papers etc) that need to appear in several different entries; being able to define them in a single (yaml/json?) data file and include them in the entry as, for example {{site.metadata.deadline1}} would be really useful. Thanks!


2 years ago, 2 replies   developers   metadata   feature   Edit question

There isn't a great way to do this right now.

If you're willing to edit your template, you can set global values in your package.json. Consider {{background_color}} as an example in the Blog template's package.json file... But you can't display these easily in your entries so it's a moot point.

However, I want to make it possible to do what you're trying to do

Answered 2 years ago · Edit answer

Understood - that's kind of what I thought. Thanks for looking at this, and I look forward to seeing it happen. Cheers!

Answered 2 years ago · Edit answer