Fix code-language conversion (`json`, `plaintext`)

This commit is contained in:
Cotes Chung 2021-11-28 21:13:57 +08:00
parent c28b6ce7d1
commit e880448ba5
1 changed files with 1 additions and 3 deletions

View File

@ -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 }}