add style for PL badges
This commit is contained in:
parent
7f94201212
commit
64bbaac403
2 changed files with 46 additions and 3 deletions
13
_config.ts
13
_config.ts
|
|
@ -7,6 +7,19 @@ import djot from "@djot/djot";
|
|||
|
||||
const site = lume();
|
||||
|
||||
site.filter("lowercasePL", (lang: string) => {
|
||||
switch (lang) {
|
||||
case "C++":
|
||||
return "cpp";
|
||||
case "C#":
|
||||
return "csharp";
|
||||
case "Python 3":
|
||||
return "python3";
|
||||
default:
|
||||
return lang.toLowerCase();
|
||||
}
|
||||
});
|
||||
|
||||
site.use(nav());
|
||||
site.use(codeHighlight());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue