This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 3c466cc5 Allow for change to ASF homepage
3c466cc5 is described below

commit 3c466cc5ec89645c87159208147ca7b1fe16b6b1
Author: Sebb <[email protected]>
AuthorDate: Thu Sep 18 11:05:04 2025 +0100

    Allow for change to ASF homepage
---
 tools/collate_minutes.rb | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/tools/collate_minutes.rb b/tools/collate_minutes.rb
index 791bab6e..6a65fff8 100755
--- a/tools/collate_minutes.rb
+++ b/tools/collate_minutes.rb
@@ -790,10 +790,14 @@ def layout(title = nil, info = nil)
 #   $calendar.at('h2').content = "Board Meeting Minutes"
   end
 
-  section = $calendar.at('#maincontent .container')
+  maincontent = $calendar.at('#maincontent')
 
   # remove all the existing content
-  section.children.each {|child| child.remove}
+  maincontent.children.each {|child| child.remove}
+
+  container = Nokogiri::XML::Node.new 'div', $calendar
+  container['class'] = 'container'
+  section = maincontent.add_child(container)
 
   # Add the replacement first para
   section.add_child getHTMLbody {|x|
@@ -802,7 +806,7 @@ def layout(title = nil, info = nil)
       x.h1 do
         x.a info[:name], :href => info[:link], :title => info[:text]
       end
-    else
+    elsif title
       x.h1 title
     end
     x.p do

Reply via email to