Skip to content

Display logo of the programming language on the sidebar #52

@abdullah20401

Description

@abdullah20401

Is your feature request related to a problem? Please describe.
On the sidebar I can't find out what language the snippet is in until I click on it.


Describe the solution you'd like
I can add all the icons to the the static folder:

{% static 'img/iconfolder/{{i.lang}}/{{i.lang}}.svg' %}

Describe alternatives you've considered

I can use something like https://devicon.dev/ to display the icon:

  • Flaw:: This won't work for ever language because the naming of the language from the models doesn't match the icon name
    • Ex: models.py -> html != devicon -> html5
<i class="devicon-{{i.lang|lower}}-plain">&nbsp; &nbsp;</i>

Additional context
How the alternative solution will look like:
image

Metadata

Metadata

Assignees

Labels

NJACKNJACK winter of code

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions