Skip to content

Commit b8d094d

Browse files
committed
Fix Blog page contents with good css
1 parent 9d6792b commit b8d094d

File tree

3 files changed

+18
-85
lines changed

3 files changed

+18
-85
lines changed

docusaurus.config.js

Lines changed: 16 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -137,102 +137,35 @@ const config = {
137137
logo: {
138138
alt: "CodeHarborHub Logo",
139139
src: "img/nav-logo.jpg",
140+
href: "https://codeharborhub.github.io",
141+
target: "_self",
140142
},
141143
items: [
142144
{
143-
type: "dropdown",
144-
html: '<span class="nav-emoji">📚</span> Docs',
145-
position: "left",
146-
items: [
147-
{
148-
type: "html",
149-
value: `<div class="dropdown_grid">
150-
<a class="dropbtn" href="https://codeharborhub.github.io/docs/">Docs</a>
151-
<div class="dropdown-content">
152-
<a href="#" class="nav__icons"> <img src="/icons/html-5.svg" title="HTML5" alt="HTML" /> </a>
153-
<a href="#" class="nav__icons"> <img src="/icons/css.svg" title="CSS" alt="CSS" /> </a>
154-
<a href="#" class="nav__icons" > <img src="/icons/js.svg" title="JavaScript" alt="JavaScript" /> </a>
155-
<a href="#" class="nav__icons"> <img src="/icons/jsx.svg" title="React.Js" alt="React" /> </a>
156-
<a href="#" class="nav__icons"> <img src="/icons/ts.svg" title="TypeScript" alt="TypeScript" /> </a>
157-
<a href="#" class="nav__icons"> <img src="/icons/py.svg" title="Python" alt="Python" /> </a>
158-
<a href="#" class="nav__icons"> <img src="/icons/tailwind-css.svg" title="Tailwind CSS" alt="Tailwind" /> </a>
159-
<a href="#" class="nav__icons"> <img src="/icons/next-js.svg" title="NextJs" alt="Next" /> </a>
160-
</div>
161-
</div>`,
162-
},
163-
164-
{
165-
type: "html",
166-
value: '<hr style="margin: 0.3rem 0;">',
167-
},
168-
169-
{
170-
type: "html",
171-
value: `<div class="dropdown_grid">
172-
<a class="dropbtn" href="#"> Courses </a>
173-
<div class="dropdown-content">
174-
<a href="#" class="nav__icons"> <img src="/icons/html-5.svg" alt="HTML" /> </a>
175-
<a href="#" class="nav__icons"> <img src="/icons/jsx.svg" alt="React" /> </a>
176-
</div>
177-
</div>`,
178-
},
179-
180-
{
181-
type: "html",
182-
value: '<hr style="margin: 0.3rem 0;">',
183-
},
184-
185-
{
186-
type: "html",
187-
value: `<div class="dropdown_grid">
188-
<a class="dropbtn" href="https://codeharborhub.github.io/dsa/" target="_self"> DSA </a>
189-
<div class="dropdown-content dsa-content ">
190-
<a href="https://codeharborhub.github.io/dsa/problems/" target="_self" class="nav__icons"> 🧩Problems </a> <br />
191-
<a href="https://codeharborhub.github.io/dsa/solutions/" target="_self" class="nav__icons "> 💡Solutions </a>
192-
</div>
193-
</div>`,
194-
},
195-
],
196-
},
197-
{
198-
to: "#",
199-
html: '<span class="nav-emoji">🌍</span> Showcase',
200-
position: "left",
145+
label: "All Blogs",
146+
to: "/",
147+
activeBaseRegex: "/",
201148
},
202149
{
203-
to: "#",
204-
html: '<span class="nav-emoji">🤝</span> Community',
205-
position: "left",
150+
label: "Authors",
151+
to: "/authors/",
152+
activeBaseRegex: "/authors/",
206153
},
207154
{
208-
to: "#",
209-
html: '<span class="nav-emoji">💰</span> Donate',
155+
label: "🏷️ Blog Tags",
156+
to: "/tags/",
157+
activeBaseRegex: "/tags/",
210158
},
211159
{
212-
to: "#",
213-
html: '<span class="nav-emoji">📰</span> Blog',
214-
},
215-
{
216-
to: "#",
217-
html: '<span class="nav-emoji">💡</span> Feature Requests',
160+
type: "search",
161+
position: "right",
218162
},
219163
{
220-
type: "search",
164+
href: "https://github.com/codeharborhub",
221165
position: "right",
166+
className: "header-github-link",
167+
"aria-label": "GitHub repository",
222168
},
223-
// {
224-
// href: "https://github.com/codeharborhub/codeharborhub",
225-
// position: "right",
226-
// className: "header-github-link",
227-
// "aria-label": "GitHub repository",
228-
// },
229-
// {
230-
// href: "https://www.codeharborhub.live/register",
231-
// position: "right",
232-
// className: "header-signup-link",
233-
// "aria-label": "Auth",
234-
// label: "Auth",
235-
// },
236169
],
237170
// hideOnScroll: true,
238171
},

src/theme/BlogLayout/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function BlogLayout(props) {
99

1010
return (
1111
<Layout {...layoutProps}>
12-
<div className='container max-w-7xl px-4 py-4 mx-auto mt-4'>
12+
<div className='max-w-7xl px-8 py-8 mx-auto mt-4'>
1313
<div className='row'>
1414
<BlogSidebar sidebar={sidebar} hideOnDesktop />
1515
<main

src/theme/BlogListPage/BlogListPage.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
&__description {
6161
font-size: 1rem;
62-
padding: 0.5rem;
62+
padding: 0.5rem 0.2rem;
6363

6464
@media (min-width: 1024px) {
6565
font-size: 1.125rem;

0 commit comments

Comments
 (0)