Skip to content
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: Add README to posts directory #3047

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

amyleadem
Copy link
Contributor

@amyleadem amyleadem commented Jan 8, 2025

Summary

Added READMEs to the _posts and _posts_short directories. These READMEs provide instructions for creating new posts on the what's new page.

Important

These READMEs rely on the updates added in PR #3064, which has not been merged into main at the time of this comment. If that PR is still in progress, use the related branch (al-whats-new-directory-change) to test the instructions here.

Related issue

Closes #2987

Preview link

Problem statement

We do not currently offer instructions for creating items for the "what's new" page news feed.

Solution

Create READMEs for both the /_posts and /_posts_short directory.

Testing and review

  • Confirm the instructions make sense and are easy to follow

@finekatie
Copy link
Contributor

Hi @amyleadem , does this need a FFR to publish? I'm going to start to add posts.

@amyleadem
Copy link
Contributor Author

Let's hold off on publishing this README until you are able to successfully complete the process a couple times first. Once you can successfully build a couple different kinds of posts and we confirm the README has everything it needs, then we can move this to review and FFR.

@amyleadem amyleadem marked this pull request as ready for review January 27, 2025 16:05
@amyleadem amyleadem requested a review from a team as a code owner January 27, 2025 16:05
@finekatie
Copy link
Contributor

Hi @amyleadem , I wanted to ask about the posts_short README - should there be some notes about when we don't want to link to anything from the header at all, like we are for that one post about sunsetting 1.0? I don't see anything currently...

@amyleadem
Copy link
Contributor Author

@finekatie The short posts README has an example implementation of a short post with no header link in these lines, and also a note in the data key table about setting preview_url to none when you want the header to not have a link. I've added a screenshot below to highlight the content. Let me know if I can re-work anything to make that clearer.

image

Copy link
Contributor

@mejiaj mejiaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amyleadem thanks for bringing this back!

Left some comments for plain language, clarity, and reducing content duplication.

_posts/README.md Outdated

The feed on our [What's new page](https://designsystem.digital.gov/about/whats-new/) is powered by the files in two different directories:
- `/_posts`: These are the long format posts generated by [Jekyll posts](https://jekyllrb.com/docs/posts/). These files will automatically generate both a post preview for the news feed and a separate page for the post content.
- See the instructions in this document to learn how to [create a new post](#creating-a-new-post), [customize a post's metadata](#customizing-post-metadata), and follow [post conventions](#post-conventions).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: We should move this instructions bullet to the "Creating a new post" section.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. That sentence does feel out of place. I ended up moving this sentence into a new intro section at the top. Hoping it makes the file make a bit more sense. Let me know what you think.

_posts/README.md Outdated
author:
tags:
---

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought: We should consider a link to a markdown guide. Probably future enhancement.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a link to the basic markdown syntax in 1c76c3f

And this is another paragraph.
```

## Customizing post metadata
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

polish: This section could be moved up as part of the frontmatter example.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're repeating documentation, perhaps the general README is the best place for it.

Folder specific guidance should live here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved some of the content into the repo's main README in 6fc6de4.

@amyleadem
Copy link
Contributor Author

@mejiaj I made some updates to the organization of these READMEs and incorporated many of your copy suggestions. This is ready for re-review.

@amyleadem amyleadem requested a review from mejiaj February 14, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

USWDS-Site: Restore posts README
3 participants