Fix asset URLs to respect baseurl (#43)

This commit is contained in:
guyeisenkot
2025-07-22 19:49:25 +03:00
committed by GitHub
parent 6ac8c10a84
commit 006df7d932
2 changed files with 9 additions and 7 deletions

View File

@@ -22,13 +22,13 @@
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
<meta name="description" content="{{ page.description | default: site.description }}">
<link rel="icon" type="image/x-icon" href="/favicon.png">
<link rel="icon" type="image/x-icon" href="{{ '/favicon.png' | relative_url }}">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/prism/prism.css' | relative_url }}">
<link rel="manifest" href="/manifest.json">
<link rel="manifest" href="{{ '/manifest.json' | relative_url }}">
<link rel="canonical" href="{{ site.url }}{{ page.url }}">
<!-- Google tag (gtag.js) -->
@@ -85,8 +85,8 @@
</div>
<a href="https://baz.co" class="logo" target="_blank" rel="noopener noreferrer" aria-label="Visit Baz Technologies homepage">
<div class="logo-icon">
<img src="/assets/images/baz-light.svg" alt="Baz Technologies Logo" class="logo-light" width="80" height="80">
<img src="/assets/images/baz-dark.svg" alt="Baz Technologies Logo" class="logo-dark" width="80" height="80"
<img src="{{ '/assets/images/baz-light.svg' | relative_url }}" alt="Baz Technologies Logo" class="logo-light" width="80" height="80">
<img src="{{ '/assets/images/baz-dark.svg' | relative_url }}" alt="Baz Technologies Logo" class="logo-dark" width="80" height="80"
style="display: none;">
</div>
</a>

View File

@@ -1,20 +1,22 @@
---
---
{
"name": "Awesome Reviewers",
"short_name": "Reviewers",
"description": "AI-powered code review prompts",
"start_url": "/",
"start_url": "{{ '/' | relative_url }}",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#444ac2",
"icons": [
{
"src": "/assets/images/ar-web-192.png",
"src": "{{ '/assets/images/ar-web-192.png' | relative_url }}",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "/assets/images/ar-web-512.png",
"src": "{{ '/assets/images/ar-web-512.png' | relative_url }}",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable any"