Skip to content

Commit

Permalink
[enh] also provide smaller temporary image for home cover
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycojoker committed Nov 1, 2016
1 parent 2ee9209 commit f12587b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prosopopee/themes/exposure/templates/index.html
Expand Up @@ -35,7 +35,7 @@ <h2>{{ gallery.title }}</h2>
{% else %}
{% set cover = Image(gallery.cover) %}
{{ cover.copy() }}
<div class="gallery-cover" style="background-image: url('{{ cover.generate_thumbnail("x900") }}');"></div>
<div class="gallery-cover" style="background-image: url('{{ cover.generate_thumbnail("x900") }}'), url('{{ cover.generate_thumbnail("x450") }}');"></div>
{% endif %}
</div><!-- comment tricks against space between inline-block
-->{% endfor %}
Expand Down

2 comments on commit f12587b

@eugeneandrienko
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't clearly understand changed line of code — why we loading smaller image after bigger image and why we put smaller image behind the bigger image (according to MDN) so user can't see second image?

@eugeneandrienko
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've created PR with question: #111

Please sign in to comment.