-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Introduce blog #6629
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
Introduce blog #6629
Conversation
Nooo it will break the mobile layout :(( On a more serious note, should we move Newsletter somewhere else since the top bar is getting a bit crowded. It seems like the less important tab and is an external link. It is also pretty similar to the blog. |
Agreed it is crowded. Idea: we can move the newsletter as part of showcase. I would see [featured] |
It would fit nicely but it doesn't feel related to showcase. Maybe a link in the blog sidebar before/after recent posts? There is also the footer but it isn't visible at all on the home page. |
Ported the infrastructure from jest.
@vjeux updated the pull request. |
|
@facebook-github-bot shipit |
Thanks for importing. If you are an FB employee go to Phabricator to review. |
<h1>{post.title}</h1> | ||
<p className="meta"> | ||
{month} {day}, {year} by{' '} | ||
<a href={post.authorURL} target="_blank">{post.author}</a> |
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.
This will act weird if there is no authorURL (like in the current blog post). Should probably either make it only text if there is no URL or make sure to always include an authorURL for each blog post.
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.
Indeed!
{section: 'support', href: 'support.html', text: 'Support'}, | ||
{section: 'newsletter', href: 'http://reactnative.cc', text: 'Newsletter'}, | ||
{section: 'showcase', href: 'showcase.html', text: 'Showcase'}, | ||
{section: 'blog', href: 'blog/', text: 'Blog'}, |
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.
@vjeux this should be href: '/react-native/blog'
.
Otherwise BASE setting will prepend /react-native/release/XX
to the link and it won't work for people who navigate other versions but stable.
Summary:Ported the infrastructure from jest.  Closes facebook#6629 Differential Revision: D3094423 Pulled By: vjeux fb-gh-sync-id: a01aec6a55d28484c45bb241d037ca6717bc5e81 shipit-source-id: a01aec6a55d28484c45bb241d037ca6717bc5e81
Ported the infrastructure from jest.