diff options
-rw-r--r-- | data/notrack/social.yaml | 1 | ||||
-rw-r--r-- | layouts/shortcodes/contact-box.html | 2 | ||||
-rw-r--r-- | layouts/shortcodes/social.html | 2 |
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> |