mirror of https://github.com/jpanther/congo.git
17 lines
746 B
HTML
17 lines
746 B
HTML
{{ with .Params.sharingLinks | default (.Site.Params.article.sharingLinks | default false) }}
|
|
{{ $links := site.Data.sharing }}
|
|
<section class="flex flex-row flex-wrap justify-center pt-4 text-xl">
|
|
{{ range . }}
|
|
{{ with index $links . }}
|
|
<a
|
|
class="bg-neutral-300 text-neutral-700 dark:bg-neutral-700 dark:text-neutral-300 dark:hover:bg-primary-400 dark:hover:text-neutral-800 m-1 hover:bg-primary-500 hover:text-neutral rounded min-w-[2.4rem] inline-block text-center p-1"
|
|
href="{{ printf .url $.Permalink $.Title }}"
|
|
title="{{ i18n .title }}"
|
|
aria-label="{{ i18n .title }}"
|
|
>{{ partial "icon.html" .icon }}</a
|
|
>
|
|
{{ end }}
|
|
{{ end }}
|
|
</section>
|
|
{{ end }}
|