congo/layouts/partials/sharing-links.html

16 lines
639 B
HTML
Raw Permalink Normal View History

2021-08-16 07:06:35 +00:00
{{ with .Site.Params.article.sharingLinks }}
{{ $links := site.Data.sharing }}
<section class="flex flex-row flex-wrap justify-center pt-4 text-xl">
{{ range . }}
{{ with index $links . }}
<a
class="bg-gray-300 text-gray-700 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-primary-400 dark:hover:text-gray-800 m-1 hover:bg-primary-500 hover:text-white rounded min-w-[2.4rem] inline-block text-center p-1"
href="{{ printf .url $.Permalink $.Title }}"
2021-08-17 06:48:08 +00:00
title="{{ i18n .title }}"
2021-08-16 07:06:35 +00:00
>{{ partial "icon.html" .icon }}</a
>
{{ end }}
{{ end }}
</section>
{{ end }}