const minisrv_service_file = true; // max of 6, any more will be ignored headers = `200 OK Connection: Keep-Alive Content-Type: text/html` data = ` Featured discussion groups
All groups
Help
Featured discussions
`; const featuredGroups = minisrv_config.services[service_name].featuredGroups; const limit = 6; while (featuredGroups.length > limit) featuredGroups.pop(); // remove anything passing our limit function printGroup(group) { return `${group.name}
${group.description}

`; } // evens Object.keys(featuredGroups).forEach((k) => { if (k % 2 === 0) { data += printGroup(featuredGroups[k]); } }); if (featuredGroups.length > 1) data += `
`; // odds Object.keys(featuredGroups).forEach((k) => { if (k % 2 !== 0) data += printGroup(featuredGroups[k]); }); data += `
Type a discussion topic
 
`;