gallery categories modularized, removed music lists, added listenbrainz to outgoing, icons, css cleanup
This commit is contained in:
parent
1945abd6ad
commit
d376e04015
24 changed files with 474 additions and 606 deletions
25
_src/_includes/gallery-cat.njk
Normal file
25
_src/_includes/gallery-cat.njk
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue