Commit 52ac2dee authored by Martin Fischbach's avatar Martin Fischbach
Browse files

recovered image include

parent bde45d1f
Pipeline #20927 passed with stage
in 14 minutes and 26 seconds
......@@ -13,14 +13,14 @@
{% endif %}
{% if url %}
{% if url=="none" %}
{% imgsrcset src="include.image" dimension="dimension" sizes="(min-width: 1180px) 320px, (min-width: 980px) 260px, (min-width: 740px) 50vw, 100vw" class=include.imageclass style= %}
{% include image src=include.image dimension=dimension sizes="(min-width: 1180px) 320px, (min-width: 980px) 260px, (min-width: 740px) 50vw, 100vw" class=include.imageclass style=include.imagestyle %}
{% else %}
<a href="{{ url }}">
{% imgsrcset src="include.image" dimension="dimension" sizes="(min-width: 1180px) 500px, (min-width: 980px) 410px, (min-width: 740px) 50vw, 100vw" class=include.imageclass style= %}
{% include image src=include.image dimension=dimension sizes="(min-width: 1180px) 500px, (min-width: 980px) 410px, (min-width: 740px) 50vw, 100vw" class=include.imageclass style=include.imagestyle %}
</a>
{% endif %}
{% else %}
{% imgsrcset src="include.image" dimension="dimension" sizes="(min-width: 1180px) 320px, (min-width: 980px) 260px, (min-width: 740px) 50vw, 100vw" class=include.imageclass style= %}
{% include image src=include.image dimension=dimension sizes="(min-width: 1180px) 320px, (min-width: 980px) 260px, (min-width: 740px) 50vw, 100vw" class=include.imageclass style=include.imagestyle %}
{% endif %}
{% endif %}
{% if include.title %}
......
......@@ -33,7 +33,7 @@
How to Find Us
</div>
<a href="https://wueaddress.uni-wuerzburg.de/search/map/3511">
{% imgsrcset src="general/map.jpg" dimension="wide" %}
{% include image src="general/map.jpg" dimension="wide" %}
</a>
</div>
</div>
......
......@@ -3,12 +3,12 @@
{% if include.sizes %}
{% assign sizes = include.sizes %}
{% else %}
{% assign sizes = "(min-width: 1180px) 1024px, (min-width: 980px) 844px, (min-width: 740px) 604, 100vw" %}
{% assign sizes = "(min-width: 1180px) 1024px, (min-width: 980px) 844px, (min-width: 740px) 604px, 100vw" %}
{% endif %}
{% assign srcset = "" | split: "|" %}
{% for width in site.widths %}
{% capture src %}{{ site.baseurl }}/bundled/images/{{ width }}/{{ include.src }} {{ width }}w{% endcapture %}
{% capture src %}{{ site.image_url }}/{{ width }}/{{ include.src }} {{ width }}w{% endcapture %}
{% assign srcset = srcset | push: src %}
{% endfor %}
{% assign srcset = srcset | join: ", " %}
......@@ -16,20 +16,32 @@
{% if include.caption %}
<figure>
<img
src = "{{ site.baseurl }}/bundled/images/{{ site.widths.first }}/{{ include.src }}"
src = "{{ site.image_url }}/{{ include.src }}"
alt = ""
sizes = "{{ sizes }}"
srcset = "{{ srcset }}"
{% if include.width %}style = "width:{{ include.width }};"{% else %}{% endif %}
/>
<figcaption>{{ include.caption }}</figcaption>
<figcaption {% if include.width %}style = "width:{{ include.width }};"{% else %}{% endif %}>{{ include.caption }}</figcaption>
</figure>
{% else %}
{% if include.ar %}
<a rel="ar" href="{{ site.baseurl }}/{{ include.ar }}"><img
src = "{{ site.image_url }}/{{ include.src }}"
alt = ""
sizes = "{{ sizes }}"
srcset = "{{ srcset }}"
{% if include.width %}style = "width:{{ include.width }};"{% else %}{% endif %}
/></a>
{% else %}
<img
src = "{{ site.baseurl }}/bundled/images/{{ site.widths.first }}/{{ include.src }}"
src = "{{ site.image_url }}/{{ include.src }}"
alt = ""
sizes = "{{ sizes }}"
srcset = "{{ srcset }}"
{% if include.width %}style = "width:{{ include.width }};"{% else %}{% endif %}
/>
{% endif %}
{% endif %}
</div>
</div>
......@@ -94,16 +94,16 @@
{% for slide in slides %}
{% if forloop.index == 1 %}
{% assign class = "" %}
{% imgsrcset src="slide" sizes="(min-width: 1180px) 1200, (min-width: 980px) 1020px, (min-width: 740px) 720px, 100vw" %}
{% include image src=slide sizes="(min-width: 1180px) 1200, (min-width: 980px) 1020px, (min-width: 740px) 720px, 100vw" %}
{% else %}
{% imgsrcset src="slide" class="hide" sizes="(min-width: 1180px) 1200, (min-width: 980px) 1020px, (min-width: 740px) 720px, 100vw" %}
{% include image src=slide class="hide" sizes="(min-width: 1180px) 1200, (min-width: 980px) 1020px, (min-width: 740px) 720px, 100vw" %}
{% endif %}
{% endfor %}
</div>
{% elsif slides.size == 1 %}
<div class="single-slide">
{% assign first_image = slides.first %}
{% imgsrcset src="first_image" dimension="panorama"%}
{% include image src="first_image" dimension="panorama"%}
</div>
{% endif %}
</div>
......
......@@ -23,6 +23,6 @@ layout: text
{{ page.date | date: "%Y" }}
{% else %}{{ page.date | date_to_string }}{% endif %}
{% unless page.blank == true %}{% imgsrcset src=page.image dimension="wide" %}{% endunless %}
{% unless page.blank == true %}{% include image src=page.image dimension="wide" %}{% endunless %}
{{ content }}
......@@ -2,6 +2,7 @@
# Build
bundle
bundle update
bundle exec war&
jekyll serve --host=0.0.0.0 --port=4200 --trace --incremental&
PIDS[0]=$!
trap "kill ${PIDS[*]}" SIGINT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment