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

github.com/gevhaz/hugo-theme-notrack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/notrack/social.yaml1
-rw-r--r--layouts/shortcodes/contact-box.html2
-rw-r--r--layouts/shortcodes/social.html2
3 files changed, 4 insertions, 1 deletions
diff --git a/data/notrack/social.yaml b/data/notrack/social.yaml
index 67a694b..36ceaf8 100644
--- a/data/notrack/social.yaml
+++ b/data/notrack/social.yaml
@@ -506,6 +506,5 @@ rss:
weight: 64
url: /index.xml
title: RSS
- newtab: true
icon:
class: fas fa-rss fa-fw
diff --git a/layouts/shortcodes/contact-box.html b/layouts/shortcodes/contact-box.html
index 4e84b0b..ddf5943 100644
--- a/layouts/shortcodes/contact-box.html
+++ b/layouts/shortcodes/contact-box.html
@@ -17,6 +17,8 @@
<li><a href="{{- .prefix -}}{{ .user }}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
{{- else if .template -}}
<li><a href="{{- printf .template .user -}}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
+ {{- else if .url -}}
+ <li><a href="{{- .url -}}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
{{- end -}}
{{- end -}}
</ul>
diff --git a/layouts/shortcodes/social.html b/layouts/shortcodes/social.html
index fef88ec..51e0329 100644
--- a/layouts/shortcodes/social.html
+++ b/layouts/shortcodes/social.html
@@ -17,6 +17,8 @@
<li><a href="{{- .prefix -}}{{ .user }}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
{{- else if .template -}}
<li><a href="{{- printf .template .user -}}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
+ {{- else if .url -}}
+ <li><a href="{{- .url -}}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
{{- end -}}
{{- end -}}
</ul>