fix inconsistent alignment for latest posts (#1832)

This commit is contained in:
Yifan Jiang 2023-10-26 07:50:44 +01:00 committed by GitHub
parent 324814543a
commit 7eb1cccf4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
{% endif %} {% endif %}
{% for item in latest_posts limit: latest_posts_limit %} {% for item in latest_posts limit: latest_posts_limit %}
<tr> <tr>
<th scope="row">{{ item.date | date: "%b %-d, %Y" }}</th> <th scope="row" style="width: 20%">{{ item.date | date: "%b %-d, %Y" }}</th>
<td> <td>
{% if item.redirect == blank %} {% if item.redirect == blank %}
<a class="news-title" href="{{ item.url | relative_url }}">{{ item.title }}</a> <a class="news-title" href="{{ item.url | relative_url }}">{{ item.title }}</a>

View File

@ -11,7 +11,7 @@
{% endif %} {% endif %}
{% for item in news limit: news_limit %} {% for item in news limit: news_limit %}
<tr> <tr>
<th scope="row">{{ item.date | date: "%b %-d, %Y" }}</th> <th scope="row" style="width: 20%">{{ item.date | date: "%b %-d, %Y" }}</th>
<td> <td>
{% if item.inline -%} {% if item.inline -%}
{{ item.content | remove: '<p>' | remove: '</p>' | emojify }} {{ item.content | remove: '<p>' | remove: '</p>' | emojify }}