From e17f997e754560c4418a0f4f2689ed66d37419f3 Mon Sep 17 00:00:00 2001 From: Philip Poots Date: Sun, 22 Dec 2013 23:01:13 +0000 Subject: [PATCH] Clarify how to access `site` I was unable to access the config at `context.registers.config`. Everything seems to point towards the `site` variable being accessed via `context.registers[:site]`. --- site/docs/plugins.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/docs/plugins.md b/site/docs/plugins.md index eb6392f4..9c449187 100644 --- a/site/docs/plugins.md +++ b/site/docs/plugins.md @@ -339,9 +339,9 @@ Liquid::Template.register_filter(Jekyll::AssetFilter)
ProTip™: Access the site object using Liquid

Jekyll lets you access the site object through the - context.registers feature of Liquid. For example, you can + context.registers feature of Liquid at context.registers[:site]. For example, you can access the global configuration file _config.yml using - context.registers.config. + context.registers[:site].config.