Skip to content

Commit

Permalink
modify to AbsURL
Browse files Browse the repository at this point in the history
  • Loading branch information
sunwei committed Nov 21, 2024
1 parent bc6809e commit ac97e1a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="UTF-8">
<title>{{ .Site.Title }}</title>

<link href="{{ "css/clean.css" | relURL }}" rel="stylesheet" type="text/css">
<link href="{{ "img/fav.png" | relURL }}" rel="shortcut icon" type="image/x-icon">
<link href="{{ "css/clean.css" | absURL }}" rel="stylesheet" type="text/css">
<link href="{{ "img/fav.png" | absURL }}" rel="shortcut icon" type="image/x-icon">
<link href="{{ .Permalink }}" rel="canonical">

</head>
Expand All @@ -20,7 +20,7 @@
<!-- Toast Element -->
<div id="toast" class="toast">Coming soon...</div>

<script src="{{ "js/main.js" | relURL }}" type="application/javascript"></script>
<script src="{{ "js/main.js" | absURL }}" type="application/javascript"></script>

</body>
</html>
4 changes: 2 additions & 2 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<main class="main-wrapper">
<header class="position-relative">
<div class="background-image-container">
<img src="{{ "img/banner-bg.svg" | relURL }}" loading="eager" alt="" class="background-cover-image">
<img src="{{ "img/banner-bg.svg" | absURL }}" loading="eager" alt="" class="background-cover-image">
</div>
<div class="transparent-navbar_spacer"></div>
<div class="page-padding">
Expand Down Expand Up @@ -158,7 +158,7 @@ <h3 class="paragraph-xlarge is-medium">{{ $title }}</h3>
</div>
</div>
<div class="container-xlarge-background border-radius-huge-corner border-radius-xlarge background-black">
<img src="{{ "img/how-to-bg.webp" | relURL }}" alt="" class="background-cover-image">
<img src="{{ "img/how-to-bg.webp" | absURL }}" alt="" class="background-cover-image">
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class="flex-vertical-left flex-gap-1-5rem is-center-tablet"><a
href="/" aria-current="page" class="logo-medium w-inline-block">
<div class="synthesia-logo-wrapper">
<img style="width: 128px;" src="{{ "img/logo.svg" | relURL }}" alt="" class="height-inherit"></div>
<img style="width: 128px;" src="{{ "img/logo.svg" | absURL }}" alt="" class="height-inherit"></div>
</a>

<div class="max-width-37rem">
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="navbar_logo-dark">
<a href="/" aria-current="page" class="logo-medium w-inline-block">
<div class="logo-wrapper">
<img width="auto" alt="{{ .Site.Title }} Logo" src="{{ "img/logo.svg" | relURL }}" loading="eager" class="height-inherit">
<img width="auto" alt="{{ .Site.Title }} Logo" src="{{ "img/logo.svg" | absURL }}" loading="eager" class="height-inherit">
</div>
</a>
</div>
Expand Down

0 comments on commit ac97e1a

Please sign in to comment.