From c7dfc46229e638c640f6322b15a38aa64099019f Mon Sep 17 00:00:00 2001 From: Lorin Werthen Date: Mon, 18 Jul 2016 11:52:46 +0200 Subject: [PATCH] article list work --- content/index.erb | 10 ++++++---- content/posts/testpost.md | 4 +++- lib/builtin.rb | 3 +++ lib/capturing.rb | 1 - nanoc.yaml | 2 ++ 5 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 lib/builtin.rb delete mode 100644 lib/capturing.rb diff --git a/content/index.erb b/content/index.erb index e936691..8328e0a 100644 --- a/content/index.erb +++ b/content/index.erb @@ -30,11 +30,13 @@
- <% 9.times do |n| %> + <% articles.each do |article| %>
-
- -
+ +
+ +
+
<% end %>
diff --git a/content/posts/testpost.md b/content/posts/testpost.md index 779317f..39e1a14 100644 --- a/content/posts/testpost.md +++ b/content/posts/testpost.md @@ -1,8 +1,10 @@ --- title: Xtext Workshop banner: https://zeus.ugent.be/wp-content/uploads/2016/04/450px-Xtext_logo.png -time: 26 april om 18:00 +created_at: 01-04-2016 +time: 26-04-2016 location: Auditorium A2, Campus Sterre, Gebouw S9 +kind: article --- Op **26 april om 18:00 in Auditorium A2, Campus Sterre, Gebouw S9** organiseren we een workshop over [Xtext](https://eclipse.org/Xtext/). **Xtext** is een framework om nieuwe domein-specifieke computertalen (**DSLs**) mee te ontwerpen. Een **DSL** kan een nieuwe programmeertaal zijn, maar is meestal erg specifiek: bijvoorbeeld voor het besturen van robots, voor controle van wasmachines of voor sturing van de on-board computer in auto’s. Mensen die deze machines maken zijn vaak geen programmeurs, en zij kunnen veel vlotter werken met een DSL dan met een algemene programmeertaal. diff --git a/lib/builtin.rb b/lib/builtin.rb new file mode 100644 index 0000000..acf71c3 --- /dev/null +++ b/lib/builtin.rb @@ -0,0 +1,3 @@ +include Nanoc::Helpers::Blogging +include Nanoc::Helpers::Capturing +include Nanoc::Helpers::LinkTo diff --git a/lib/capturing.rb b/lib/capturing.rb deleted file mode 100644 index 530e2e4..0000000 --- a/lib/capturing.rb +++ /dev/null @@ -1 +0,0 @@ -include Nanoc::Helpers::Capturing diff --git a/nanoc.yaml b/nanoc.yaml index e719af3..dd051b4 100644 --- a/nanoc.yaml +++ b/nanoc.yaml @@ -1,3 +1,5 @@ +base_url: https://zeus.ugent.be + # The syntax to use for patterns in the Rules file. Can be either `"glob"` # (default) or `"legacy"`. The former will enable glob patterns, which behave # like Ruby’s File.fnmatch. The latter will enable Nanoc 3.x-style patterns.