Skip to content

Commit cc9f3fa

Browse files
committed
fix: config change
1 parent 9679dd1 commit cc9f3fa

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

blog/2021-08-26-welcome/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
slug: my-first-docusaurus-app
33
title: My First Docusaurus App
44
authors: [basit]
5-
tags: [docusaurus, static-site, github-pages, nodejs]
5+
tags: [docusaurus, react, github-pages, nodejs]
6+
67
---
78

89
# My First Docusaurus App
@@ -89,6 +90,7 @@ Here are some of the key things I learned during this process:
8990
Docusaurus is a great tool for creating developer-friendly documentation or static sites.
9091
Automating deployments using GitHub Actions saves a lot of time and effort.
9192
Hosting on GitHub Pages is seamless and perfect for open-source projects.
92-
🌐 Check It Out!
93+
94+
## 🌐 Check It Out!
9395

9496
You can check out my live site here: [Basit Jamil](https://chbasitgill.github.io/basitjamil/).

blog/authors.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@ basit:
55
image_url: https://github.com/CHBASITGILL.png
66
page: true
77
socials:
8-
facebook: chbasitgill1
9-
instagram: chbasitgill
108
github: chbasitgill
11-
linkedin: basitjamil

docusaurus.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ const config: Config = {
1010
favicon: "img/favicon.ico",
1111

1212
// Set the production url of your site here
13-
url: "https://chbasitgill.github.io/",
13+
14+
url: process.env.IS_LOCAL ? "/" : "https://chbasitgill.github.io/",
15+
baseUrl: process.env.IS_LOCAL ? "/" : "/basitjamil/",
16+
1417
// Set the /<baseUrl>/ pathname under which your site is served
1518
// For GitHub pages deployment, it is often '/<projectName>/'
16-
baseUrl: "/basitjamil/",
1719

1820
// GitHub pages deployment config.
1921
// If you aren't using GitHub pages, you don't need these.

0 commit comments

Comments
 (0)