diff --git a/Rules b/Rules index 69eb3ba..71e0250 100644 --- a/Rules +++ b/Rules @@ -74,7 +74,7 @@ postprocess do { title: e[:title], url: url_for(e), - text: e.reps[:text].compiled_content, + text: excerptize(e.reps[:text].compiled_content, length: 200), tags: '' } end diff --git a/content/index.erb b/content/index.erb index 79ba798..3a667f1 100644 --- a/content/index.erb +++ b/content/index.erb @@ -3,7 +3,9 @@
-
- -
-
-
<%= render '/partials/_tile.*', article: sorted_articles[0] %>
diff --git a/content/search.erb b/content/search.erb new file mode 100644 index 0000000..379d139 --- /dev/null +++ b/content/search.erb @@ -0,0 +1,31 @@ + +<%= render '/partials/_navbar.*' %> +
+
+
+
+ +
+
+ +
+
diff --git a/layouts/partials/_navbar.erb b/layouts/partials/_navbar.erb index 5e18fc5..98a098b 100644 --- a/layouts/partials/_navbar.erb +++ b/layouts/partials/_navbar.erb @@ -8,6 +8,9 @@ Contact + + Search + Cammie diff --git a/nanoc.yaml b/nanoc.yaml index f3b1a3d..8e684cd 100644 --- a/nanoc.yaml +++ b/nanoc.yaml @@ -1,4 +1,5 @@ -base_url: https://zeus.ugent.be/beta +#base_url: https://zeus.ugent.be/beta +base_url: http://localhost:3000 # 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