Skip to content

Commit

Permalink
Updated blog navbar dropdown, blogs no longer wrap to next line.
Browse files Browse the repository at this point in the history
Changed the date format (removed year) so that the date does not wrap.
Truncated the text of the blog titles so that the titles do not wrap.
The style of the date in the blogtable was also modified to set the width of that element to 80px. This forces it to not wrap.

Signed-off-by: kaimmej <[email protected]>
  • Loading branch information
kaimmej committed Dec 5, 2024
1 parent b61bcda commit e370496
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,11 @@ <h2 class="accordion-header row">
{% assign post_metadata_date_string = "" %}

<!-- Date -->
{% assign post_metadata_date_string = post_metadata_date_string | append: post.date | date: "%b %d, %Y" %}
{% assign post_metadata_date_string = post_metadata_date_string | append: post.date | date: "%b %d" %}


<tr>
<td scope="row"><a class="megamenu-blog-title" href="{{ post.url }}" >{{ post.title }}</a></td>
<td ><a class="megamenu-blog-title" href="{{ post.url }}" >{{ post.title | truncate: 80 }}</a></td>
<td class="megamenu-blog-date">{{ post_metadata_date_string }}</td>
</tr>

Expand Down
1 change: 1 addition & 0 deletions _sass/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@
height: 100px;
}
.megamenu-blog-date {
width: 80px;
color: #193442;
font-size: 18px;
font-weight: 400;
Expand Down

0 comments on commit e370496

Please sign in to comment.