b1899aaa2f
- some pages do not highlight when on them (inside navbar **to the left**) - Team and Keynote Speaker names in bold - Spring School in top bar to the **right** and highlight - our colloeagues -> 'Domain Knowledge Team' - All pages should be extended to right (same width)
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
{% if include.id %}
|
|
{% assign gallery = page[include.id] %}
|
|
{% elsif include.other_collection %}
|
|
{% assign gallery = include.other_collection %}
|
|
{% else %}
|
|
{% assign gallery = page.gallery %}
|
|
{% endif %}
|
|
|
|
{% if include.layout %}
|
|
{% assign gallery_layout = include.layout %}
|
|
{% else %}
|
|
{% if gallery.size == 2 %}
|
|
{% assign gallery_layout = 'half' %}
|
|
{% elsif gallery.size >= 3 %}
|
|
{% assign gallery_layout = 'third' %}
|
|
{% else %}
|
|
{% assign gallery_layout = '' %}
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
|
|
|
|
<figure class="{{ gallery_layout }} {{ include.class }}">
|
|
{% for img in gallery %}
|
|
{% if img.url %}
|
|
<a style="text-decoration: none; font-weight: bold" href="{{ img.url | relative_url }}" {% if img.title %}title="{{ img.title }}"{% endif %}>
|
|
|
|
<img src="{{ img.image_path | relative_url }}"
|
|
alt="{% if img.alt %}{{ img.alt }}{% endif %}">
|
|
<p style="color: black;">{{img.title}}</p>
|
|
</a>
|
|
{% else %}
|
|
<img src="{{ img.image_path | relative_url }}"
|
|
alt="{% if img.alt %}{{ img.alt }}{% endif %}">
|
|
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% if include.caption %}
|
|
<figcaption>{{ include.caption | markdownify | remove: "<p>" | remove: "</p>" }}</figcaption>
|
|
{% endif %}
|
|
</figure> |