diff --git a/Rules b/Rules index 160e19b..9dbb431 100644 --- a/Rules +++ b/Rules @@ -106,9 +106,10 @@ end # POSTS # compile '/posts/**/*' do + layout '/blogpost.md' filter :kramdown - layout '/blogpost.*' + layout '/blogpost.erb' layout '/generic.*' layout '/default.*' end diff --git a/content/posts/16-17/how-do-i-browser.md b/content/posts/16-17/how-do-i-browser.md index 5b0042a..ab8cecc 100644 --- a/content/posts/16-17/how-do-i-browser.md +++ b/content/posts/16-17/how-do-i-browser.md @@ -3,11 +3,9 @@ title: How do I browser? description: Being a massive hipster, I tried out every obscure browser I could find. These are my opinions, for what it's worth. author: Lorin Werthen created_at: 25-10-2016 +toc: true --- -* x -{:toc .is-pulled-right} - # Intro It's 2016. We have hoverboards, selfie sticks, way too many JavaScript package managers and an obsession for ironic humor. In these dark days, we should search for those things that truly make us happy, like finding that near perfect web browser. diff --git a/layouts/blogpost.md b/layouts/blogpost.md new file mode 100644 index 0000000..14932a4 --- /dev/null +++ b/layouts/blogpost.md @@ -0,0 +1,6 @@ +<% if item[:toc] %> +* x +{:toc .is-pulled-right} +<% end %> + +<%= yield %>