public function buildRssFeed()
  {
    $now = Carbon::now();
    $feed = new Feed();
    $channel = new Channel();
    $channel
      ->title($this->title())
      ->description($this->description())
      ->url(url('/'))
      ->language($this->getLang())
      ->copyright('Copyright (c) '.$this->author())
      ->lastBuildDate($now->timestamp)
      ->appendTo($feed);

    $its = $this->repo->getRssItems();

    foreach ($its as $it) {
      $item = new Item();
      $item = $this->format($item, $it);
      $item->guid($this->getuid($it), true)
        ->appendTo($channel);
    }


    // Replace a couple items to make the feed more compliant
    $feed = str_replace(
      '<rss version="2.0">',
      '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">',
      $feed
    );
    $feed = str_replace(
      '<channel>',
      '<channel>'."\n".'    <atom:link href="'.url('/rss').
      '" rel="self" type="application/rss+xml" />',
      $feed
    );

    return $feed;
  }