class StaticPagesController < ApplicationController
  def home
    if signed_in?
      @micropost = current_user.microposts.build
      @feed_items = current_user.feed.paginate(page: params[:page], per_page: 5)
    else
      @feed_items = Micropost.paginate(page: params[:page], per_page: 10)
    end
  end

  def help
  end

  def about
  end
end
