1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-07 12:11:28 +03:00
mobile-nixos/doc/_support/news_article.erb

22 lines
478 B
Plaintext
Raw Normal View History

<article>
2020-05-06 08:28:57 +03:00
<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>