aboutsummaryrefslogtreecommitdiff
path: root/_plugins/add-anchor-to-header-from-header-id.rb
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-08-15 16:14:43 -0300
committerEuAndreh <eu@euandre.org>2020-08-15 16:14:43 -0300
commit7ac4f5c3e205dbfa9c48ab1996d17fa2a69bf1c5 (patch)
treeadc4ac131e083f19209d3ff06b58d32ea7bf5f1a /_plugins/add-anchor-to-header-from-header-id.rb
parentTIL on git: add missing link (diff)
downloadeuandre.org-7ac4f5c3e205dbfa9c48ab1996d17fa2a69bf1c5.tar.gz
euandre.org-7ac4f5c3e205dbfa9c48ab1996d17fa2a69bf1c5.tar.xz
Run Jekyll hooks on :pages too
Diffstat (limited to '')
-rw-r--r--_plugins/add-anchor-to-header-from-header-id.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/_plugins/add-anchor-to-header-from-header-id.rb b/_plugins/add-anchor-to-header-from-header-id.rb
index 8c100b0..25829a2 100644
--- a/_plugins/add-anchor-to-header-from-header-id.rb
+++ b/_plugins/add-anchor-to-header-from-header-id.rb
@@ -1,4 +1,4 @@
-Jekyll::Hooks.register :documents, :post_render do |doc|
+Jekyll::Hooks.register [:documents, :pages], :post_render do |doc|
if doc.output_ext == ".html"
doc.output =
doc.output.gsub(