Stream: shorthand
Topic: Template syntax ?
Janaka Peiris (Jun 23 2021 at 10:13):
1) I've seen this syntax in some IG page content XML files ( <IG root>/input/includes/*.xml). Is there any documentation on what kind of syntax (I assume its Jekyll) and objects are supported?
{% for sd_hash in site.data.structuredefinitions -%}
{%- assign sd = sd_hash[1] -%}
{%- if sd.kind == "complex-type" and sd.type != "Extension" -%}
<li>
<a href="{{sd.path}}">{{sd.name}}</a>{{sd.title}}
</li>
{%- endif -%}
{%- endfor -%}
2) Also noted that some pages are automatically generated from the IG template (eg: artifacts.html). Where can I find these files, and how can I override it ?
Chris Moesel (Jun 23 2021 at 13:41):
Since this is related more to the IG publishing and templating framework, it might be better to ask over in #IG creation -- but I know @Jose Costa Teixeira is hanging out over here in #shorthand too, so he can probably help you.
Jose Costa Teixeira (Jun 23 2021 at 18:29):
The artifacts page is generated by some xslt
Jose Costa Teixeira (Jun 23 2021 at 18:30):
As for the Jekyll variables, it is the Jekyll syntax for using data files
Jose Costa Teixeira (Jun 23 2021 at 18:30):
She you build the IG you have a temp folder, and in there you have a data folder
Jose Costa Teixeira (Jun 23 2021 at 18:30):
Those jsons are your data files
Janaka Peiris (Jun 25 2021 at 05:55):
Thanks @Chris Moesel . I didnt know of that #IG creation stream. Will pos the quesiton there.
Last updated: Apr 12 2022 at 19:14 UTC