Skip to content

Commit a5bf537

Browse files
committed
refactor
1 parent 27f2734 commit a5bf537

File tree

3 files changed

+33
-6
lines changed

3 files changed

+33
-6
lines changed

components/NotionPage.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,10 @@ export const NotionPage: React.FC<types.PageProps> = ({
241241
if (block.type === 'page' && block.parent_table === 'collection') {
242242
comments = (
243243
<ReactUtterances
244-
repo='transitive-bullshit/transitivebullsh.it'
244+
repo='ankurpaulcoder/nooobcoder-blog'
245245
issueMap='issue-term'
246246
issueTerm='title'
247-
label='blog'
247+
label='blog-comment'
248248
theme='preferred-color-scheme'
249249
/>
250250
)

site.config.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ export default siteConfig({
99
rootNotionSpaceId: null,
1010

1111
// basic site info (required)
12-
name: `A noob's blog`,
12+
name: `Ankur Paul's blog`,
1313
domain: 'nooobcoder-blog.vercel.app',
1414
author: 'Ankur Paul',
1515

1616
// open graph metadata (optional)
1717
description: 'Not so noob, kinda blogs 🧠',
1818

1919
// social usernames (optional)
20-
twitter: 'ankurpauldotdev',
20+
twitter: 'hundredwpmcoder',
2121
github: 'nooobcoder',
2222
linkedin: 'ankur-paul-888b4411b',
2323
isSearchEnabled: true,
@@ -27,7 +27,7 @@ export default siteConfig({
2727
// page-specific values will override these site-wide defaults
2828
defaultPageIcon: null,
2929
defaultPageCover: null,
30-
defaultPageCoverPosition: 0.5,
30+
defaultPageCoverPosition: 0.8,
3131

3232
// whether or not to enable support for LQIP preview images (optional)
3333
isPreviewImageSupportEnabled: true,
@@ -55,6 +55,6 @@ export default siteConfig({
5555
{
5656
title: 'About',
5757
pageId: '264a3bda6a4548748f8e472131ae9dc6'
58-
},
58+
}
5959
]
6060
})

styles/notion.css

+27
Original file line numberDiff line numberDiff line change
@@ -378,3 +378,30 @@
378378
.notion-block-260baa77f1e1428b97fb14ac99c7c385 {
379379
display: none;
380380
}
381+
382+
@media (min-width: 1300px) and (min-height: 300px) {
383+
.notion-page-content-has-aside {
384+
width: calc((100vw + var(--notion-max-width)) / 2 - 12px);
385+
}
386+
}
387+
388+
@media (min-width: 1300px) and (min-height: 300px) {
389+
.notion-page-content-has-aside .notion-page-content-inner {
390+
width: calc(var(--notion-max-width) - 24px);
391+
max-width: calc(var(--notion-max-width) - 24px);
392+
}
393+
}
394+
395+
.notion-aside {
396+
overflow-x: hidden;
397+
padding-left: 24px; /* Adjust the space between the main content and the table of content here */
398+
}
399+
400+
.notion-aside-table-of-contents {
401+
max-width: 100%;
402+
}
403+
404+
.notion-aside-table-of-contents .notion-table-of-contents-item-body {
405+
overflow: hidden;
406+
text-overflow: ellipsis;
407+
}

0 commit comments

Comments
 (0)