Styling of planet page

This commit is contained in:
Stefan Schlott 2013-08-27 09:30:21 +02:00
parent f6187e6ebe
commit 0245c85a7d
2 changed files with 20 additions and 6 deletions

View file

@ -1,9 +1,15 @@
<p>
Unsere Mitglieder bloggen! Einiges davon sind „chaosrelevante“ Inhalte, ein
Blick auf die einzelnen Seiten lohnt sicher. Hier die letzten Postings, die
verfaßt wurden (die Links führen direkt auf die jeweiligen Seiten):
<p>
<% @item[:blogposts].each do |post| %> <% @item[:blogposts].each do |post| %>
<h2><a href="<%= post[:url] %>"><%= post[:title] %></a></h2> <div class="planetpost" itemscope itemtype="http://schema.org/BlogPosting">
<ul class="unstyled inline"> <h2 itemprop="name"><a itemprop="url" href="<%= post[:url] %>"><%= post[:title] %></a></h2>
<ul class="unstyled inline">
<li><i class="icon-calendar"></i> <time itemprop="dateCreated" datetime="<%= post[:date].strftime("%Y-%m-%d") %>"><%= post[:date].strftime("%d.%m.%Y") %></time></li> <li><i class="icon-calendar"></i> <time itemprop="dateCreated" datetime="<%= post[:date].strftime("%Y-%m-%d") %>"><%= post[:date].strftime("%d.%m.%Y") %></time></li>
<li><i class="icon-pencil"></i> <%= post[:user] %></li> <li><i class="icon-pencil"></i> <%= post[:user] %></li>
</ul> </ul>
<p> </div>
<% end %> <% end %>

View file

@ -131,3 +131,11 @@ div.commaseparated {
} }
} }
div.planetpost {
h2 {
font-size: $baseFontSize * 1.25;
line-height: $baseLineHeight;
margin-bottom: 5px;
}
}