mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-03 12:31:54 +08:00
Housekeeping
This commit is contained in:
@@ -12,8 +12,8 @@ const withBanner = (title, description, date, content) => {
|
||||
# ${title}
|
||||
# Last Updated: ${date.toISOString()}
|
||||
# Size: ${content.length}
|
||||
${description.map(line => line ? `# ${line}` : '#').join('\n')}
|
||||
########################################\n` + content.join('\n') + '\n################# END ###################\n';
|
||||
${description.map(line => (line ? `# ${line}` : '#')).join('\n')}
|
||||
########################################\n${content.join('\n')}\n################# END ###################\n`;
|
||||
};
|
||||
/**
|
||||
* @param {string} title
|
||||
@@ -24,14 +24,14 @@ ${description.map(line => line ? `# ${line}` : '#').join('\n')}
|
||||
*/
|
||||
const withBannerArray = (title, description, date, content) => {
|
||||
return [
|
||||
`########################################`,
|
||||
'########################################',
|
||||
`# ${title}`,
|
||||
`# Last Updated: ${date.toISOString()}`,
|
||||
`# Size: ${content.length}`,
|
||||
...description.map(line => line ? `# ${line}` : '#'),
|
||||
`########################################`,
|
||||
...description.map(line => (line ? `# ${line}` : '#')),
|
||||
'########################################',
|
||||
...content,
|
||||
`################# END ###################`,
|
||||
'################# END ###################',
|
||||
''
|
||||
];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user