slight visual improvements to the devlogs section

This commit is contained in:
Ell 2024-12-21 23:30:13 +01:00
parent 1fb00fe654
commit 96bfcc6f45
2 changed files with 4 additions and 4 deletions

View file

@ -1,13 +1,13 @@
<div class="devlogs">
<div class="devlog-category">
{% assign slug = include.tag | slugify %}
<h2 class="devlog-category" id="{{ slug }}">{{ include.emoji }} {{ include.tag }}</h2>
<h2 id="{{ slug }}">{{ include.emoji }} {{ include.tag }}</h2>
<p>{{ include.description }}</p>
{% assign total = 0 %}
{% for post in site.posts %}
{%- if post.tags contains include.tag -%}
{%- assign total = total | plus: 1 -%}
<div class="devlog devlog-{{ slug }}" {% if total > 6 %}hidden{% endif %}>
<div class="devlog devlog-{{ slug }}" {% if total > 4 %}hidden{% endif %}>
{%- if post.image -%}
{%- assign start = post.image | slice: 0, 4 -%}
{%- if start == "http" -%}

View file

@ -168,7 +168,7 @@ a:visited.wide-link {
}
.devlog-category {
margin-top: 20px;
margin-top: 30px;
}
.devlog-image {