morethanmin / morethan-log

😎 A static blog using notion database
https://morethan-log.vercel.app
MIT License
1.93k stars 1.56k forks source link

[Bug]: support multiple projects/ services #324

Closed nuniz closed 7 months ago

nuniz commented 9 months ago

Describe the bug

Multiple "services" are not supported. https://github.com/morethanmin/morethan-log/blob/c81513e2b2ebf0aa2d5255df45f5b51aed340272/src/routes/Feed/ServiceCard.tsx#L23 Should be changed to


<div className="name">{project.name}</div>

### To reproduce

1. Add 2 projects in "site.config.js"
```jsx
  projects: [
    {
      name: `proj1`,
      href: "https://PROJ1",
    },
    {
      name: `proj2`,
      href: "https://PROJ2",
    },
  ],

2. Deploy site
2. See error -> both projects obtained the first project's name

### Browser

Firefox, Windows

### Validations

- [X] Follow our [Code of Conduct](https://github.com/morethanmin/morethan-log/blob/main/.github/docs/CODE_OF_CONDUCT.md)
- [X] Check that there isn't [already an issue](https://github.com/morethanmin/morethan-log/issues) that reports the same bug to avoid creating a duplicate.