Skip to content

Commit

Permalink
simpler change
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 20, 2022
1 parent 7c953de commit 4295cb5
Show file tree
Hide file tree
Showing 32 changed files with 32 additions and 43 deletions.
2 changes: 1 addition & 1 deletion docs/lib/sourcing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const getBlogPost = (filePath: string): BlogPost => {

// Avoid typos in the blog markdown pages.
// https://www.notion.so/mui-org/Blog-247ec2bff5fa46e799ef06a693c94917
const ALLOWED_TAGS = ['MUI Core', 'News', 'MUI X', 'Company', 'All products'];
const ALLOWED_TAGS = ['MUI Core', 'MUI X', 'News', 'Company', 'Developer survey'];

export const getAllBlogPosts = () => {
const filePaths = getBlogFilePaths();
Expand Down
13 changes: 1 addition & 12 deletions docs/pages/blog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,6 @@ const PostPreview = (props: BlogPost) => {

const PAGE_SIZE = 5;

const PARENT_TAG = {
'MUI X': 'All products',
'MUI Core': 'All products',
} as Record<string, string>;

export default function Blog(props: InferGetStaticPropsType<typeof getStaticProps>) {
const router = useRouter();
const postListRef = React.useRef<HTMLDivElement | null>(null);
Expand All @@ -206,13 +201,7 @@ export default function Blog(props: InferGetStaticPropsType<typeof getStaticProp
}

return post.tags.some((tag) => {
return (
Object.keys(selectedTags).includes(tag) ||
Object.keys(selectedTags)
.map((selectedTag) => PARENT_TAG[selectedTag])
.includes(tag) ||
Object.keys(selectedTags).includes(PARENT_TAG[tag])
);
return Object.keys(selectedTags).includes(tag);
});
});
const pageStart = page * PAGE_SIZE;
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/2019.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: 2019 in review and beyond
date: 2020-01-25T00:00:00.000Z
description: 2019 was a great year for MUI. It puts us on an exciting path to solve even greater challenges in the coming years!
authors: ['oliviertassinari']
tags: ['Company update']
tags: ['Company']
---

2019 was a great year for MUI.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/2020-q1-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Q1 2020 Update
description: An update on our mission for Q1 2020.
date: 2020-04-14T00:00:00.000Z
authors: ['oliviertassinari']
tags: ['Company update']
tags: ['Company']
---

Welcome to the new format of our mission update. We are moving from monthly to quarterly updates.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/2020-q2-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Q2 2020 Update
description: An update on our mission for Q2 2020.
date: 2020-07-17T00:00:00.000Z
authors: ['oliviertassinari']
tags: ['Company update']
tags: ['Company']
---

This update covers our progress over the last three months, and what we aim to achieve in the coming months.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/2020-q3-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: An update on our mission for Q3 2020.
date: 2020-10-14T00:00:00.000Z
authors: ['oliviertassinari']
card: true
tags: ['Company update']
tags: ['Company']
---

This update covers our progress over the last three months, and what we aim to achieve in the coming months.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/2020.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: 2020 has been another great year, not only for MUI, but also for th
date: 2020-12-31T00:00:00.000Z
authors: ['oliviertassinari', 'mbrookes']
card: true
tags: ['Company update']
tags: ['Company']
---

2020 has been another great year, not only for MUI, but also for the ecosystem.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/2021-q1-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: An update on our mission for Q1 2021.
date: 2021-04-12T00:00:00.000Z
authors: ['oliviertassinari']
card: true
tags: ['Company update']
tags: ['Company']
---

This update covers our progress over the last three months, and what we aim to achieve in the months ahead.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/2021-q2-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: An update on our mission for Q2 2021.
date: 2021-07-12T00:00:00.000Z
authors: ['oliviertassinari', 'mbrookes']
card: true
tags: ['Company update']
tags: ['Company']
---

This update covers our progress over the last three months.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/2021-q3-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: An update on our mission for Q3 2021.
date: 2021-10-26T00:00:00.000Z
authors: ['oliviertassinari']
card: true
tags: ['Company update']
tags: ['Company']
---

This update covers our progress over the last three months.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/2021.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: 2021 has been another great year, not only for MUI but also for the
date: 2021-12-31T00:00:00.000Z
authors: ['oliviertassinari']
card: true
tags: ['Company update']
tags: ['Company']
---

<img src="/static/blog/2021/card.png" alt="" style="width: 100%; margin-bottom: 16px;" />
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/april-2019-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: April 2019 Update
description: Here are the most significant improvements in April.
date: 2019-05-07T00:00:00.000Z
authors: ['oliviertassinari']
tags: ['Company update']
tags: ['Company']
---

Here are the most significant improvements in April:
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/august-2019-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: August 2019 Update
description: Here are the most significant improvements in August.
date: 2019-09-07T00:00:00.000Z
authors: ['oliviertassinari']
tags: ['Company update']
tags: ['Company']
---

Here are the most significant improvements in August:
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/benny-joo-joining.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Benny Joo joins MUI
description: We are excited to share that Benny Joo has joined MUI. He has started last month full-time and is now a Junior Software Engineer in the Core team.
date: 2021-11-16T00:00:00.000Z
authors: ['mnajdova']
tags: ['Team']
tags: ['Company']
---

We are excited to share that [Benny Joo](https://github.com/hbjORbj) has joined MUI.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/danail-hadjiatanasov-joining.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: We are excited to share that Danail Hadjiatanasov has joined MUI as
date: 2020-10-23T00:00:00.000Z
authors: ['oliviertassinari']
card: true
tags: ['Team']
tags: ['Company']
---

We are excited to share that [Danail Hadjiatanasov](https://twitter.com/danail_h) has joined MUI as part of the enterprise team. This was his first full-time week.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/danilo-leal-joining.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: We are excited to share that Danilo Leal has joined MUI.
date: 2021-07-15T00:00:00.000Z
authors: ['oliviertassinari']
card: true
tags: ['Team']
tags: ['Company']
---

We are excited to share that [Danilo Leal](https://daniloleal.co/) has joined MUI!
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/december-2019-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: December 2019 Update
description: Here are the most significant improvements in December.
date: 2020-01-07T00:00:00.000Z
authors: ['oliviertassinari']
tags: ['Company update']
tags: ['Company']
---

Here are the most significant improvements in December:
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/july-2019-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: July 2019 Update
description: Here are the most significant improvements in July.
date: 2019-08-04T00:00:00.000Z
authors: ['oliviertassinari']
tags: ['Company update']
tags: ['Company']
---

Here are the most significant improvements in July:
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/june-2019-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: June 2019 Update
description: Here are the most significant improvements in June.
date: 2019-07-08T00:00:00.000Z
authors: ['oliviertassinari']
tags: ['Company update']
tags: ['Company']
---

Here are the most significant improvements in June:
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/march-2019-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: March 2019 Update
description: Here are the most significant improvements in March.
date: 2019-04-05T00:00:00.000Z
authors: ['oliviertassinari']
tags: ['Company update']
tags: ['Company']
---

Here are the most significant improvements in March:
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/marija-najdova-joining.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: We are excited to share that Marija Najdova has joined MUI. She has
date: 2020-09-15T00:00:00.000Z
authors: ['oliviertassinari']
card: true
tags: ['Team']
tags: ['Company']
---

We are excited to share that [Marija Najdova](https://twitter.com/marijanajdova) has joined MUI. She has started this week full-time, and is now part of the community team.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/material-ui-is-now-mui.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Material-UI is now MUI!
description: Starting today, we are evolving our brand identity. We are clarifying the difference between our company and our products.
date: 2021-09-16T00:00:00.000Z
authors: ['oliviertassinari', 'danilo-leal', 'mbrookes']
tags: ['Company update']
tags: ['Company']
card: true
---

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/material-ui-v1-is-out.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Material-UI v1 is out 🎉
description: Material-UI v1 is out 🎉
date: 2018-05-18T00:00:00.000Z
authors: ['oliviertassinari', 'mbrookes']
tags: ['Company update']
tags: ['Company']
---

> React components that implement Google's Material Design.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/material-ui-v4-is-out.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Material-UI v4 is out 🎉
description: Material-UI v4 is out 🎉
date: 2019-05-23T00:00:00.000Z
authors: ['oliviertassinari', 'mbrookes', 'eps1lon']
tags: ['Company update']
tags: ['Company']
---

> React components for faster and simpler web development. Build your own design system, or start with Material Design.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/matheus-wichman-joining.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: We are excited to share that Matheus Wichman has joined MUI.
date: 2021-04-05T00:00:00.000Z
authors: ['oliviertassinari']
card: true
tags: ['Team']
tags: ['Company']
---

We are excited to share that [Matheus Wichman](https://github.com/m4theushw) has joined MUI.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/may-2019-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: May 2019 Update
description: Here are the most significant improvements in May.
date: 2019-06-08T00:00:00.000Z
authors: ['oliviertassinari']
tags: ['Company update']
tags: ['Company']
---

Here are the most significant improvements in May:
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/michal-dudak-joining.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: We are excited to share that Michał Dudak has joined MUI.
date: 2021-06-14T00:00:00.000Z
authors: ['oliviertassinari']
card: true
tags: ['Team']
tags: ['Company']
---

We are excited to share that [Michał Dudak](https://twitter.com/michaldudak) has joined MUI!
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/november-2019-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: November 2019 Update
description: Here are the most significant improvements in November.
date: 2019-12-12T00:00:00.000Z
authors: ['oliviertassinari']
tags: ['Company update']
tags: ['Company']
---

Here are the most significant improvements in November:
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/october-2019-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: October 2019 Update
description: Here are the most significant improvements in October.
date: 2019-11-08T00:00:00.000Z
authors: ['oliviertassinari']
tags: ['Company update']
tags: ['Company']
---

Here are the most significant improvements in October:
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/september-2019-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: September 2019 Update
description: Here are the most significant improvements in September.
date: 2019-10-12T00:00:00.000Z
authors: ['oliviertassinari']
tags: ['Company update']
tags: ['Company']
---

Here are the most significant improvements in September:
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/siriwat-kunaporn-joining.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: We are excited to share that Siriwat Kunaporn has joined MUI.
date: 2021-05-17T00:00:00.000Z
authors: ['oliviertassinari']
card: true
tags: ['Team']
tags: ['Company']
---

We are excited to share that [Siriwat Kunaporn](https://twitter.com/siriwatknp) (Jun) has joined MUI.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/blog/spotlight-damien-tassone.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Damien Tassone has joined MUI. He's the first full-time member to f
date: 2020-09-15T00:00:00.000Z
authors: ['oliviertassinari']
card: true
tags: ['Team']
tags: ['Company']
---

A few months ago, right in the middle of the COVID-19 outbreak, [Damien Tassone](https://twitter.com/madKakoO) joined MUI. He's the first full-time member to focus on enterprise components. Back then, we only made a quick mention of it. It's never too late to introduce him properly.
Expand Down

0 comments on commit 4295cb5

Please sign in to comment.