Replies: 3 comments 1 reply
-
i am also looking for this |
Beta Was this translation helpful? Give feedback.
-
It could probably be done with a shortcode.
Maybe it can help? |
Beta Was this translation helpful? Give feedback.
-
I found a solution. You can create a shortcode that renders the socials and use that in your markdown Step 1: Define the social icons in the config under(same syntax as for profile mode): params:
socialIcons:
- name: "<platform>"
url: "<link>"
- name: "<platform 2>"
url: "<link2>" Step 2: Create the shortcode
<div class="social-icons">
{{- range site.Params.socialIcons }}
<a href="{{ trim .url ' ' | safeURL }}" style="box-shadow:none" target="_blank" rel="noopener noreferrer me"
title="{{ (.title | default .name) | title }}">
{{ partial "svg.html" . }}
</a>
{{- end }}
</div> Step 3: Use the shortcodeInclude the shortcode in your markdown:
You can see an example in action here: Erik's blog Note For more information please see Create your own shortcodes |
Beta Was this translation helpful? Give feedback.
-
Hi!
As the template has social icons located in the svg.html file it would be great to use them in a post, inline with text.
How is it possible?
Beta Was this translation helpful? Give feedback.
All reactions