Skip to content

Commit

Permalink
Replace CDN with local file for website logo.
Browse files Browse the repository at this point in the history
  • Loading branch information
SleepyHeeead committed Sep 9, 2024
1 parent b02b1ea commit b7dd2bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func run() {

// static files
router.LoadHTMLGlob("public/*.html")
router.StaticFile("/logo.png", "public/logo.png")

router.GET("/", func(context *gin.Context) {
context.HTML(http.StatusOK, "index.html", gin.H{
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<el-header></el-header>
<el-main>
<div :class="[isPc ? 'body-center body-width-pc' : 'body-center body-width-mb']">
<img width="300" src="https://cdn.jsdelivr.net/gh/CareyWang/MyUrls@master/public/logo.png" @click="goToGayHub">
<img width="300" src="/logo.png" @click="goToGayHub">
<el-input ref="long" v-model="longUrl" size="medium" @keyup.enter.native="enterToDoShort">
<el-button slot="append" icon="el-icon-magic-stick" @click="doShort" :loading="loading"></el-button>
</el-input>
Expand Down

0 comments on commit b7dd2bb

Please sign in to comment.