From 2756503e7b32f9fa819e2652fa4932a6cc700401 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Mon, 4 Jan 2016 12:18:02 -0800 Subject: [PATCH] features/hooks: use hash syntax to access page --- features/hooks.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/hooks.feature b/features/hooks.feature index b561c00c..5252d562 100644 --- a/features/hooks.feature +++ b/features/hooks.feature @@ -89,7 +89,7 @@ Feature: Hooks And I have a "_plugins/ext.rb" file with content: """ Jekyll::Hooks.register :pages, :pre_render do |page, payload| - payload.page['myparam'] = 'special' if page.name == 'page1.html' + payload['page']['myparam'] = 'special' if page.name == 'page1.html' end """ And I have a "page1.html" page that contains "{{ page.myparam }}"