mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-19 02:39:54 +00:00
50 lines
1.7 KiB
HTML
50 lines
1.7 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||
|
<title><%= @item[:title] %></title>
|
||
|
<link rel="stylesheet" href="/css/reset.css" type="text/css" media="screen,projector" />
|
||
|
<link rel="stylesheet" href="/css/style.css" type="text/css" media="screen,projector" />
|
||
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
|
||
|
<script src="/js/script.js" type="text/javascript"></script>
|
||
|
<script type="text/javascript">
|
||
|
var articles;
|
||
|
jQuery(function() {
|
||
|
// load JSON
|
||
|
// get( url, [data], [callback], [type] )
|
||
|
jQuery.get('/articles/index.json', {}, function(data) {
|
||
|
articles = data;
|
||
|
console.log(data);
|
||
|
}, 'json');
|
||
|
});
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<%= render 'header' %>
|
||
|
<div id="main">
|
||
|
<h1><%= @item[:title] %></h1>
|
||
|
<ul class="articles">
|
||
|
<% sorted_articles[0..9].each do |article| %>
|
||
|
<% post_date = WezM::Helpers.post_date(article) %>
|
||
|
<li>
|
||
|
<abbr class="calender date" title="<%= post_date.iso8601 %>">
|
||
|
<span class="day"><%= post_date.day %></span>
|
||
|
<span class="month"><%= post_date.strftime('%b') %></span>
|
||
|
<span class="year"><%= post_date.year %></span>
|
||
|
</abbr>
|
||
|
<a href="<%= article.reps.first.path %>"><%= article[:title] %></a>
|
||
|
</li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
|
||
|
<div class="pagination">
|
||
|
<a href="">« Newer</a>
|
||
|
|
|
||
|
<a href="">Older »</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<%= render 'footer' %>
|
||
|
</body>
|
||
|
</html>
|