If author/speaker is a member's name (or short name, or alias), a link to the members' page will be set.
24 lines
1.1 KiB
Text
24 lines
1.1 KiB
Text
<article>
|
|
<header><% if !@h then @h='h1' end %>
|
|
<<%= @h %>><a href="<%= @item.path() %>"><%= @item[:title]%></a>
|
|
<% if @item.attributes.has_key?(:subtitle) then %>
|
|
<br/><small><%= @item[:subtitle] %></small>
|
|
<% end %></<%= @h %>>
|
|
<%if @item[:kind]=='article' %>
|
|
<p>
|
|
<ul class="unstyled inline">
|
|
<li><i class="fas fa-calendar-alt"></i> <time itemprop="dateCreated" datetime="<%= @item[:created_at].strftime("%Y-%m-%d") %>"><%= @item[:created_at].strftime("%d.%m.%Y") %></time></li>
|
|
<% if @item[:author] %><li><i class="fas fa-pencil-alt"></i> <%= member_link(@item[:author]) %></li><% end %>
|
|
<% if @item[:refers_to] %><li><i class="fas fa-cogs"></i> <a href="<%= @items[sanitize_path(@item[:refers_to])].path() %>"><%= @items[sanitize_path(@item[:refers_to])][:title] %></a></li><% end %>
|
|
<li><i class="fas fa-bookmark"></i> <a itemprop="url" href="<%= item.path() %>">Permalink</a></li>
|
|
</ul>
|
|
<% end %>
|
|
</header>
|
|
<div class="clearfix"></div>
|
|
<section>
|
|
<% if @extended then %>
|
|
<%= article_summary(@item) %>
|
|
<% end %>
|
|
</section>
|
|
</article>
|
|
|