diff options
author | Philip Guyton <philip@yewtreeapps.com> | 2021-09-22 15:55:02 +0300 |
---|---|---|
committer | Philip Guyton <philip@yewtreeapps.com> | 2021-09-30 16:17:05 +0300 |
commit | 4b8e020c2108d5972b236c8c4ef82701c518c7ba (patch) | |
tree | 94fda5ee815f4c02f988ef5dfeaa74ae575c6fba | |
parent | 4d6e05da1a2c0c15fbed9f7f66aebba21763fad5 (diff) |
Broken "Follow me:" links on homepage layout 2 #52
Fix copied from layouts/partials/footer.html as the same auto generated
"Follow" links there worked just fine.
-rw-r--r-- | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | layouts/index.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 177f0ce..ff6c44b 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -121,4 +121,4 @@ link = "#" [[params.social]] icon = "ti-github" -link = "#"
\ No newline at end of file +link = "#" diff --git a/layouts/index.html b/layouts/index.html index 342fa8e..07f92ca 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -37,7 +37,7 @@ <span class="font-secondary text-dark mr-3 mr-sm-5">Follow me :</span> <ul class="list-inline d-inline-block mb-5"> {{ range site.Params.social }} - <li class="list-inline-item mx-3"><a href="{{.URL}}" class="text-dark"><i class="{{.icon}}"></i></a></li> + <li class="list-inline-item mx-3"><a href="{{ .link | safeURL }}" class="text-dark"><i class="{{.icon}}"></i></a></li> {{ end }} </ul> </div> |