Change base url based on the environment:

```
--- a/layouts/partials/sections-definition.html
+++ b/layouts/partials/sections-definition.html
@@ -1,3 +1,3 @@
-          <li><a href="https://blog.kazu634.com/labs/">Labs</a></li>
-          <li><a href="https://blog.kazu634.com/quotes/">Quotes</a></li>
-          <li><a href="https://blog.kazu634.com/travel/">Travel</a></li>
+          <li><a href="{{ .Site.BaseURL }}/labs/">Labs</a></li>
+          <li><a href="{{ .Site.BaseURL }}/quotes/">Quotes</a></li>
+          <li><a href="{{ .Site.BaseURL }}/travel/">Travel</a></li>
```
This commit is contained in:
Kazuhiro MUSASHI 2019-05-04 21:42:00 +08:00
parent d24089860d
commit 5ec3b74ae9
1 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
<li><a href="https://blog.kazu634.com/labs/">Labs</a></li>
<li><a href="https://blog.kazu634.com/quotes/">Quotes</a></li>
<li><a href="https://blog.kazu634.com/travel/">Travel</a></li>
<li><a href="{{ .Site.BaseURL }}/labs/">Labs</a></li>
<li><a href="{{ .Site.BaseURL }}/quotes/">Quotes</a></li>
<li><a href="{{ .Site.BaseURL }}/travel/">Travel</a></li>