diff options
author | Alex Legler <alex@a3li.li> | 2016-07-02 22:14:57 +0200 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2016-07-02 22:15:33 +0200 |
commit | 77572687eee4183849b567e8f29609c616177007 (patch) | |
tree | 4a64422d74764f4b194747c5b04e2aa16f48ae74 /_plugins | |
parent | Update the expire date of the 0xDB6B8C1F96D8BF6D signing key (portage snapshot). (diff) | |
download | www-77572687eee4183849b567e8f29609c616177007.tar.gz www-77572687eee4183849b567e8f29609c616177007.tar.bz2 www-77572687eee4183849b567e8f29609c616177007.zip |
Rework news item page
* Mention the items only concern the main repo
* Syntax fixes
* Remove incomplete authors list from overview table (#587534)
Diffstat (limited to '_plugins')
-rw-r--r-- | _plugins/news.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/_plugins/news.rb b/_plugins/news.rb index a90c435..2e2fde7 100644 --- a/_plugins/news.rb +++ b/_plugins/news.rb @@ -38,11 +38,10 @@ module Gentoo File.readlines(File.join(@base, NewsGenerator::NEWS_DIR, path, "#{name}.en.txt")).each do |line| @title = $1 if line =~ /Title: (.*)$/ - @author = $1 if line =~ /Author: (.*)$/ @date = $1 if line =~ /Posted: (.*)$/ end - site.data['newsitems'] << { 'title' => @title, 'author' => @author, 'date' => @date, 'url' => data['permalink'] } + site.data['newsitems'] << { 'title' => @title, 'date' => @date, 'url' => data['permalink'] } data['title'] = @title end |