class BridgetownNotable::Builder

Constants

Public Instance Methods

attachments() click to toggle source
# File lib/bridgetown-notable/builder.rb, line 13
def attachments
  notable_pages.each do |page|
    page.content.gsub!("(@attachment/", "(/attachments/")
  end
end
build() click to toggle source
# File lib/bridgetown-notable/builder.rb, line 7
def build
  generator :attachments
  generator :backlinks
  generator :wikilinks
end

Private Instance Methods

notable?(page) click to toggle source
# File lib/bridgetown-notable/builder.rb, line 47
def notable?(page)
  page.data[:notable]
end
notable_pages() click to toggle source
# File lib/bridgetown-notable/builder.rb, line 43
def notable_pages
  site.pages.select { |page| notable?(page) }
end