Sha256: 71e480db0ef5404f50c37385cf73ed7dac835df88559482870858bccc88ea24c

Contents?: true

Size: 203 Bytes

Versions: 13

Compression:

Stored size: 203 Bytes

Contents

# frozen_string_literal: true

Jekyll::Hooks.register :pages, :post_init do |page|
  next unless page.data.dig('locales', page.site.locale)

  page.data.merge! page.data['locales'][page.site.locale]
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
jekyll-locales-0.2.1 lib/jekyll/locales/hooks/page_post_init.rb
jekyll-locales-0.2.0 lib/jekyll/locales/hooks/page_post_init.rb
jekyll-locales-0.1.14 lib/jekyll/locales/hooks/page_post_init.rb
jekyll-locales-0.1.13 lib/jekyll/locales/hooks/page_post_init.rb
jekyll-locales-0.1.12 lib/jekyll/locales/hooks/page_post_init.rb
jekyll-locales-0.1.11 lib/jekyll/locales/hooks/page_post_init.rb
jekyll-locales-0.1.10 lib/jekyll/locales/hooks/page_post_init.rb
jekyll-locales-0.1.9 lib/jekyll/locales/hooks/page_post_init.rb
jekyll-locales-0.1.7 lib/jekyll/locales/hooks/page_post_init.rb
jekyll-locales-0.1.6 lib/jekyll/locales/hooks/page_post_init.rb
jekyll-locales-0.1.5 lib/jekyll/locales/hooks/page_post_init.rb
jekyll-locales-0.1.4 lib/jekyll/locales/hooks/page_post_init.rb
jekyll-locales-0.1.3 lib/jekyll/locales/hooks/page_post_init.rb