diff options
author | Alexandre Vicenzi <vicenzi.alexandre@gmail.com> | 2020-06-15 21:00:52 +0300 |
---|---|---|
committer | Alexandre Vicenzi <vicenzi.alexandre@gmail.com> | 2020-06-15 21:00:52 +0300 |
commit | eb2b29cba056000810cd8b90fd4c741a2183a512 (patch) | |
tree | 77a97a10cb3ba2d1e960cee8ddbdaeffbb7487d5 | |
parent | 7a4549e0e6aac8e54edf477e9dc7209b8ee63501 (diff) |
Use relative URL if possible
-rw-r--r-- | layouts/_default/baseof.html | 10 | ||||
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 194b19a..6de94f0 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,21 +17,21 @@ <link type="text/css" rel="stylesheet" - href="{{ .Site.BaseURL }}css/print.css" + href="{{ `css/print.css` | relURL }}" media="print"> <link type="text/css" rel="stylesheet" - href="{{ .Site.BaseURL }}css/poole.css"> + href="{{ `css/poole.css` | relURL }}"> <link type="text/css" rel="stylesheet" - href="{{ .Site.BaseURL }}css/hyde.css"> + href="{{ `css/hyde.css` | relURL }}"> {{ partial "theme-color.html" . }} {{ range $.Site.Params.customCss -}} - <link type="text/css" rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}"> + <link type="text/css" rel="stylesheet" href="{{ . | relURL }}"> {{- end}} <link rel="stylesheet" @@ -67,7 +67,7 @@ crossorigin="anonymous"></script> {{ range $.Site.Params.customJs -}} - <script src="{{ $.Site.BaseURL }}{{ . }}"></script> + <script src="{{ . | relURL }}"></script> {{- end}} {{ template "_internal/google_analytics_async.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 01b8253..3fc858b 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -19,7 +19,7 @@ {{ if .Truncated }} <div class="read-more-link"> - <a href="{{ .RelPermalink }}">Read More</a> + <a href="{{ .Permalink }}">Read More</a> </div> {{ end }} </article> diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 5ce773f..8384905 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -8,7 +8,7 @@ {{ else }} {{ with .Site.Params.profilePicture }} <div class="author-image"> - <img src="{{ $.Site.BaseURL }}{{ . }}" class="img-circle img-headshot center" alt="Profile Picture"> + <img src="{{ . | relURL }}" class="img-circle img-headshot center" alt="Profile Picture"> </div> {{ end }} {{ end }} @@ -27,7 +27,7 @@ </li> {{ range .Site.Menus.main -}} <li> - <a href="{{ .URL }}"> {{ .Name }} </a> + <a href="{{ .URL }}">{{ .Name }}</a> </li> {{- end }} </ul> |