Add description to image lightbox
This commit is contained in:
parent
f1934ecdaa
commit
a1808f4bb4
3 changed files with 5 additions and 2 deletions
|
@ -56,6 +56,9 @@ section.content {
|
||||||
.gslide-image img {
|
.gslide-image img {
|
||||||
object-fit: contain !important;
|
object-fit: contain !important;
|
||||||
|
|
||||||
|
// Manually set sizes, as mermaid images are very small
|
||||||
|
width: 80vw !important;
|
||||||
|
|
||||||
&[src*="mermaid.ink"] {
|
&[src*="mermaid.ink"] {
|
||||||
@include dark-mode {
|
@include dark-mode {
|
||||||
filter: invert(100%);
|
filter: invert(100%);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<figure>
|
<figure>
|
||||||
<div class="image">
|
<div class="image">
|
||||||
<a href="{% image_url value.image 'original' %}" class="glightbox" data-gallery="content" data-height="70vh" data-width="95vw" data-alt="{{ value.caption|richtext|extract_text }}">
|
<a href="{% image_url value.image 'original' %}" class="glightbox" data-gallery="content" data-height="70vh" data-alt="{{ value.caption|richtext|extract_text }}" data-title="{{ value.caption|richtext|extract_text }}">
|
||||||
<img src="{% image_url value.image 'width-1500' %}" alt="{{ value.caption|richtext|extract_text }}" loading="lazy" decoding="async" />
|
<img src="{% image_url value.image 'width-1500' %}" alt="{{ value.caption|richtext|extract_text }}" loading="lazy" decoding="async" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<figure>
|
<figure>
|
||||||
<div class="image">
|
<div class="image">
|
||||||
<a href="https://mermaid.ink/svg/{{ value.pako }}" data-gallery="content" class="glightbox" data-type="image" data-height="60vh" data-width="95vw" data-alt="{{ value.caption|richtext|extract_text }}">
|
<a href="https://mermaid.ink/svg/{{ value.pako }}" data-gallery="content" class="glightbox" data-type="image" data-height="70vh" data-alt="{{ value.caption|richtext|extract_text }}" data-title="{{ value.caption|richtext|extract_text }}">
|
||||||
<img src="https://mermaid.ink/svg/{{ value.pako }}" referrerpolicy="no-referrer" alt="{{ value.caption|richtext|extract_text }}" loading="lazy" decoding="async" />
|
<img src="https://mermaid.ink/svg/{{ value.pako }}" referrerpolicy="no-referrer" alt="{{ value.caption|richtext|extract_text }}" loading="lazy" decoding="async" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue