layouts/page_meta.erb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
----- filter: erb ----- <% author = @item[:author] || "Fabio Cevasco" pdf = %{<a href="/articles/#{@item[:permalink]}.pdf"><i class="fa fa-download"> </i>Download as PDF</a>} if @item[:pdf] %><header class="row"> <hgroup class="col-md-9"> <h1><%= @item[:title] %></h1> <% if !@item[:subtitle].blank? then %> <h2><%= @item[:subtitle] %></h2> <% end %> </hgroup> <% if @item[:type] == 'article' then %> <ul class="list-unstyled article-info col-md-3"> <li> <i class="h3-quill-ink"></i> <time datetime="<%= @item[:date].to_iso8601_time %>"><%= @item[:date].strftime("%A, %B %d %Y") %></time> <li><i class="h3-tags"></i> <%= tags_for(@item) %></li> </li> <%= "<li>#{pdf}</li>" if pdf %> </p> <% end %> </header> |