Skip to content

Commit ddc70b1

Browse files
committed
base 路径设置为 ./
1 parent c7e4f71 commit ddc70b1

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

‎.github/workflows/build-and-deploy.yml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ jobs:
4343
- name: Publish
4444
run: dotnet publish ${{ env.Solution_Name }} -c:Release -o:public
4545

46-
# Changes the base-tag in index.html to match GitHub Pages repository subdirectory
47-
- name: Change index.html base-tag
48-
run: sed -i 's/<base href=\/>/<base href=\/SharpScript\/>/g' public/wwwroot/index.html
49-
5046
# Add .nojekyll file to tell GitHub pages to not treat this as a Jekyll project. (Allow files and folders starting with an underscore)
5147
- name: Add .nojekyll file
5248
run: touch public/wwwroot/.nojekyll

‎SharpScript/Site/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="description" content=".NET language playground on WASM" />
88
<meta name="theme-color" content="#f3f3f3" media="(prefers-color-scheme: light)" />
99
<meta name="theme-color" content="#202020" media="(prefers-color-scheme: dark)" />
10-
<base href="/" />
10+
<base href="./" />
1111
<link rel="icon" type="image/png" sizes="50x50"
1212
href="https://cdn.jsdelivr.net/gh/wherewhere/SharpScript@main/SharpScript/Assets/StoreLogo.scale-100.png" />
1313
<link rel="icon" type="image/png" sizes="63x63"

0 commit comments

Comments
 (0)