Forráskód Böngészése

Updated URLs to constants in Hero

Alicia Sykes 2 éve
szülő
commit
0f4d9e5c20
1 módosított fájl, 3 hozzáadás és 2 törlés
  1. 3 2
      src/lib/Hero.svelte

+ 3 - 2
src/lib/Hero.svelte

@@ -1,5 +1,6 @@
 <script>
     import Icon from '$lib/Icon.svelte';
+    import { gitHubRepo } from '$src/constants'; 
 </script>
 
 <div class="hero">
@@ -9,11 +10,11 @@
   </header>
 
   <section class="cta">
-    <a href="https://github.com/Lissy93/portainer-templates">
+    <a href={gitHubRepo}>
       <Icon name="github" width="26px" height="26px" />
       View on GitHub
     </a>
-    <a href="https://github.com/Lissy93/portainer-templates">
+    <a href="/usage">
       <Icon name="portainer" width="26px" height="26px" />
       Install on Portainer
     </a>