Skip to content

Commit

Permalink
fest(wiki): SignInReward活動簽到標題
Browse files Browse the repository at this point in the history
  • Loading branch information
stu43005 committed Dec 11, 2024
1 parent cadb3cd commit 52d1b0f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/wiki/SignInReward.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ export default function wikiSignInReward() {
(r) => r.get("category"),
);

out += `\n\n${wikiH2(groupId)}`;
if (categories["special"]) {
const groupTitle = localizationString("SignInSpecial")(`${groupId}_title`) || groupId;
const groupDesc = localizationString("SignInSpecial")(`${groupId}_description`);
out += `\n\n${wikiH2(groupTitle, groupId)}\n<pre>${groupDesc}</pre>`;
} else {
out += `\n\n${wikiH2(groupId)}`;
}

if (categories["day"]) {
out += `\n${wikitable(buildWeekTable(categories["day"], categories["week"]))}`;
Expand Down

0 comments on commit 52d1b0f

Please sign in to comment.