lib/amber/site.rb
def add_page(page)
      @pages_by_name[page.name] ||= page
      @pages_by_path[page.path.join('/')] = page
      add_aliases(I18n.default_locale, page, @pages_by_path)
      page.locales.each do |locale|
        next if locale == I18n.default_locale
        add_aliases(locale, page, @pages_by_locale_path[locale])
      end
      @page_list << page
    end
def add_page(page)
      @pages_by_name[page.name] ||= page
      @pages_by_path[page.path.join('/')] = page
      add_aliases(I18n.default_locale, page, @pages_by_path)
      page.locales.each do |locale|
        next if locale == I18n.default_locale
        add_aliases(locale, page, @pages_by_locale_path[locale])
      end
      @page_list << page
    end
registers a page with the site, indexing the page path in our various hashes