File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 17
17
```
18
18
[ ![ Velog's GitHub stats] ( https://velog-readme-stats.vercel.app/api?name=eungyeole&tag=github )] ( https://github.com/eungyeole/velog-readme-stats )
19
19
20
+ ## 카드색 바꾸기 최신글 가져오기
21
+ > Option : ``` &color ```
22
+
23
+ Color Option
24
+ * black
25
+ ```
26
+ [](https://github.com/eungyeole/velog-readme-stats)
27
+ ```
28
+ [ ![ Velog's GitHub stats] ( https://velog-readme-stats.vercel.app/api?name=eungyeole&tag=github )] ( https://github.com/eungyeole/velog-readme-stats )
29
+
30
+
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ const fetchPost = require('../src/fetchers/post-fetcher');
4
4
5
5
6
6
module . exports = async ( req , res ) => {
7
- const { name, tag, background } = req . query ;
7
+ const { name, tag, color } = req . query ;
8
8
res . setHeader ( 'Content-Type' , 'image/svg+xml' ) ;
9
9
try {
10
10
const post = await fetchPost ( name , tag ) ;
11
- return res . send ( background === 'dark' ? createCardDark ( post ) : createCard ( post ) )
11
+ return res . send ( color === 'dark' ? createCardDark ( post ) : createCard ( post ) )
12
12
} catch ( e ) {
13
13
return res . send ( e . message )
14
14
}
You can’t perform that action at this time.
0 commit comments