You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2022/09/21 00:57:48 UTC

[groovy-website] branch asf-site updated: add events forwarder - ASF web crawler doesn't know about groovy-lang.org

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

paulk pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 6b29c2a  add events forwarder - ASF web crawler doesn't know about groovy-lang.org
6b29c2a is described below

commit 6b29c2a2aad14612b1618d9f8d85e67b1ea65958
Author: Paul King <pa...@asert.com.au>
AuthorDate: Wed Sep 21 10:57:43 2022 +1000

    add events forwarder - ASF web crawler doesn't know about groovy-lang.org
---
 site/src/site/pages/eventsForwarder.groovy | 2 ++
 site/src/site/sitemap-dev.groovy           | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/site/src/site/pages/eventsForwarder.groovy b/site/src/site/pages/eventsForwarder.groovy
new file mode 100644
index 0000000..dcb4e35
--- /dev/null
+++ b/site/src/site/pages/eventsForwarder.groovy
@@ -0,0 +1,2 @@
+yieldUnescaped '''<!DOCTYPE html>
+<meta http-equiv="refresh" content="5; URL=https://groovy-lang.org/events.html" />'''
\ No newline at end of file
diff --git a/site/src/site/sitemap-dev.groovy b/site/src/site/sitemap-dev.groovy
index 4cf2108..baae674 100644
--- a/site/src/site/sitemap-dev.groovy
+++ b/site/src/site/sitemap-dev.groovy
@@ -30,6 +30,7 @@ menu {
         item 'Support',                     "${userSiteBase}support.html"
         item 'Contribute',                  "${devSiteBase}"
         item 'Ecosystem',                   "${userSiteBase}ecosystem.html"
+        item '',                            "${devSiteBase}events.html" // keep ASF web crawler somewhat happy
     }
 
     group('About') {
@@ -64,6 +65,7 @@ pages {
     page 'buildstatus', 'buildstatus', [category: 'Develop']
     page 'faq', 'faq', [category: 'Documentation']
     page '404','404', [:]
+    page 'eventsForwarder','events', [:]
 }
 
 documentation {