Skip to content

Commit

Permalink
News: Make layout more consistent with individual post pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilburda committed Dec 30, 2023
1 parent e3efa01 commit f04ec0e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions _sass/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ ul.post-list, ol.post-list {

h2.post-list-header {
margin-top: 0.3rem;
margin-bottom: 0;
border-bottom: 0;
}

Expand Down
11 changes: 9 additions & 2 deletions news/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,22 @@ <h1>{{ page.title }}</h1>

{%- if posts.size > 0 -%}
<ul class="post-list">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{%- assign date_format = "%b %-d, %Y" -%}
{%- for post in posts -%}
<li>
<span class="post-meta">{{ post.date | date: date_format }}</span>
<h2 class="post-list-header">
<a href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h2>
<p class="post-meta">
{{ post.date | date: date_format }}
{% if post.author %}
• {% for author in post.author %}
<span>{{ author }}</span>
{%- if forloop.last == false %}, {% endif -%}
{% endfor %}
{% endif %}</p>
{%- if site.show_excerpts -%}
{{ post.excerpt }}
{%- endif -%}
Expand Down

0 comments on commit f04ec0e

Please sign in to comment.