瀏覽代碼

💄 UI: add new icon

chenshuai2144 5 年之前
父節點
當前提交
64b572a727
共有 4 個文件被更改,包括 22 次插入1 次删除
  1. 17 0
      .github/workflows/preview.yml
  2. 二進制
      public/favicon.ico
  3. 二進制
      public/favicon.png
  4. 5 1
      src/pages/document.ejs

+ 17 - 0
.github/workflows/preview.yml

@@ -0,0 +1,17 @@
+name: 🔂 Surge PR Preview
+
+on: [push]
+
+jobs:
+  preview:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: afc163/surge-preview@v1
+        with:
+          surge_token: ${{ secrets.SURGE_TOKEN }}
+          github_token: ${{ secrets.gatsby --help }}
+          build: |
+            yarn install
+            npm run build
+          dist: dist

二進制
public/favicon.ico


二進制
public/favicon.png


+ 5 - 1
src/pages/document.ejs

@@ -22,7 +22,11 @@
       content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
     />
     <title>Ant Design Pro</title>
-    <link rel="icon" href="<%= context.config.publicPath +'favicon.png'%>" type="image/x-icon" />
+    <link
+      rel="icon"
+      href="https://gw.alipayobjects.com/zos/antfincdn/r3d46eFZ7D/method-draw-image.ico"
+      type="image/x-icon"
+    />
   </head>
   <body>
     <noscript>Out-of-the-box mid-stage front/design solution!</noscript>