Sha256: fea2ce3582d63833f7a2eb1fc12a71fcfc75d16e4731792b750702cc9a79a5eb

Contents?: true

Size: 702 Bytes

Versions: 6

Compression:

Stored size: 702 Bytes

Contents

---
title: News
in_menu: false
sort_info: 30
--- pipeline:tags,blocks,fragments

<h1>News</h1>

<a href="{relocatable: news.atom}">Atom-Feed</a>

<webgen:block name="newsdata" node="current" />

--- name:newsdata pipeline:erb
<%
context.content_node.tree.node_access[:alcn].select do |na,no|
  na =~ /\/news\/.+/ && no.is_file?
end.collect {|na,no| no}.sort.reverse.each do |node|
  context.options['contentprocessor.kramdown.options'] = {:auto_id_prefix => node.lcn.tr('.', '-')}
%>

<div class='news-item'>
<div class="news-date float-right">
  Published on <%= node['created_at'].strftime("%A, %d %B %Y") %>
</div>
<%= context.render_block(:name => 'content', :chain => [node]) %>
</div>

<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kramdown-0.14.1 doc/news.page
kramdown-0.14.0 doc/news.page
kramdown-0.13.8 doc/news.page
kramdown-0.13.7 doc/news.page
kramdown-0.13.6 doc/news.page
kramdown-0.13.5 doc/news.page