diff options
author | Bing-Sheng Chen <gundamew@gmail.com> | 2018-07-18 18:53:34 +0300 |
---|---|---|
committer | Bing-Sheng Chen <gundamew@gmail.com> | 2018-07-18 18:53:34 +0300 |
commit | 64a46bcc8ee4e9624f8205112cdc7496d28d35e6 (patch) | |
tree | 4f09b601069f49681d0db4ae07ae6f1492645dbc | |
parent | e93b26230f0064aae6f484e09ce515dbfce89441 (diff) |
Remove all leading slashes from assets paths
Fix: https://github.com/gohugoio/hugoThemes/issues/380#issuecomment-405656916
-rw-r--r-- | layouts/_default/social-links.html | 12 | ||||
-rw-r--r-- | layouts/partials/footer.html | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/layouts/_default/social-links.html b/layouts/_default/social-links.html index eaf1064..044feb6 100644 --- a/layouts/_default/social-links.html +++ b/layouts/_default/social-links.html @@ -1,32 +1,32 @@ <div class="social-media-links"> {{ with .Site.Params.github }} <a class="social-media" href="https://github.com/{{ . }}"> - <img src="{{ "/img/github.svg" | absURL }}" alt="github"> + <img src="{{ "img/github.svg" | absURL }}" alt="github"> </a> {{ end }} {{ with .Site.Params.linkedin }} <a class="social-media" href="https://www.linkedin.com/in/{{ . }}"> - <img src="{{ "/img/linkedin.svg" | absURL }}" alt="linkedin"> + <img src="{{ "img/linkedin.svg" | absURL }}" alt="linkedin"> </a> {{ end }} {{ with .Site.Params.medium }} <a class="social-media" href="https://medium.com/{{ . }}"> - <img src="{{ "/img/medium.svg" | absURL }}" alt="medium"> + <img src="{{ "img/medium.svg" | absURL }}" alt="medium"> </a> {{ end }} {{ with .Site.Params.twitter }} <a class="social-media" href="https://twitter.com/{{ . }}"> - <img src="{{ "/img/twitter.svg" | absURL }}" alt="twitter"> + <img src="{{ "img/twitter.svg" | absURL }}" alt="twitter"> </a> {{ end }} {{ with .Site.Params.facebook }} <a class="social-media" href="https://facebook.com/{{ . }}"> - <img src="{{ "/img/facebook.svg" | absURL }}" alt="facebook"> + <img src="{{ "img/facebook.svg" | absURL }}" alt="facebook"> </a> {{ end }} {{ with .Site.Params.instagram }} <a class="social-media" href="https://instagram.com/{{ . }}"> - <img src="{{ "/img/instagram.svg" | absURL }}" alt="instagram"> + <img src="{{ "img/instagram.svg" | absURL }}" alt="instagram"> </a> {{ end }} </div> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 5513f8b..a5cd25a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,5 @@ <footer> <span class="footer-text">Powered by <a href="https://gohugo.io/" target="_blank">Hugo</a></span> </footer> -<script src="{{ "/js/highlight.pack.js" | absURL }}"></script> +<script src="{{ "js/highlight.pack.js" | absURL }}"></script> <script>hljs.initHighlightingOnLoad();</script> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index af417f7..8d6d83d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -3,7 +3,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>{{ with .Page.Title }}{{ . }} - {{ end }}{{ .Site.Title }}</title> <base href="{{ .Site.BaseURL }}"> - <link rel="stylesheet" href="{{ "/css/normalize.min.css" | absURL }}"> - <link rel="stylesheet" href="{{ "/css/solarized-light.min.css" | absURL }}"> - <link rel="stylesheet" href="{{ "/css/style.css" | absURL }}"> + <link rel="stylesheet" href="{{ "css/normalize.min.css" | absURL }}"> + <link rel="stylesheet" href="{{ "css/solarized-light.min.css" | absURL }}"> + <link rel="stylesheet" href="{{ "css/style.css" | absURL }}"> </head> |