Method: Jekyll::PaginateV2::Generator::Utils.format_page_title

Defined in:
lib/jekyll-paginate-v2/generator/utils.rb

.format_page_title(toFormat, title, cur_page_nr = nil, total_page_count = nil) ⇒ Object

Static: returns a fully formatted string with the :title variable and the current (:num) page number and maximum (:max) page count replaced



32
33
34
# File 'lib/jekyll-paginate-v2/generator/utils.rb', line 32

def self.format_page_title(toFormat, title, cur_page_nr=nil, total_page_count=nil)
  return format_page_number(toFormat.sub(':title', title.to_s), cur_page_nr, total_page_count)
end