class Jekyll::AlbumPage

Public Class Methods

new(site, base, dir, album_data) click to toggle source
# File _plugins/albums.rb, line 77
def initialize(site, base, dir, album_data)
    @site = site
    @base = base
    @dir = dir
    @name = "index.html"

    self.process(@name)

    yaml_path = File.join(base, "_data", "albums", album_data["about"]["name"])
    self.read_yaml(yaml_path, "about.yaml")

    self.data["layout"] = "album"

    album_data.each do |key, value|
        self.data[key] = value
    end
end