1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-27 21:44:39 +04:00

collection hooks fixes

This commit is contained in:
codecalm
2020-02-16 21:51:07 +01:00
parent 1f88b128a6
commit bbb2b27c66
2 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -30,8 +30,6 @@
{% include layout/og.html show=layout.og-component %}
{% include layout/css.html %}
{% include layout/js.html %}
</head>
{% assign dark-theme = page.dark-theme | default: site.dark-theme %}
@@ -41,6 +39,7 @@
{% include layout/modals-capture.html %}
{% include layout/js.html %}
{% include layout/js-capture.html %}
{% if site.debug and jekyll.environment == 'development' %}
+3 -3
View File
@@ -54,19 +54,19 @@ module Jekyll
end
end
Jekyll::Hooks.register :pages, :post_init do |page|
Jekyll::Hooks.register [:pages, :docs], :post_init do |page|
$captured_global = {}
$captured_once = {}
$captured_libs = []
end
Jekyll::Hooks.register :pages, :post_render do |page|
Jekyll::Hooks.register [:pages, :docs], :post_render do |page|
$captured_global = {}
$captured_once = {}
$captured_libs = []
end
Jekyll::Hooks.register :pages, :pre_render do |page, jekyll|
Jekyll::Hooks.register [:pages, :docs], :pre_render do |page, jekyll|
jekyll.site['captured_global'] = $captured_global
jekyll.site['captured_once'] = $captured_once
jekyll.site['captured_libs'] = $captured_libs