implemented eleventy filter for links

This commit is contained in:
sundae 2025-10-19 15:55:35 +03:00
parent fb24c6a302
commit c8223447a0
No known key found for this signature in database
41 changed files with 230 additions and 205 deletions

View file

@ -15,8 +15,8 @@ theme: "M16 6a1 1 0 010 20Zm0-4a1 1 0 000 28A1 1 0 0016 2"
{% endif %}
{{ site.name | safe }}
</title>
<link rel="icon" href="/assets/img/icon/sundae.png">
{% include "meta.njk" %}
<link rel="icon" href="/assets/img/icon/sundae.png">
<link rel="stylesheet" href="/assets/css/reset.css">
<link rel="stylesheet" href="/assets/css/default/default.css">
<link rel="preload" href="/assets/css/citrus/default.css" as="style">

View file

@ -4,7 +4,7 @@ layout: base
<article>
{{content|safe}}
<section aria-label="Postscript">
<section class="postscript">
{{blurb|safe}} <span><img src="{{avatar}}" alt="Profile picture"/></span>
</section>
</article>

View file

@ -14,49 +14,43 @@ layout: base
<ul>
{% for program in programs %}
<li>
<span>
<img src="https://www.google.com/s2/favicons?domain={{ program.src }}" alt="">
<a href="{{ program.src }}">{{ program.name }}</a>
</span>
</li>
{% endfor %}
{{ program.name | link(program.src) | safe }}
</li>
{% endfor %}
</ul>
{% endif %}
{% if palettes and palettes|length > 0 %}
<p>Color palette used:</p>
{% for palette in palettes %}
<ul>
<li>
{% if palette.src %}
{{ palette.name | link(palette.src) | safe }}
{% endif %}
</li>
</ul>
{% endif %}
{% if palettes and palettes|length > 0 %}
<p>Color palette used:</p>
{% for palette in palettes %}
<ul>
<li>
<span>
{% if palette.src %}
<img src="https://www.google.com/s2/favicons?domain={{ palette.src }}" alt="">
<a href="{{ palette.src }}">
{% endif %}
{{ palette.name }}</a>
</span>
</li>
{% endfor %}
</ul>
{% endif %}
<section>
{% for image in images %}
<a href="{{ image.src }}">
<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>
</figure>
</a>
{% endfor %}
</section>
{% for attachment in attachments %}
<section class="attachment">
<a href="{{ attachment.src }}">
<figure>
<img src="{{ attachment.src }}">
<figcaption>{{ attachment.alt }}</figcaption>
</figure>
</a>
</section>
{% endfor %}
</article>
{% endfor %}
</ul>
{% endif %}
<section>
{% for image in images %}
<a href="{{ image.src }}">
<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>
</figure>
</a>
{% endfor %}
</section>
{% for attachment in attachments %}
<section class="attachment">
<a href="{{ attachment.src }}">
<figure>
<img src="{{ attachment.src }}">
<figcaption>{{ attachment.alt }}</figcaption>
</figure>
</a>
</section>
{% endfor %}
</article>

View file

@ -1,7 +1,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<meta property="og:url" content="https://sunbun.neocities.org/">
<meta property="og:type" content="site">
<meta property="og:title" content="Sundae's Bunspace">
<meta property="og:description" content="Sunbun's personal website :3">
<meta property="og:image" content="/assets/img/opengraph/site.png">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<meta property="og:url" content="https://sunbun.neocities.org/">
<meta property="og:type" content="site">
<meta property="og:title" content="Sundae's Bunspace">
<meta property="og:description" content="Sunbun's personal website :3">
<meta property="og:image" content="/assets/img/opengraph/site.png">