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:
authorJake Wiesler <jakewiesler@gmail.com>2020-07-04 21:20:29 +0300
committerGitHub <noreply@github.com>2020-07-04 21:20:29 +0300
commit50a221149d16942e71071af61bd1388ef819b62e (patch)
tree5d530080ba303e49b799608391a5e8b4f4fbcd7d
parent0459931d1fd44e6bf1e8e3ffadcbbb68f568dbb9 (diff)
parenta562e4bf023ad49f127a06ad976e926fdb3591e9 (diff)
Merge pull request #66 from kentnek/kent-fix-urls
Fix relative icon issue + add title
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/social-icons.html2
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>