2021-10-19 23:44:57 +00:00
|
|
|
{{ with .Params.sharingLinks | default (.Site.Params.article.sharingLinks | default false) }}
|
2021-08-16 07:06:35 +00:00
|
|
|
{{ $links := site.Data.sharing }}
|
|
|
|
<section class="flex flex-row flex-wrap justify-center pt-4 text-xl">
|
|
|
|
{{ range . }}
|
|
|
|
{{ with index $links . }}
|
|
|
|
<a
|
2022-08-18 04:59:46 +00:00
|
|
|
class="m-1 inline-block min-w-[2.4rem] rounded bg-neutral-300 p-1 text-center text-neutral-700 hover:bg-primary-500 hover:text-neutral dark:bg-neutral-700 dark:text-neutral-300 dark:hover:bg-primary-400 dark:hover:text-neutral-800"
|
2021-08-16 07:06:35 +00:00
|
|
|
href="{{ printf .url $.Permalink $.Title }}"
|
2021-08-17 06:48:08 +00:00
|
|
|
title="{{ i18n .title }}"
|
2021-12-21 02:22:45 +00:00
|
|
|
aria-label="{{ i18n .title }}"
|
2021-08-16 07:06:35 +00:00
|
|
|
>{{ partial "icon.html" .icon }}</a
|
|
|
|
>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</section>
|
|
|
|
{{ end }}
|