Allow a default machine name to appear as a placeholder while the script(s) load

This commit is contained in:
Jeff Parsons 2016-02-09 13:39:57 -08:00
commit 71fa2547be
5 changed files with 38 additions and 5 deletions

View file

@ -1 +1,10 @@
<div class="machine" id="{{ include.id }}"></div>
<div class="machine" id="{{ include.id }}">
{% assign machine_name = "PCjs: The Virtual IBM PC" %}
{% for machine in page.machines %}
{% if include.id == machine.id and machine.name%}
{% assign machine_name = machine.name %}
{% break %}
{% endif %}
{% endfor %}
[{{ machine_name }}]
</div>