1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 13:10:29 +03:00
mobile-nixos/doc/_support/news_article.erb
2020-05-06 01:33:01 -04:00

22 lines
478 B
Plaintext

<article>
<header class="<%= [
if image
"with-image"
else
"without-image"
end
].compact.join(" ") %>" style="<%= [
if image then "background-image: url('#{image}')" end,
header_styles,
].compact.join(";") %>">
<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>