-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USWDS-Site - What's new: Create posts_short directory and add new items #3064
base: main
Are you sure you want to change the base?
Changes from 47 commits
7c5b73f
097c684
ade2a08
5b9f64a
71216fa
0c7230c
a766685
6082ee1
ebba8a8
50308c4
d148146
b58bb55
14a708a
81a0555
33cffe4
c0e5075
d1332a7
60c2cf5
f94caf5
049a215
5a34007
fed3932
07c4993
75dab01
635672a
6ef166c
48a9b86
215c164
8d24cda
7dec7b4
172def5
5e647c3
23e1b7f
6a00825
02c4303
c6aaa2d
480580c
9aa9e1e
112e668
0591bda
c865ec9
cd60d15
60e4745
90a5589
3a25f58
097dd74
709bd56
4614055
086a50f
21e848e
eb43973
17939b9
f5745db
a02b72e
1c45773
199c5a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,12 @@ | |
- `/about/whats-new/all` | ||
{% endcomment %} | ||
|
||
{% assign post = include.post %} | ||
{% assign post_id = post.title | default: post.id | slugify %} | ||
|
||
{% comment %} | ||
Assign header link url | ||
- default: link to the post's generated page | ||
- custom: link to a custom location declared in `post.preview_url` | ||
- posts: link to the post's generated page | ||
- post_previews: link to a custom location declared in `preview_url` | ||
{% endcomment %} | ||
{% assign post_url = site.baseurl | append: post.url %} | ||
{% assign preview_url = post.preview_url | default: post_url %} | ||
|
@@ -22,17 +21,21 @@ | |
</p> | ||
|
||
<{{ include.heading | default:"h2" }} class="post-preview__title"> | ||
<a href="{{ preview_url }}"> | ||
{{ post.title }} | ||
</a> | ||
{% unless preview_url == "none" %} | ||
<a href="{{ preview_url }}"> | ||
{% endunless %} | ||
Comment on lines
+24
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note This check allows us to remove the link from the preview header by adding |
||
{{ post.title }} | ||
{% unless preview_url == "none" %} | ||
</a> | ||
{% endunless %} | ||
</{{ include.heading | default:"h2" }}> | ||
|
||
{% include post-meta.html %} | ||
</header> | ||
|
||
<div class="post-preview__content site-prose"> | ||
<p> | ||
{{ post.lead | default: post.excerpt }} | ||
{{ post.lead | default: post.excerpt | markdownify}} | ||
amyleadem marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</p> | ||
</div> | ||
</article> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: Sunsetting the USWDS 1.0 documentation site | ||
category: Product updates | ||
tags: | ||
- Product updates | ||
excerpt: It's been over five years since we launched USWDS 2.0 and moved on from USWDS v1. We archived the USWDS v1 documentation site a few years back, and at the end of 2024 we'll be taking it offline. Content will likely still be available via archive.org. | ||
preview_url: none | ||
--- |
amyleadem marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: USWDS 3.9.0 is out now | ||
category: Releases | ||
tags: | ||
- Releases | ||
excerpt: USWDS version 3.9.0 is out now! | ||
preview_url: https://github.com/uswds/uswds/releases/tag/v3.9.0 | ||
--- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: "Accessibility focus: Going beyond visual design for inclusive user experiences" | ||
category: Accessibility | ||
tags: | ||
- Accessibility | ||
mejiaj marked this conversation as resolved.
Show resolved
Hide resolved
|
||
excerpt: This National Disability Employment Awareness Month, we talked about how members of the design community go beyond visual design to create more inclusive user experiences. What steps are you taking to ensure that your website design is accessible to all? | ||
preview_url: https://github.com/uswds/uswds/discussions/6109 | ||
--- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: 'Accessibility focus: An “autocompletely” useful WCAG technique!' | ||
category: Accessibility | ||
tags: | ||
- Accessibility | ||
excerpt: Does your site or product ask for personal info? If so, how are you putting [WCAG 1.3.5](https://www.w3.org/WAI/WCAG21/Understanding/identify-input-purpose) into practice? | ||
preview_url: https://github.com/uswds/uswds/discussions/6177 | ||
--- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: USWDS 3.10.0 is out now | ||
category: Releases | ||
tags: | ||
- Releases | ||
excerpt: USWDS version 3.10.0 is out now. | ||
preview_url: https://github.com/uswds/uswds/releases/tag/v3.10.0 | ||
--- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: USWDS Figma design kit beta is live | ||
category: Product updates | ||
tags: | ||
- Product updates | ||
excerpt: Our new official design kit beta contains 42 USWDS components built with USWDS design tokens, using variables and smart layouts. Updates, improvements, and changes will be coming over the next few months. | ||
preview_url: https://www.figma.com/community/file/1440921849343185329/uswds-design-kit-beta | ||
--- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: November monthly call Q&A | ||
category: Monthly calls | ||
tags: | ||
- Monthly calls | ||
excerpt: Attendees at the [November monthly call](https://digital.gov/event/2024/11/21/uswds-monthly-call-november-2024/) asked about the new Figma design kit, how the direction of USWDS would affect the current codebase, and more. | ||
preview_url: https://github.com/uswds/uswds/discussions/6252 | ||
--- |
amyleadem marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Post Test | ||
tags: | ||
- updates | ||
category: About | ||
author: Dan O. Williams, James Mejia, Amy Leadem, Bonnie Cameron, Charlie Mahoney | ||
excerpt: This post should appear between the Nov Q&A and figma design kit post previews. | ||
--- | ||
|
||
Test post content |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ type: posts | |
in_page_nav_headings: false | ||
--- | ||
|
||
{% for post in site.posts %} | ||
{% include post-preview.html post=post %} | ||
{% assign all_posts = site.posts | concat: site.post_previews | sort: "date" | reverse %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note This combines the feed from |
||
|
||
{% for post in all_posts %} | ||
{% include post-preview.html %} | ||
{% endfor %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note
output:false
prevents the post_previews collection from generating empty pages for this content type.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
polish: It'd be nice to name this something more accurate. It could be easily misinterpreted and potentially confusing with
post_previews
. It's a short news update or blurb, not a post preview because there is no post.Possible ideas
(Open to other ideas)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestions. Updated the collection and directory name from
post_previews
-->posts_short
in 4614055. Aiming to keep the name similar to its siblingposts
directory.