You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
634 B
Plaintext

2 years ago
<div class="section section<%= rand(1..3) %>">
<% if file.end_with?(".md") %>
<%= markdown(File.read(file)) %>
<% elsif file.end_with?(".erb") %>
<%= ERB.new(File.read(file)).result(binding) %>
<% elsif file.end_with?(".bb") %>
<% addtags = { :rbe => { html_open: "\<%=", html_close: "%\>" }, :rb => { html_open: "\<%", html_close: "%\>" } } %>
<%= ERB.new(File.read(file).gsub("\n[rb]", '[rb]').bbcode_to_html(false, addtags) + "<br>").result(binding) %>
<% end %>
<span class="seemore">
2 years ago
<b>
<span class="seedate"><%= date %></span>
2 years ago
</b>
2 years ago
<a class="seemorelink" href="/<%= file %>">Article Page</a>
2 years ago
</span>
</div>