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>
|
||||
|
|
@ -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%}
|
||||
|
|
|
|||
|
|
@ -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%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue