public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alex Legler" <a3li@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] sites/www:master commit in: _data/, _plugins/, /
Date: Sat, 22 Aug 2015 12:06:21 +0000 (UTC)	[thread overview]
Message-ID: <1440245153.3b98f18405f8ac93844bd1344264f586d2e3dc9e.a3li@gentoo> (raw)

commit:     3b98f18405f8ac93844bd1344264f586d2e3dc9e
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sat Aug 22 12:05:53 2015 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sat Aug 22 12:05:53 2015 +0000
URL:        https://gitweb.gentoo.org/sites/www.git/commit/?id=3b98f184

Adapt to news changes

 .gitmodules      |  2 +-
 _data/news       |  2 +-
 _plugins/news.rb | 16 +++++++---------
 3 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/.gitmodules b/.gitmodules
index 79663bc..f67095d 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,3 @@
 [submodule "_data/news"]
 	path = _data/news
-	url = git://anongit.gentoo.org/proj/gentoo-news.git
+	url = git://anongit.gentoo.org/data/gentoo-news.git

diff --git a/_data/news b/_data/news
index 9ab5b27..a50b763 160000
--- a/_data/news
+++ b/_data/news
@@ -1 +1 @@
-Subproject commit 9ab5b274a5f6632910f38c3255484d604568ea3f
+Subproject commit a50b763c338161b4621d23e9fa5cd6e11455d6ca

diff --git a/_plugins/news.rb b/_plugins/news.rb
index e65b08d..a93aa06 100644
--- a/_plugins/news.rb
+++ b/_plugins/news.rb
@@ -6,15 +6,13 @@ module Gentoo
       site.data['newsitems'] ||= []
 
       Dir.chdir(NEWS_DIR) do
-        Dir.glob('[0-9][0-9][0-9][0-9]').reverse.each do |year|
-          Dir.glob("#{year}/[0-9][0-9][0-9][0-9]*").reverse.each do |path|
-            begin
-              name = path.gsub(/#{year}\//, '')
-
-              site.pages << NewsPage.new(site, path, name)
-            rescue
-              # fail them silently
-            end
+        Dir.glob("[0-9][0-9][0-9][0-9]*").reverse.each do |path|
+          begin
+            name = path
+
+            site.pages << NewsPage.new(site, path, name)
+          rescue
+            # fail them silently
           end
         end
       end


                 reply	other threads:[~2015-08-22 12:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1440245153.3b98f18405f8ac93844bd1344264f586d2e3dc9e.a3li@gentoo \
    --to=a3li@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox