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

github.com/spech66/bootstrap-bp-hugo-startpage.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pech <windows@spech.de>2019-09-22 13:45:38 +0300
committerSebastian Pech <windows@spech.de>2019-09-22 13:45:38 +0300
commitfa0192b06b9864887cb6568ebdb381455229eaed (patch)
treea30912423c7e266b091009d3e060d60280ed17ca
parent36683bcf32b966e0cf76be81571e6cfcbf93e7eb (diff)
Added safeHTML to title for HTML br
-rw-r--r--layouts/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 02df301..bf45276 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -26,7 +26,7 @@
<h5 class="card-title groupTitle">{{ .group }}</h5>
<ul class="list-group list-group-flush groupListList">
{{ range .items }}
- <li class="list-group-item groupListListItem"><a href="{{ .url }}" target="_self" class="groupLink"><i class="{{ .icon }}"></i>&nbsp;<span class="groupText">{{ .title }}</span></a></li>
+ <li class="list-group-item groupListListItem"><a href="{{ .url }}" target="_self" class="groupLink"><i class="{{ .icon }}"></i>&nbsp;<span class="groupText">{{ .title | safeHTML }}</span></a></li>
{{ end }}
</ul>
</div>
@@ -40,7 +40,7 @@
<div id="iconListEntry" class="card">
<div class="card-body cursorPointer" onclick="location.href = '{{ .url }}'">
<p class="card-text"><a href="{{ .url }}" target="_self" class="iconLink"><i class="fa-5x {{ .icon }}"></i></a></p>
- <p class="card-text"><a href="{{ .url }}" target="_self" class="iconLink">{{ .title }}</a></p>
+ <p class="card-text"><a href="{{ .url }}" target="_self" class="iconLink">{{ .title | safeHTML }}</a></p>
</div>
</div>
{{ end }}