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

skygo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/netbeans-antora.git


The following commit(s) were added to refs/heads/main by this push:
     new 26fbd46  strict mode + more compliance
26fbd46 is described below

commit 26fbd46dbda3deb86bebb19f337218479ffc4f44
Author: Eric Barboni <[email protected]>
AuthorDate: Thu Feb 22 11:44:14 2024 +0100

    strict mode + more compliance
---
 lib/rssfeed.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/rssfeed.js b/lib/rssfeed.js
index 4836187..4893bf4 100644
--- a/lib/rssfeed.js
+++ b/lib/rssfeed.js
@@ -17,6 +17,7 @@
  * under the License.
  */
 
+'use strict'
 
 module.exports.register = function ( { config }) {
   this.on('beforePublish', ({ siteCatalog, contentCatalog, playbook}) => {
@@ -38,7 +39,7 @@ module.exports.register = function ( { config }) {
     feed += '\n  <subtitle type="html">Quickly and easily develop web, mobile 
and desktop applications with Java, JavaScript, HTML5, PHP, C/C++ and more. 
</subtitle>'
     feed += '\n  <icon>https://netbeans.apache.org/favicon-32x32.png</icon>'
     feed += '\n  <id>https://netbeans.apache.org/blogs/atom</id>'
-    feed += '\n  <link rel="self" type="application/atom+xml" 
href="https://netbeans.apache.org/blogs/atom"; />'
+    feed += '\n  <link rel="self" type="application/atom+xml" 
href="https://netbeans.apache.org/front/main/blogs/atom"; />'
     feed += '\n  <link rel="alternate" type="text/html" 
href="https://netbeans.apache.org/blogs/atom"; />'
     blogpages.forEach((p) => {
       feed += '\n  <entry>'
@@ -51,7 +52,7 @@ module.exports.register = function ( { config }) {
       feed += '\n    <content type="html">' + 
escape(blogcontent(p.contents.toString())) + '</content>'
       feed += '\n  </entry>'
     })
-    feed += '\n  </feed>'
+    feed += '\n</feed>'
     // transfer to file in folder hierarchy
     const contents = Buffer.from(feed)
     siteCatalog.addFile({ contents, out: { path: 'front/main/blogs/atom' } })


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to