diff options
| author | Alexandre Vicenzi <vicenzi.alexandre@gmail.com> | 2020-06-15 20:00:52 +0200 |
|---|---|---|
| committer | Alexandre Vicenzi <vicenzi.alexandre@gmail.com> | 2020-06-15 20:00:52 +0200 |
| commit | eb2b29cba056000810cd8b90fd4c741a2183a512 (patch) | |
| tree | 77a97a10cb3ba2d1e960cee8ddbdaeffbb7487d5 /layouts/partials | |
| parent | 7a4549e0e6aac8e54edf477e9dc7209b8ee63501 (diff) | |
Use relative URL if possible
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/sidebar.html | 4 |
1 files changed, 2 insertions, 2 deletions
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> |
