gallery categories modularized, removed music lists, added listenbrainz to outgoing, icons, css cleanup

This commit is contained in:
sundae 2026-06-04 14:05:36 +03:00
commit d376e04015
24 changed files with 474 additions and 606 deletions

View file

@ -0,0 +1,25 @@
<li>
<a href="{{ item.page.url }}">
{% if item.data.images[0] %}
<figure>
<img
src="{{ item.data.images[0].src }}"
alt=""
style="{% if item.data.images[0].pixel %}image-rendering:pixelated;{% endif %}
{% if item.data.images[0].position %}object-position:{{ item.data.images[0].position }};{% endif %}
{% if item.data.images[0].fit %}object-fit:{{ item.data.images[0].fit }};{% endif %}">
<figcaption>
{{ item.page.fileSlug }}
{% if item.data.images.length > 1 %}
<p class="count">(+{{ item.data.images.length| minus: 1 }})</p>
{% endif %}
</figcaption>
{% if item.data.images[0].date %}
<time datetime="{{ item.data.images[0].date | ISO }}">
{{ item.data.images[0].date | readable }}
</time>
{% endif %}
</figure>
{% endif %}
</a>
</li>

View file

@ -39,7 +39,7 @@ layout: base
<figure>
<img src="{{image.src}}" alt="" {%if image.pixel%} style="image-rendering: pixelated" {%endif%}>
<figcaption>{{image.alt}}</figcaption>
<time datetime="{{image.date|ISO}}">{{image.date|readable}}</time>
<time datetime="{{image.date|ISO}}"><b>{{image.date|readable}}</b></time>
</figure>
</a>
{%endfor%}

View file

@ -21,7 +21,7 @@
{%if key != "signal"%}
<li>
<a href="{{item.src}}">
<img src="/assets/img/icon/{{item.icon}}" alt="" aria-hidden="true">{{key|capitalize}}
<img src="/assets/img/icon/{{item.icon}}" alt="" aria-hidden="true">{%if item.title %}{{item.title}}{%else%}{{key|capitalize}}{%endif%}
</a>
</li>
{%endif%}