Created
October 19, 2017 19:34
-
-
Save sskylar/aa692335ee8ce68282120ecf69d41cb9 to your computer and use it in GitHub Desktop.
Add helper/description text next to a custom Jekyll field in Siteleaf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
defaults: | |
- scope: | |
path: '' | |
type: posts # change scope type here | |
values: | |
header_image: "Should be 800x200 (JPG)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
Optionally, you can validate presence of an image | |
{% endcomment %} | |
{% if page.header_image contains ".jpg" %} | |
<img src="{{ page.header_image }}"> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This field will show up in Siteleaf like so: