Adjust item excerpts

This commit is contained in:
2021-05-04 13:38:58 +02:00
parent 190e3c87f9
commit a3faccbaeb
4 changed files with 21 additions and 2 deletions

View File

@@ -247,6 +247,8 @@
} }
.post-item-title { .post-item-title {
flex-basis: max-content;
flex-grow: 1;
margin: 0; margin: 0;
border: 0; border: 0;
padding: 0; padding: 0;
@@ -263,6 +265,15 @@
} }
} }
} }
.post-item-excerpt {
flex-basis: min-content;
flex-grow: 4;
text-align: justify;
line-height: 1.3;
color: $gray;
}
} }
// Footer // Footer

View File

@@ -50,6 +50,7 @@
// Post meta // Post meta
.post-meta { .post-meta {
text-align: justify;
padding-top: 3px; padding-top: 3px;
line-height: 1.3; line-height: 1.3;
color: $gray; color: $gray;

View File

@@ -3,6 +3,6 @@ name: Mouse Wheelie
slug: mouse-wheelie slug: mouse-wheelie
curseforge: mouse-wheelie curseforge: mouse-wheelie
modrinth: mouse-wheelie modrinth: mouse-wheelie
excerpt: A mod extending the mouse wheel and inventory interactions. excerpt: A mod extending the mouse wheel and inventory interactions — e.g. scrolling, refilling and sorting.
--- ---

View File

@@ -10,14 +10,21 @@ comments: false
<h1>My mods</h1> <h1>My mods</h1>
<div>
{%- for mod in site.mods -%} {%- for mod in site.mods -%}
<article class="post-item"> <article class="post-item">
<h3 class="post-item-title"> <h3 class="post-item-title">
<a href="{{ mod.url }}">{{ mod.name }}</a> <a href="{{ mod.url }}">
{{ mod.name }}
</a>
</h3> </h3>
<div class="post-item-excerpt">
{{ mod.excerpt }}
</div>
</article> </article>
{%- else -%} {%- else -%}
<div style="text-align:center"> <div style="text-align:center">
No mods to see here yet. No mods to see here yet.
</div> </div>
{%- endfor -%} {%- endfor -%}
</div>