mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-19 14:02: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 />`.
13 lines
318 B
Plaintext
13 lines
318 B
Plaintext
<article>
|
|
<header style="background-image: url('<%= image %>');<%= header_styles %>">
|
|
<div class="details">
|
|
<h3><a href="<%= url %>"><%= title %></a></h3>
|
|
<% if date %><div class="date"><%= date %></div><% end %>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="contents">
|
|
<%= contents %>
|
|
</div>
|
|
</article>
|