Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Jan 4, 2024
1 parent da4fc90 commit 892e356
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/app/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function get(req: any) {

return {
props: {
slug: req.params.slug,
slug: req.params.slug.join('/'),
content: content,
insight: asInsight(response)
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/archives/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function get(req: any) {

return {
props: {
slug: req.params.slug,
slug: req.params.slug.join('/'),
archives: archives
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/articles/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function get(req: any) {

return {
props: {
slug: req.params.slug,
slug: req.params.slug.join('/'),
content: content,
insight: asInsight(response)
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/articles/[number]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function get(req: any) {

return {
props: {
slug: req.params.slug,
slug: req.params.slug.join('/'),
current: req.params.number,
count: articlesResponseWithCount.count,
articles: articles
Expand Down
2 changes: 1 addition & 1 deletion src/app/articles/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function get(req: any) {

return {
props: {
slug: req.params.slug,
slug: req.params.slug.join('/'),
count: articlesResponseWithCount.count,
articles: articles
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function get(req: any) {

return {
props: {
slug: req.params.slug,
slug: req.params.slug.join('/'),
articles: articles
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/app/search/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function get(req: any) {
if (req.searchParams['q'] === undefined) {
return {
props: {
slug: req.params.slug,
slug: req.params.slug.join('/'),
statusCode: req.res.statusCode,
hits: 0,
count: 0,
Expand All @@ -36,7 +36,7 @@ async function get(req: any) {
const result = await execute(req, qs);
return {
props: {
slug: req.params.slug,
slug: req.params.slug.join('/'),
statusCode: 422, // TODO
hits: result.count,
count: result.contents.length,
Expand All @@ -47,7 +47,7 @@ async function get(req: any) {
} else {
return {
props: {
slug: req.params.slug,
slug: req.params.slug.join('/'),
statusCode: 422, // TODO
hits: 0,
count: 0,
Expand All @@ -59,7 +59,7 @@ async function get(req: any) {
} catch {
return {
props: {
slug: req.params.slug,
slug: req.params.slug.join('/'),
statusCode: 422, // TODO
hits: 0,
count: 0,
Expand Down
2 changes: 1 addition & 1 deletion src/app/series/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function get(req: any) {

return {
props: {
slug: req.params.slug,
slug: req.params.slug.join('/'),
seriresWithArticles: seriresWithArticles
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/series/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function get(req: any) {

return {
props: {
slug: req.params.slug,
slug: req.params.slug.join('/'),
series: series
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/status/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function get(req: any) {

return {
props: {
slug: req.params.slug,
slug: req.params.slug.join('/'),
statusCode: response.status
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/tags/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function get(req: any) {

return {
props: {
slug: req.params.slug,
slug: req.params.slug.join('/'),
tagName: tagName,
currentPage: currentPage,
count: articlesResponseWithCount.count,
Expand Down
2 changes: 1 addition & 1 deletion src/app/tags/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function get(req: any) {

return {
props: {
slug: req.params.slug,
slug: req.params.slug.join('/'),
tags: await response.json() as Array<Tag>
}
}
Expand Down

0 comments on commit 892e356

Please sign in to comment.