diff options
author | Jake Wiesler <jakewiesler@gmail.com> | 2020-07-04 21:20:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-04 21:20:29 +0300 |
commit | 50a221149d16942e71071af61bd1388ef819b62e (patch) | |
tree | 5d530080ba303e49b799608391a5e8b4f4fbcd7d | |
parent | 0459931d1fd44e6bf1e8e3ffadcbbb68f568dbb9 (diff) | |
parent | a562e4bf023ad49f127a06ad976e926fdb3591e9 (diff) |
Merge pull request #66 from kentnek/kent-fix-urls
Fix relative icon issue + add title
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/partials/social-icons.html | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 636cd9b..c9df366 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -5,6 +5,7 @@ themesDir = "../../" theme = "hugo-theme-codex" # Override these settings with your own +title = "codex" languageCode = "en-us" baseURL = "https://example.org/" copyright = "© {year}" 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> |