Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jakewies/hugo-theme-codex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkentnek <itaqmail@gmail.com>2020-07-04 20:59:01 +0300
committerkentnek <itaqmail@gmail.com>2020-07-04 21:18:37 +0300
commita562e4bf023ad49f127a06ad976e926fdb3591e9 (patch)
tree5d530080ba303e49b799608391a5e8b4f4fbcd7d /layouts
parent0459931d1fd44e6bf1e8e3ffadcbbb68f568dbb9 (diff)
fix relative icon issue + add title
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/social-icons.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/social-icons.html b/layouts/partials/social-icons.html
index e3b6ae2..444ea6b 100644
--- a/layouts/partials/social-icons.html
+++ b/layouts/partials/social-icons.html
@@ -6,7 +6,7 @@
{{ $icon := anchorize . }}
{{ if isset $currentPage.Site.Params $icon }}
<a class="social-icons__icon" title="{{ . }}"
- style="background-image: url(/images/social/{{ $icon }}.svg)"
+ style="background-image: url('{{print "images/social/" $icon ".svg" | absURL}}')"
href="{{ index $currentPage.Site.Params $icon }}"
target="_blank" rel="noopener">
</a>