Only include elements that are specified

main
Matthew Watkins 7 years ago
parent 89d407fb98
commit 95fab36237

@ -15,20 +15,28 @@
<h2>{{ post.title }}</h2>
<hr class="star-primary">
<img src="img/portfolio/{{ post.img }}" class="img-responsive img-centered" alt="{{ post.alt }}">
<p>{{ post.description }}</p>
{% if post.description %}
<p>{{ post.description }}</p>
{% endif %}
<ul class="list-inline item-details">
<li>Client:
<strong><a href="http://startbootstrap.com">{{ post.client }}</a>
</strong>
</li>
<li>Date:
<strong><a href="http://startbootstrap.com">{{ post.project-date }}</a>
</strong>
</li>
<li>Service:
<strong><a href="http://startbootstrap.com">{{ post.category }}</a>
</strong>
</li>
{% if post.client %}
<li>Client:
<strong><a href="http://startbootstrap.com">{{ post.client }}</a>
</strong>
</li>
{% endif %}
{% if post.project-date %}
<li>Date:
<strong><a href="http://startbootstrap.com">{{ post.project-date }}</a>
</strong>
</li>
{% endif %}
{% if post.category %}
<li>Service:
<strong><a href="http://startbootstrap.com">{{ post.category }}</a>
</strong>
</li>
{% endif %}
</ul>
<button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button>
</div>

Loading…
Cancel
Save