Commit a22bd9a9 authored by Jan-Philipp Stauffert's avatar Jan-Philipp Stauffert
Browse files

Fix image problems

parent 79b0d6b2
......@@ -6,4 +6,8 @@ _site
Gemfile.lock
node_modules
assets/bundle.js
_sass/slick-carousel
\ No newline at end of file
_sass/slick-carousel
Makefile
assets/css/ajax-loader.gif
assets/css/fonts/slick.ttf
assets/css/fonts/slick.woff
\ No newline at end of file
......@@ -13,14 +13,14 @@
{% endif %}
{% if url %}
{% if url=="none" %}
{% 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 %}
{% imgsrcset src="include.image" dimension="dimension" sizes="(min-width: 1180px) 320px, (min-width: 980px) 260px, (min-width: 740px) 50vw, 100vw" class=include.imageclass style= %}
{% else %}
<a href="{{ url }}">
{% 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 %}
{% imgsrcset src="include.image" dimension="dimension" sizes="(min-width: 1180px) 500px, (min-width: 980px) 410px, (min-width: 740px) 50vw, 100vw" class=include.imageclass style= %}
</a>
{% endif %}
{% else %}
{% 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 %}
{% imgsrcset src="include.image" dimension="dimension" sizes="(min-width: 1180px) 320px, (min-width: 980px) 260px, (min-width: 740px) 50vw, 100vw" class=include.imageclass style= %}
{% endif %}
{% endif %}
{% if include.title %}
......
......@@ -23,6 +23,6 @@ layout: text
{{ page.date | date: "%Y" }}
{% else %}{{ page.date | date_to_string }}{% endif %}
{% unless page.blank == true %}{% include image src=page.image dimension="wide" %}{% endunless %}
{% unless page.blank == true %}{% imgsrcset src=page.image dimension="wide" %}{% endunless %}
{{ content }}
......@@ -6,5 +6,8 @@ print "Installing HCI-Theme"
system "npm install"
system "npx webpack -p --config webpack.config.js --mode=production"
FileUtils.copy_entry "node_modules/slick-carousel", "_sass/slick-carousel"
FileUtils.copy_entry "node_modules/slick-carousel/slick/fonts/slick.woff", "assets/css/fonts/slick.woff"
FileUtils.copy_entry "node_modules/slick-carousel/slick/fonts/slick.ttf", "assets/css/fonts/slick.ttf"
FileUtils.copy_entry "node_modules/slick-carousel/slick/ajax-loader.gif", "assets/css/ajax-loader.gif"
create_makefile ''
\ No newline at end of file
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