mirror of
https://github.com/inventree/inventree-website.git
synced 2025-04-28 13:36:47 +00:00
make blog posts tighter
This commit is contained in:
parent
0abc8c7550
commit
1ac028dc0c
@ -3,16 +3,16 @@ layout: default
|
|||||||
title: Blog
|
title: Blog
|
||||||
---
|
---
|
||||||
<section class="cm-gray-2 body-font min-h-screen">
|
<section class="cm-gray-2 body-font min-h-screen">
|
||||||
<div class="section-container">
|
<div class="pt-3 pb-0 section-container">
|
||||||
<h1 class="header-text title-font mb-4 cm-gray-2">InvenTree Blog</h1>
|
<h1 class="header-text title-font mb-4 cm-gray-2">InvenTree Blog</h1>
|
||||||
<div class="flex flex-wrap -m-12">
|
<div class="flex flex-wrap">
|
||||||
|
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
<div class="p-12 md:w-1/2 flex flex-col items-start">
|
<div class="p-6 md:w-1/2 flex flex-col items-start">
|
||||||
<h2 class="header-text title-font mb-4 cm-gray-1">
|
<h2 class="header-text title-font mb-4 cm-gray-1">
|
||||||
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||||
</h2>
|
</h2>
|
||||||
<span class="leading-relaxed mb-8">{{ post.excerpt }}</span>
|
<span class="leading-relaxed mb-4">{{ post.excerpt | strip_html | strip_newlines | truncate: 156 }}</span>
|
||||||
<span>
|
<span>
|
||||||
{{ post.date | date_to_string }} |
|
{{ post.date | date_to_string }} |
|
||||||
{% include partial/publisher_ref.html pub=post.publisher %}
|
{% include partial/publisher_ref.html pub=post.publisher %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user