mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 19:23:01 +03:00
485ec7fad3
This is technically a *content* based style, which is why it's fine to do there, instead of semantically in the page. The background-image basically acts an a "transparent" `<img />`.
4 lines
129 B
Plaintext
4 lines
129 B
Plaintext
<% if image %>
|
|
<div class="article-header" style="background-image: url('<%= image %>');<%= header_styles %>"></div>
|
|
<% end %>
|