From cf33a9c427ecd736feeec5f129d15a205e179b93 Mon Sep 17 00:00:00 2001 From: Anthony Gaudino Date: Tue, 23 Aug 2016 21:06:11 -0300 Subject: [PATCH] The hook ":site, :post_render" also provides a "payload", but the plugins documentation section of the official Jekyll site doesnt inform this. --- site/_docs/plugins.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/site/_docs/plugins.md b/site/_docs/plugins.md index b6a12932..36757520 100644 --- a/site/_docs/plugins.md +++ b/site/_docs/plugins.md @@ -498,11 +498,13 @@ end {% endhighlight %} Jekyll provides hooks for :site, :pages, -:posts, and :documents. In all cases, Jekyll calls your -hooks with the container object as the first callback parameter. But in the -case of :pre_render, your hook will also receive a payload hash as -a second parameter which allows you full control over the variables that are -available while rendering. +:posts, and :documents. In all cases, Jekyll calls +your hooks with the container object as the first callback parameter. But in the +case of :pre_render and :site, :post_render, your hook +will also receive a payload hash as a second parameter which allows you full +control over the variables that are available while rendering in the former case +and make final changes just before writing your website to disk on the latter +case. The complete list of available hooks is below: