Skip to content

Commit 6f0fbe1

Browse files
authored
Merge pull request #22 from LibreSign/bugfix/base-url
Add baseUrl
2 parents a5fdbd3 + d8dfaa4 commit 6f0fbe1

12 files changed

+58
-58
lines changed

config.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
return [
44
'production' => getenv('APP_ENV') === 'production',
5-
'baseUrl' => '',
5+
'baseUrl' => '/',
66
'title' => 'LibreSign - Electronic signature of digital documents',
77
'description' => 'Electronic signature of digital documents',
88
'collections' => [

source/_layouts/footer.blade.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<footer class="ud-footer wow fadeInUp" data-wow-delay=".15s">
22
<div class="shape shape-1">
3-
<img src="assets/images/footer/shape-1.svg" alt="shape" />
3+
<img src="{{ $page->baseUrl }}assets/images/footer/shape-1.svg" alt="shape" />
44
</div>
55

66
<div class="shape shape-2">
7-
<img src="assets/images/footer/shape-2.svg" alt="shape" />
7+
<img src="{{ $page->baseUrl }}assets/images/footer/shape-2.svg" alt="shape" />
88
</div>
99

1010
<div class="shape shape-3">
11-
<img src="assets/images/footer/shape-3.svg" alt="shape" />
11+
<img src="{{ $page->baseUrl }}assets/images/footer/shape-3.svg" alt="shape" />
1212
</div>
1313

1414
<div class="ud-footer-widgets">
@@ -17,7 +17,7 @@
1717
<div class="col-xl-3 col-lg-4 col-md-6">
1818
<div class="ud-widget">
1919
<a href="index.html" class="ud-footer-logo">
20-
<img src="assets/images/logo/logo.png" alt="logo" />
20+
<img src="{{ $page->baseUrl }}assets/images/logo/logo.png" alt="logo" />
2121
</a>
2222
<p class="ud-widget-desc">
2323
We create digital experiences for brands and companies by

source/_layouts/main.blade.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@
3030
<!--====== Favicon Icon ======-->
3131
<link
3232
rel="shortcut icon"
33-
href="assets/images/favicon.svg"
33+
href="{{ $page->baseUrl }}assets/images/favicon.svg"
3434
type="image/svg"
3535
/>
3636

3737
<!-- ===== All CSS files ===== -->
38-
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
39-
<link rel="stylesheet" href="assets/css/animate.css" />
40-
<link rel="stylesheet" href="assets/css/lineicons.css" />
41-
<link rel="stylesheet" href="assets/css/ud-styles.css" />
42-
<link rel="stylesheet" href="{{ mix('css/main.css', 'assets/build') }}">
38+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/bootstrap.min.css" />
39+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/animate.css" />
40+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/lineicons.css" />
41+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/ud-styles.css" />
42+
<link rel="stylesheet" href="{{ $page->baseUrl }}{{ mix('css/main.css', 'assets/build') }}">
4343
<!-- Primary Meta Tags -->
44-
<script defer src="{{ mix('js/main.js', 'assets/build') }}"></script>
44+
<script defer src="{{ $page->baseUrl }}{{ mix('js/main.js', 'assets/build') }}"></script>
4545
</head>
4646
<body>
4747
@yield('body')

source/assets/js/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
// === logo change
1717
if (ud_header.classList.contains("sticky")) {
18-
logo.src = "assets/images/logo/logo-2.png";
18+
logo.src = "/assets/images/logo/logo-2.png";
1919
} else {
20-
logo.src = "assets/images/logo/logo.png";
20+
logo.src = "/assets/images/logo/logo.png";
2121
}
2222

2323
// show or hide the back-top-top button

source/html_pages/404.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
<!--====== Favicon Icon ======-->
2020
<link
2121
rel="shortcut icon"
22-
href="assets/images/favicon.svg"
22+
href="{{ $page->baseUrl }}assets/images/favicon.svg"
2323
type="image/svg"
2424
/>
2525

2626
<!-- ===== All CSS files ===== -->
27-
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
28-
<link rel="stylesheet" href="assets/css/animate.css" />
29-
<link rel="stylesheet" href="assets/css/lineicons.css" />
30-
<link rel="stylesheet" href="assets/css/ud-styles.css" />
27+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/bootstrap.min.css" />
28+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/animate.css" />
29+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/lineicons.css" />
30+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/ud-styles.css" />
3131
</head>
3232
<body>
3333
<!-- ====== Header Start ====== -->

source/html_pages/about.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
<!--====== Favicon Icon ======-->
2020
<link
2121
rel="shortcut icon"
22-
href="assets/images/favicon.svg"
22+
href="{{ $page->baseUrl }}assets/images/favicon.svg"
2323
type="image/svg"
2424
/>
2525

2626
<!-- ===== All CSS files ===== -->
27-
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
28-
<link rel="stylesheet" href="assets/css/animate.css" />
29-
<link rel="stylesheet" href="assets/css/lineicons.css" />
30-
<link rel="stylesheet" href="assets/css/ud-styles.css" />
27+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/bootstrap.min.css" />
28+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/animate.css" />
29+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/lineicons.css" />
30+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/ud-styles.css" />
3131
</head>
3232
<body>
3333
<!-- ====== Header Start ====== -->

source/html_pages/blog-details.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
<!--====== Favicon Icon ======-->
2020
<link
2121
rel="shortcut icon"
22-
href="assets/images/favicon.svg"
22+
href="{{ $page->baseUrl }}assets/images/favicon.svg"
2323
type="image/svg"
2424
/>
2525

2626
<!-- ===== All CSS files ===== -->
27-
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
28-
<link rel="stylesheet" href="assets/css/animate.css" />
29-
<link rel="stylesheet" href="assets/css/lineicons.css" />
30-
<link rel="stylesheet" href="assets/css/ud-styles.css" />
27+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/bootstrap.min.css" />
28+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/animate.css" />
29+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/lineicons.css" />
30+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/ud-styles.css" />
3131
</head>
3232
<body>
3333
<!-- ====== Header Start ====== -->

source/html_pages/blog.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
<!--====== Favicon Icon ======-->
2020
<link
2121
rel="shortcut icon"
22-
href="assets/images/favicon.svg"
22+
href="{{ $page->baseUrl }}assets/images/favicon.svg"
2323
type="image/svg"
2424
/>
2525

2626
<!-- ===== All CSS files ===== -->
27-
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
28-
<link rel="stylesheet" href="assets/css/animate.css" />
29-
<link rel="stylesheet" href="assets/css/lineicons.css" />
30-
<link rel="stylesheet" href="assets/css/ud-styles.css" />
27+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/bootstrap.min.css" />
28+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/animate.css" />
29+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/lineicons.css" />
30+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/ud-styles.css" />
3131
</head>
3232
<body>
3333
<!-- ====== Header Start ====== -->

source/html_pages/contact.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
<!--====== Favicon Icon ======-->
2020
<link
2121
rel="shortcut icon"
22-
href="assets/images/favicon.svg"
22+
href="{{ $page->baseUrl }}assets/images/favicon.svg"
2323
type="image/svg"
2424
/>
2525

2626
<!-- ===== All CSS files ===== -->
27-
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
28-
<link rel="stylesheet" href="assets/css/animate.css" />
29-
<link rel="stylesheet" href="assets/css/lineicons.css" />
30-
<link rel="stylesheet" href="assets/css/ud-styles.css" />
27+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/bootstrap.min.css" />
28+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/animate.css" />
29+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/lineicons.css" />
30+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/ud-styles.css" />
3131
</head>
3232
<body>
3333
<!-- ====== Header Start ====== -->

source/html_pages/login.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
<!--====== Favicon Icon ======-->
2020
<link
2121
rel="shortcut icon"
22-
href="assets/images/favicon.svg"
22+
href="{{ $page->baseUrl }}assets/images/favicon.svg"
2323
type="image/svg"
2424
/>
2525

2626
<!-- ===== All CSS files ===== -->
27-
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
28-
<link rel="stylesheet" href="assets/css/animate.css" />
29-
<link rel="stylesheet" href="assets/css/lineicons.css" />
30-
<link rel="stylesheet" href="assets/css/ud-styles.css" />
27+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/bootstrap.min.css" />
28+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/animate.css" />
29+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/lineicons.css" />
30+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/ud-styles.css" />
3131
</head>
3232
<body>
3333
<!-- ====== Header Start ====== -->

source/html_pages/pricing.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
<!--====== Favicon Icon ======-->
2020
<link
2121
rel="shortcut icon"
22-
href="assets/images/favicon.svg"
22+
href="{{ $page->baseUrl }}assets/images/favicon.svg"
2323
type="image/svg"
2424
/>
2525

2626
<!-- ===== All CSS files ===== -->
27-
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
28-
<link rel="stylesheet" href="assets/css/animate.css" />
29-
<link rel="stylesheet" href="assets/css/lineicons.css" />
30-
<link rel="stylesheet" href="assets/css/ud-styles.css" />
27+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/bootstrap.min.css" />
28+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/animate.css" />
29+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/lineicons.css" />
30+
<link rel="stylesheet" href="{{ $page->baseUrl }}assets/css/ud-styles.css" />
3131
</head>
3232
<body>
3333
<!-- ====== Header Start ====== -->

source/index.blade.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="col-lg-12">
1010
<nav class="navbar navbar-expand-lg">
1111
<a class="navbar-brand" href="index.html">
12-
<img src="assets/images/logo/logo.png" alt="Logo" />
12+
<img src="{{ $page->baseUrl }}assets/images/logo/logo.png" alt="Logo" />
1313
</a>
1414
<button class="navbar-toggler">
1515
<span class="toggler-icon"> </span>
@@ -70,14 +70,14 @@
7070
</ul>
7171
</div>
7272
<div class="ud-hero-image wow fadeInUp" data-wow-delay=".25s">
73-
<img src="assets/images/hero/print_main_screen.png" alt="print_main_screen" />
73+
<img src="{{ $page->baseUrl }}assets/images/hero/print_main_screen.png" alt="print_main_screen" />
7474
<img
75-
src="assets/images/hero/dotted-shape.svg"
75+
src="{{ $page->baseUrl }}assets/images/hero/dotted-shape.svg"
7676
alt="shape"
7777
class="shape shape-1"
7878
/>
7979
<img
80-
src="assets/images/hero/dotted-shape.svg"
80+
src="{{ $page->baseUrl }}assets/images/hero/dotted-shape.svg"
8181
alt="shape"
8282
class="shape shape-2"
8383
/>
@@ -199,7 +199,7 @@ class="shape shape-2"
199199
</div>
200200
</div>
201201
<div class="ud-about-image">
202-
<img src="assets/images/about/about-image.svg" alt="about-image" />
202+
<img src="{{ $page->baseUrl }}assets/images/about/about-image.svg" alt="about-image" />
203203
</div>
204204
</div>
205205
</div>
@@ -310,7 +310,7 @@ class="ud-single-pricing last-item wow fadeInUp"
310310
<!-- ====== FAQ Start ====== -->
311311
<section id="faq" class="ud-faq">
312312
<div class="shape">
313-
<img src="assets/images/faq/shape.svg" alt="shape" />
313+
<img src="{{ $page->baseUrl }}assets/images/faq/shape.svg" alt="shape" />
314314
</div>
315315
<div class="container">
316316
<div class="row">
@@ -555,9 +555,9 @@ class="ud-contact-form-wrapper wow fadeInUp"
555555
<!-- ====== Back To Top End ====== -->
556556

557557
<!-- ====== All Javascript Files ====== -->
558-
<script src="assets/js/bootstrap.bundle.min.js"></script>
559-
<script src="assets/js/wow.min.js"></script>
560-
<script src="assets/js/main.js"></script>
558+
<script src="{{ $page->baseUrl }}assets/js/bootstrap.bundle.min.js"></script>
559+
<script src="{{ $page->baseUrl }}assets/js/wow.min.js"></script>
560+
<script src="{{ $page->baseUrl }}assets/js/main.js"></script>
561561
<script>
562562
document.getElementById('back-to-top').onclick = function(e) {
563563
e.preventDefault()

0 commit comments

Comments
 (0)