_plugins/portfolio.rb
# Loops through the list of project pages and processes each one.
Loops through the list of project pages and processes each one.
Loops through the list of project pages and processes each one .
def write_portfolio(site)
      if Dir.exists?('_projects')
        Dir.chdir('_projects')
        Dir["*.yml"].each do |path|
          name = File.basename(path, '.yml')
          self.write_project_index(site, "_projects/#{path}", name)
        end
        Dir.chdir(site.source)
        self.write_portfolio_index(site)
      end
    end
def write_portfolio ( site ) if Dir . exists? ( '_projects' ) Dir . chdir ( '_projects' ) Dir [ "*.yml" ] . each do | path | name = File . basename ( path , '.yml' ) self . write_project_index ( site , "_projects/#{path}" , name ) end Dir . chdir ( site . source ) self . write_portfolio_index ( site ) end end
Loops through the list of project pages and processes each one.
Loops through the list of project pages and processes each one .
site