Sha256: 156905a716b9d6a75383c125687b27497824424bd7cbe7d7cfdfe19de97dc5ec

Contents?: true

Size: 294 Bytes

Versions: 23

Compression:

Stored size: 294 Bytes

Contents

# frozen_string_literal: true

Jekyll::Hooks.register :site, :pre_render do |site, _payload|
  site.pages.each do |page|
    page.data['rel_dir'] = File.dirname(page.path)
    page.data['basename'] = File.basename(page.path)
    page.data['filename'] = File.basename(page.path, '.*')
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ledger_sync-3.0.0 documentation/site/_plugins/hooks.rb
ledger_sync-2.6.0 documentation/site/_plugins/hooks.rb
ledger_sync-2.5.0 documentation/site/_plugins/hooks.rb
ledger_sync-2.4.4 documentation/site/_plugins/hooks.rb
ledger_sync-2.3.1 documentation/site/_plugins/hooks.rb
ledger_sync-2.2.3 documentation/site/_plugins/hooks.rb
ledger_sync-2.2.1 documentation/site/_plugins/hooks.rb
ledger_sync-2.2.0 documentation/site/_plugins/hooks.rb
ledger_sync-2.0.2 documentation/site/_plugins/hooks.rb
ledger_sync-2.0.1 documentation/site/_plugins/hooks.rb
ledger_sync-2.0.0 documentation/site/_plugins/hooks.rb
ledger_sync-2.0.0.pre.1 documentation/site/_plugins/hooks.rb
ledger_sync-1.8.1 documentation/site/_plugins/hooks.rb
ledger_sync-1.8.0 documentation/site/_plugins/hooks.rb
ledger_sync-1.7.0 documentation/site/_plugins/hooks.rb
ledger_sync-1.6.0 documentation/site/_plugins/hooks.rb
ledger_sync-1.5.2 documentation/site/_plugins/hooks.rb
ledger_sync-1.5.1 documentation/site/_plugins/hooks.rb
ledger_sync-1.5.0 documentation/site/_plugins/hooks.rb
ledger_sync-1.4.4 documentation/site/_plugins/hooks.rb