Reputation: 11706
Can I use includes in my Jekyll Front matter?
It would be useful for setting variables like this:
---
excerpt: Bitcoin Bulls customers pay in USD but those dollars are all converted to bitcoin.
image: {% include first-post-image-src.html }
---
That way I could reference the post.image in other places.
When I try the code above I get this error:
Error reading file /Users/smithd98/apps/bitcoinbulls.net/_posts/2014-09-08-We-Convert-All-Dollars-to-Bitcoin.md: (<unknown>): found character that cannot start any token while scanning for the next token at line 3 column 9
Upvotes: 1
Views: 86
Reputation: 52799
The answer is No. You cannot put Liquid tags in Yaml Front Matter.
Upvotes: 2