From e880448ba5f85bc5de608a5f8e93d5419930fbf1 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 28 Nov 2021 21:13:57 +0800 Subject: [PATCH] Fix code-language conversion (`json`, `plaintext`) --- _includes/language-alias.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_includes/language-alias.html b/_includes/language-alias.html index 26912a3..abfa7ba 100644 --- a/_includes/language-alias.html +++ b/_includes/language-alias.html @@ -41,8 +41,6 @@ {{ 'Perl' }} {% when 'php','php3','php4','php5' %} {{ 'PHP' }} - {% when 'plaintext', 'text' %} - {{ 'Text' }} {% when 'py' %} {{ 'Python' }} {% when 'rb' %} @@ -65,7 +63,7 @@ {{ 'Vue.js' }} {% when 'yml' %} {{ 'YAML' }} - {% when 'css', 'html', 'scss', 'ssh', 'toml', 'xml', 'yaml' %} + {% when 'css', 'html', 'scss', 'ssh', 'toml', 'xml', 'yaml', 'json' %} {{ _lang | upcase }} {% else %} {{ _lang | capitalize }}