1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-16 20:21:32 +03:00
mobile-nixos/doc/_support/news_article.erb
Samuel Dionne-Riel 485ec7fad3 doc: Makes articles pipeline more aware of image alignment
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 />`.
2019-12-02 20:51:46 -05:00

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>