Closes #930. We already had classes for this kind of feature, but it was used specifically for repository information. Just renamed the classes so it is clear how they can be used. To use them with markdown, just do it like this: ```markdown {: .only-light} {: .only-dark} ``` and with html: ```html <img class="only-light" src="assets/img/prof_pic_color.png" > <img class="only-dark" src="assets/img/prof_pic.jpg" > ``` Signed-off-by: George Araújo <george.gcac@gmail.com>
15 lines
540 B
Plaintext
15 lines
540 B
Plaintext
<div class="repo p-2 text-center">
|
|
<a href="https://github.com/{{ include.username }}">
|
|
<img
|
|
class="only-light w-100"
|
|
alt="{{ include.username }}"
|
|
src="https://github-readme-stats.vercel.app/api/?username={{ include.username }}&theme={{ site.repo_theme_light }}&show_icons=true"
|
|
>
|
|
<img
|
|
class="only-dark w-100"
|
|
alt="{{ include.username }}"
|
|
src="https://github-readme-stats.vercel.app/api/?username={{ include.username }}&theme={{ site.repo_theme_dark }}&show_icons=true"
|
|
>
|
|
</a>
|
|
</div>
|