Sfoglia il codice sorgente

💄 UI: add new icon

chenshuai2144 5 anni fa
parent
commit
64b572a727
4 ha cambiato i file con 22 aggiunte e 1 eliminazioni
  1. 17 0
      .github/workflows/preview.yml
  2. BIN
      public/favicon.ico
  3. BIN
      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

BIN
public/favicon.ico


BIN
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>