MCPcopy Index your code
hub / github.com/jackvale/rectg / getSectionDescription

Function getSectionDescription

web/src/scripts/main.js:310–315  ·  view source on GitHub ↗
(section)

Source from the content-addressed store, hash-verified

308}
309
310function getSectionDescription(section) {
311 if (!section) return '';
312 if (section.id === 'featured') return '从全站目录选出的一组入口,按主题分布和人数参考整理。';
313 const keywords = section.keywords ? `,关联关键词:${section.keywords}` : '';
314 return `${section.items?.length || 0} 个资源,按订阅或成员数排序${keywords}。`;
315}
316
317function setSectionHeader(title, count, subtitle = '', description = '') {
318 if (activeSectionTitle) activeSectionTitle.textContent = title;

Callers 1

renderSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected