all repos — h3rald @ e03ca4dcf9c10f799d88512c6cf8b80c0aea01a0

The sources of https://h3rald.com

content/archives.textile

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
----- 
permalink: archives
filters_pre: 
- erb
title: Archives
type: page
-----
<%
	tags = sorted_site_tags
%>
	<div id="search_form"></div>
	<div id="search_results"></div>
<p style="margin: auto; text-align: center">
<img src="/images/theme/heraldry/phoenix.png" />
</p>
	<h3>Articles by Topic</h3>
	<table id="taglist">
	<% c = 0
		 tags.each do |t|
			 c = c+1 %>
			<%= "<tr>" if c%5 == 1 %>
			<td><%= tag_link_with_count(t[0], t[1]) %></td>
			<%= "</tr>" if c%5 == 0 %>
		<% end %></tr>
	</table>
	<h3>Articles by Month</h3>
	<table id="timeline">
	<% c = 0
		 articles_by_month.each do |m|
			 c = c+1 %>
			<%= "<tr>" if c%5 == 1 %>
			<td><%= month_link_with_count(m[0], m[1].length) %></td>
			<%= "</tr>" if c%5 == 0 %>
		<% end %></tr>
	</table>