pages/_includes/repository
George a9da28e256
Renamed repo-img- to only- to allow setting images for only one theme (#2886)
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](assets/img/prof_pic_color.png){: .only-light}
![Only dark](assets/img/prof_pic.jpg){: .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>
2024-12-12 12:45:04 -03:00
..
repo_trophies.liquid Renamed repo-img- to only- to allow setting images for only one theme (#2886) 2024-12-12 12:45:04 -03:00
repo_user.liquid Renamed repo-img- to only- to allow setting images for only one theme (#2886) 2024-12-12 12:45:04 -03:00
repo.liquid Renamed repo-img- to only- to allow setting images for only one theme (#2886) 2024-12-12 12:45:04 -03:00