lib/amber/site.rb
def add_aliases(locale, page, path_hash)
      page.aliases(locale).each do |alias_path|
        alias_path_str = alias_path.join('/')
        if path_hash[alias_path_str]
          Amber.logger.warn "WARNING: page `#{page.path.join('/')}` has alias `#{alias_path_str}`, but this path is already taken by `#{path_hash[alias_path_str].path.join('/')}` (locale = #{locale})."
        else
          path_hash[alias_path_str] = page
        end
      end
    end
def add_aliases(locale, page, path_hash)
      page.aliases(locale).each do |alias_path|
        alias_path_str = alias_path.join('/')
        if path_hash[alias_path_str]
          Amber.logger.warn "WARNING: page `#{page.path.join('/')}` has alias `#{alias_path_str}`, but this path is already taken by `#{path_hash[alias_path_str].path.join('/')}` (locale = #{locale})."
        else
          path_hash[alias_path_str] = page
        end
      end
    end
registers a page's aliases with the site