mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-12-22 14:49:23 +01:00
slight visual improvements to the devlogs section
This commit is contained in:
parent
1fb00fe654
commit
96bfcc6f45
2 changed files with 4 additions and 4 deletions
|
@ -1,13 +1,13 @@
|
||||||
<div class="devlogs">
|
<div class="devlog-category">
|
||||||
{% assign slug = include.tag | slugify %}
|
{% 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>
|
<p>{{ include.description }}</p>
|
||||||
|
|
||||||
{% assign total = 0 %}
|
{% assign total = 0 %}
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
{%- if post.tags contains include.tag -%}
|
{%- if post.tags contains include.tag -%}
|
||||||
{%- assign total = total | plus: 1 -%}
|
{%- 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 -%}
|
{%- if post.image -%}
|
||||||
{%- assign start = post.image | slice: 0, 4 -%}
|
{%- assign start = post.image | slice: 0, 4 -%}
|
||||||
{%- if start == "http" -%}
|
{%- if start == "http" -%}
|
||||||
|
|
|
@ -168,7 +168,7 @@ a:visited.wide-link {
|
||||||
}
|
}
|
||||||
|
|
||||||
.devlog-category {
|
.devlog-category {
|
||||||
margin-top: 20px;
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.devlog-image {
|
.devlog-image {
|
||||||
|
|
Loading…
Reference in a new issue