Skip to content

Commit

Permalink
Fix: Fix base url not found resource issue
Browse files Browse the repository at this point in the history
  • Loading branch information
whats2000 committed Aug 21, 2024
1 parent ae755b7 commit 7b87bcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ jobs:
with:
html_path: ${{ env.PUBLISH_DIR }}/index.html
base_href: /PearlCalculatorBlazor/

- name: Change base-tag in index.html from / to PearlCalculatorBlazor
run: |
sed -i 's|<base href="/"|<base href="/PearlCalculatorBlazor/"|' ${{ env.PUBLISH_DIR }}/index.html

- name: Fix service-worker-assets.js hashes
working-directory: bin/Release/net5.0/publish/wwwroot
Expand Down
10 changes: 5 additions & 5 deletions wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html>

<head>
<base href="/" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Pearl Calculator</title>
Expand All @@ -13,22 +14,21 @@
<!-- Open Graph meta tags for better social media sharing -->
<meta property="og:title" content="Pearl Calculator" />
<meta property="og:description" content="A precise tool for calculating the trajectory and landing points of Minecraft pearl cannons." />
<meta property="og:image" content="/banner.png" />
<meta property="og:image" content="banner.png" />
<meta property="og:url" content="https://whats2000.github.io/PearlCalculatorBlazor/" />
<meta property="og:type" content="website" />

<!-- Twitter meta tags for Twitter Card support -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Pearl Calculator" />
<meta name="twitter:description" content="A precise tool for calculating the trajectory and landing points of Minecraft pearl cannons." />
<meta name="twitter:image" content="/banner.png" />
<meta name="twitter:image" content="banner.png" />

<base href="/" />
<link href="css/app.css" rel="stylesheet" />
<link href="PearlCalculatorBlazor.styles.css?v=2021061516" rel="stylesheet" />
<link href="manifest.json" rel="manifest" />
<link href="/favicon.ico" rel="shortcut" />
<link href="/favicon.ico" rel="apple-touch-icon" sizes="512x512" />
<link href="favicon.ico" rel="shortcut" />
<link href="favicon.ico" rel="apple-touch-icon" sizes="512x512" />
<link href="_content/AntDesign/css/ant-design-blazor.css" rel="stylesheet" />
</head>

Expand Down

0 comments on commit 7b87bcd

Please sign in to comment.