Skip to content

Commit 07efa2a

Browse files
committed
get the blog index working
1 parent cb8f3b4 commit 07efa2a

File tree

6 files changed

+19
-2
lines changed

6 files changed

+19
-2
lines changed

config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,5 @@ data_sources:
4343
-
4444
type: static
4545
items_root: /static
46+
47+
base_url: http://developer.github.com

content/changes/2012-9-5-watcher-api.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2+
kind: article
23
title: Upcoming Changes to Watcher and Star APIs
34
created_at: 2012-9-5
45
author: technoweenie
56
---
67

7-
<%= render '_meta', :item => @item, :level => :h1 %>
8+
<%= render '_meta', :item => @item %>
89

910
We recently [changed the Watcher behavior][change-watching] on GitHub. What
1011
used to be known as "Watching", is now "Starring". Starring is basically

content/changes/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: GitHub API Changes
3+
---
4+
5+
<% sorted_articles.each do |article| %>
6+
<div class="article" id="article<%= article.path %>">
7+
<%= render '_title', :item => article, :level => :h2 %>
8+
<%= article.compiled_content %>
9+
</div>
10+
<% end %>

layouts/_meta.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<<%= @level %>><%= @item[:title] %></<%= @level %>>
21
<div class="meta">
32
<div class="who_when">
43
<%= gravatar_for(@item[:author]) %>

layouts/_title.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<<%= @level %>>
2+
<a href="<%= url_for @item %>"><%= @item[:title] %></a>
3+
</<%= @level %>>
4+

layouts/default.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
<div id="wrapper">
3333
<div class="content">
34+
<%= render '_title', :item => @item, :level => :h1 if @item[:kind] == 'article' %>
3435
<%= yield %>
3536
</div>
3637

0 commit comments

Comments
 (0)