Skip to content

Commit 902d8c8

Browse files
committed
fix static URLs
1 parent 94c959a commit 902d8c8

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

themes/base-theme/layouts/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</ul>
1313

1414
<blockquote>
15-
{{ ":label: If you are interested in a specific topic, please use" | .RenderString }} <a href="/tags">this page</a>.
15+
{{ ":label: If you are interested in a specific topic, please use" | .RenderString }} <a href="{{ .Site.BaseURL }}/tags">this page</a>.
1616
</blockquote>
1717
</section>
1818
{{ end }}

themes/base-theme/layouts/now/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h2 style="margin-bottom: 0;">{{ .Title }}</h2>
99
{{ .Content}}
1010
</div>
1111
<div style="display: flex; align-content: center; justify-content: left;">
12-
<img src="/logo.png" style="width: 300px;height: auto;"/>
12+
<img src="{{ .Site.BaseURL }}/logo.png" style="width: 300px;height: auto;"/>
1313
</div>
1414
</div>
1515
<blockquote>

themes/base-theme/layouts/partials/head.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1818
<link href="https://fonts.googleapis.com/css2?family=Domine:wght@600&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
1919

20-
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
21-
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
22-
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
23-
<link rel="manifest" href="/site.webmanifest">
20+
<link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.BaseURL }}/apple-touch-icon.png">
21+
<link rel="icon" type="image/png" sizes="32x32" href="{{ .Site.BaseURL }}/favicon-32x32.png">
22+
<link rel="icon" type="image/png" sizes="16x16" href="{{ .Site.BaseURL }}/favicon-16x16.png">
23+
<link rel="manifest" href="{{ .Site.BaseURL }}/site.webmanifest">

themes/base-theme/layouts/partials/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<ul>
1111
{{ range $.Site.Menus.nav }}
12-
<li><a class="nav-link" style="text-decoration: none; cursor: pointer;" data-scroll href="{{ .PageRef }}">{{ .Name }}</a></li>
12+
<li><a class="nav-link" style="text-decoration: none; cursor: pointer;" data-scroll href="{{ .Site.BaseURL }}/{{ .PageRef }}">{{ .Name }}</a></li>
1313
{{ end }}
1414
</ul>
1515
</nav>

themes/base-theme/layouts/posts/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</ul>
1313

1414
<blockquote>
15-
{{ ":label: If you are interested in a specific topic, please use" | .RenderString }} <a href="/tags">this page</a>.
15+
{{ ":label: If you are interested in a specific topic, please use" | .RenderString }} <a href="{{ .Site.BaseURL }}/tags">this page</a>.
1616
</blockquote>
1717
</section>
1818
{{ end }}

0 commit comments

Comments
 (0)