all repos — h3rald @ 8.1.0

The sources of https://h3rald.com

layouts/article_intro.erb

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
-----
filter: erb
-----
<%
	author = @item[:author] || "Fabio Cevasco"
	intro = @extended ? @item[:intro].to_s+"\n\n"+@item[:extended_intro].to_s : @item[:intro]
%><article id="a_<%= @item[:permalink] %>">
	<header>
		<h1><a href="<%= @item.identifier %>"><%= @item[:title]%></a></h1>
		<% unless @item[:subtitle].blank? then %>
			<h2><%= @item[:subtitle] %></h2>
		<% end %>
		<p class="pubdate"><time datetime="<%= @item[:date].strftime("%Y-%d-%d") %>" pubdate="pubdate"><%= @item[:date].strftime("%A, %B %d %Y") %></time></p>
		<p class="author">By <em><%= author %></em></p>
	</header>
	<section class="<%= @classes %>">
		<%= RedCloth.new(intro.to_s).to_html %>
		<p><a class="more" href="<%= @item.identifier%>">&raquo;&nbsp;<strong>Read More</strong></a></p>
	</section>
</article>