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

github.com/samrobbins85/hugo-developer-portfolio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Robbins <samrobbinsgb@gmail.com>2021-06-09 13:10:44 +0300
committerSam Robbins <samrobbinsgb@gmail.com>2021-06-09 13:10:44 +0300
commitcf3b53a6ebbc8e3e257cdc7828ea2df7bda464ca (patch)
tree22648a3fe4db92422b88cdf23460e0655e304951
parentd9500b0df68098409e311d8c48b91d971572ba86 (diff)
Fix for skills with symbols in the title
-rw-r--r--layouts/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 8632c99..b2b5d72 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -147,7 +147,7 @@
{{ if .Site.Data.homepage.skill.enable }}
{{ range .Site.Data.homepage.skill.item }}
-<div id="{{ replace (replace .title " " "_") "." "_" }}" uk-modal>
+<div id="{{cond (isset . "titlealt") .titlealt (replace (replace .title ' ' '_') '.' '_') }}" uk-modal>
<div class="uk-modal-dialog uk-modal-body">
<button class="uk-modal-close-default" type="button" uk-close></button>
<div class="uk-modal-header">
@@ -168,7 +168,7 @@
{{ range .Site.Data.homepage.skill.item }}
<div class="imagemargin">
<img class="contain skills" src="{{.logo}}" alt="{{.company}}" loading="lazy" style="cursor: pointer"
- uk-toggle="target: #{{ replace (replace .title " " "_") "." "_" }}">
+ uk-toggle="target: #{{ cond (isset . "titlealt") .titlealt (replace (replace .title ' ' '_') '.' '_')}}">
<h4>{{.title }}</h4>
</div>
{{ end }}