Skip to content

Commit

Permalink
Hide date on main page; change include.meta -> include.date
Browse files Browse the repository at this point in the history
  • Loading branch information
amyleadem committed Feb 11, 2025
1 parent 3bb5305 commit 6c0105e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _includes/post-preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{% endunless %}
</{{ include.heading | default:"h2" }}>

{% if include.meta %}
{% if include.date %}
{% include post-meta.html %}
{% endif %}
</header>
Expand Down
6 changes: 3 additions & 3 deletions css/custom-styles/_whats-new.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
}
}

.usa-button {
.usa-button,
.usa-card__body p {
@include u-font('lang', 'xs')
}

Expand Down Expand Up @@ -104,7 +105,7 @@
.post-preview {
@include u-border-top("1px", "gray-30");
@include u-measure(6);
@include u-padding-y("05");
@include u-padding-y(1);
margin-top: 0;

&__title,
Expand All @@ -119,7 +120,6 @@
}

&__title {
@include typeset("lang", "lg", 3);
@include u-text("bold");

a {
Expand Down
2 changes: 1 addition & 1 deletion pages/whats-new/all-news.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ in_page_nav_headings: false

<div class="margin-top-6">
{% for post in all_posts %}
{% include post-preview.html meta=true %}
{% include post-preview.html date=true %}
{% endfor %}
</div>
2 changes: 1 addition & 1 deletion pages/whats-new/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ in_page_nav_headings: "h2"
## Latest news and events
<div>
{% for post in all_posts limit:3 %}
{% include post-preview.html heading="h3" meta=true %}
{% include post-preview.html heading="h3" date=false %}
{% endfor %}
</div>

Expand Down

0 comments on commit 6c0105e

Please sign in to comment.