1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2026-03-22 02:48:15 +00:00

Covert the language alias on code header

This commit is contained in:
Cotes Chung
2021-09-22 21:20:30 +08:00
parent 4ad0a76789
commit ed93fbdfde
3 changed files with 76 additions and 9 deletions

View File

@@ -121,7 +121,8 @@
{% assign _text = _left | split: 'file="' | last | split: '"' | first %}
{% assign _label_icon = 'far fa-file' %}
{% else %}
{% assign _text = _left | split: 'language-' | last | split: ' ' | first %}
{% assign _lang = _left | split: 'language-' | last | split: ' ' | first %}
{% capture _text %}{% include language-alias.html language=_lang %}{% endcapture %}
{% assign _label_icon = 'fas fa-code small' %}
{% endif %}