Class: Jekyll::ActivityPub::Document

Inherits:
Image
  • Object
show all
Defined in:
lib/jekyll/activity_pub/document.rb

Overview

Represents a Document

Instance Attribute Summary

Attributes inherited from Image

#data

Instance Method Summary collapse

Methods included from Helper

#content, #generate_excerpt?, #hook_owner, #locale, #place_in_layout?, #pruned_data, #render_with_liquid?, #to_json, #to_liquid, #trigger_hooks

Constructor Details

#initialize(site, path, description = nil) ⇒ Document

Initialize with default data

Parameters:

  • :site (Jekyll::Site)
  • :path (Path)
  • :description (String)


14
15
16
17
18
19
20
# File 'lib/jekyll/activity_pub/document.rb', line 14

def initialize(site, path, description = nil)
  super

  data['type'] = 'Document'

  trigger_hooks :post_init
end