diff --git a/Rules b/Rules index 8057967..67d11f0 100644 --- a/Rules +++ b/Rules @@ -15,12 +15,15 @@ compile '/personal/articles/json/' do end compile '/articles/' do + filter :erb layout 'articles' end compile '/technical/articles/' do + filter :erb layout 'articles' end compile '/personal/articles/' do + filter :erb layout 'articles' end diff --git a/content/articles.html b/content/articles.html new file mode 100644 index 0000000..db14e78 --- /dev/null +++ b/content/articles.html @@ -0,0 +1,11 @@ + + + diff --git a/content/articles.yaml b/content/articles.yaml index 349c365..4cf4473 100644 --- a/content/articles.yaml +++ b/content/articles.yaml @@ -1,3 +1,2 @@ --- -title: Articles -body_class: articles \ No newline at end of file +title: All Articles diff --git a/content/personal/articles.html b/content/personal/articles.html index f214efe..0daa02a 100644 --- a/content/personal/articles.html +++ b/content/personal/articles.html @@ -1,3 +1,3 @@ -<% sorted_articles[0..9].each do |article| %> +<% personal_articles[0..9].each do |article| %> <%= render 'article', :article => article %> <% end %> diff --git a/content/technical/articles.html b/content/technical/articles.html index f214efe..f8b3129 100644 --- a/content/technical/articles.html +++ b/content/technical/articles.html @@ -1,3 +1,3 @@ -<% sorted_articles[0..9].each do |article| %> +<% technical_articles[0..9].each do |article| %> <%= render 'article', :article => article %> <% end %> diff --git a/layouts/articles.html b/layouts/articles.html index 6b5991c..82e6a85 100644 --- a/layouts/articles.html +++ b/layouts/articles.html @@ -8,11 +8,18 @@ <%= render 'header' %>
-

<%= @item[:title] %>

+

Archives

+ + + - +