fixed bug

This commit is contained in:
Nuno Coração 2022-11-18 22:58:59 +00:00
parent 51adb817fa
commit 981204d58e
9 changed files with 14 additions and 13 deletions

View file

@ -1866,8 +1866,8 @@ select {
padding: 1rem; padding: 1rem;
} }
.p-1\.5 { .p-2 {
padding: 0.375rem; padding: 0.5rem;
} }
.p-1 { .p-1 {

View file

@ -25,7 +25,7 @@
{{ range .data.social }} {{ range .data.social }}
{{ range $name, $link := . }} {{ range $name, $link := . }}
<a class="px-1 hover:text-primary-700 dark:hover:text-primary-400" href="{{ $link }}" target="_blank" <a class="px-1 hover:text-primary-700 dark:hover:text-primary-400" href="{{ $link }}" target="_blank"
aria-label="{{ $name | title }}" rel="me noopener noreferrer">{{ partial "icon.html" $name }}</a> aria-label="{{ $name | title }}" rel="me noopener noreferrer"><span class="inline-block align-text-bottom">{{ partial "icon.html" $name }}</span></a>
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>

View file

@ -8,7 +8,7 @@
target="_blank" target="_blank"
aria-label="{{ $name | title }}" aria-label="{{ $name | title }}"
rel="me noopener noreferrer" rel="me noopener noreferrer"
>{{ partial "icon.html" $name }}</a ><span class="inline-block align-text-bottom">{{ partial "icon.html" $name }}</span></a
> >
{{ end }} {{ end }}
{{ end }} {{ end }}

View file

@ -1,6 +1,6 @@
{{ $icon := resources.Get (print "icons/" . ".svg") }} {{ $icon := resources.Get (print "icons/" . ".svg") }}
{{ if $icon }} {{ if $icon }}
<span class="relative block icon p-1.5"> <span class="relative block icon">
{{ $icon.Content | safeHTML }} {{ $icon.Content | safeHTML }}
</span> </span>
{{ end }} {{ end }}

View file

@ -13,7 +13,7 @@
rel="noopener noreferrer" rel="noopener noreferrer"
target="_blank" target="_blank"
title="{{ i18n "article.edit_title" }}" title="{{ i18n "article.edit_title" }}"
>{{ partial "icon.html" "edit" }}</a ><span class="inline-block align-text-bottom">{{ partial "icon.html" "edit" }}</span></a
> >
</span> </span>
{{- /* Trim EOF */ -}} {{- /* Trim EOF */ -}}

View file

@ -1,5 +1,5 @@
<span> <span>
<span id="likes_{{ .File.Path }}" title="likes">0</span> <span id="likes_{{ .File.Path }}" title="likes">0</span>
<span>{{ partial "icon.html" "heart" }}</span> <span class="inline-block align-text-bottom">{{ partial "icon.html" "heart" }}</span>
</span> </span>
{{- /* Trim EOF */ -}} {{- /* Trim EOF */ -}}

View file

@ -2,8 +2,8 @@
<button id="likes_button" <button id="likes_button"
class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400" class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"
onclick="process_article()"> onclick="process_article()">
<span id="likes_button_heart" style="display:none">{{ partial "icon.html" "heart" }} </span> <span id="likes_button_heart" style="display:none" class="inline-block align-text-bottom">{{ partial "icon.html" "heart" }} </span>
<span id="likes_button_emtpty_heart">{{ partial "icon.html" "heart-empty" }}</span> <span id="likes_button_emtpty_heart" class="inline-block align-text-bottom">{{ partial "icon.html" "heart-empty" }}</span>
<span id="likes_button_text">&nbsp;Like</span> <span id="likes_button_text">&nbsp;Like</span>
</button> </button>
</span> </span>

View file

@ -1,5 +1,5 @@
<span> <span>
<span id="views_{{ .File.Path }}" title="views">0</span> <span id="views_{{ .File.Path }}" title="views">0</span>
<span>{{ partial "icon.html" "eye" }}</span> <span class="inline-block align-text-bottom">{{ partial "icon.html" "eye" }}</span>
</span> </span>
{{- /* Trim EOF */ -}} {{- /* Trim EOF */ -}}

View file

@ -4,12 +4,13 @@
{{ with . }} {{ with . }}
<a <a
target="_blank" target="_blank"
class="m-1 rounded bg-neutral-300 p-1 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" class="m-1 p-2 rounded bg-neutral-300 p-1 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"
href="{{ printf .url $.Permalink $.Title }}" href="{{ printf .url $.Permalink $.Title }}"
title="{{ i18n .title }}" title="{{ i18n .title }}"
aria-label="{{ i18n .title }}" aria-label="{{ i18n .title }}"
>{{ partial "icon.html" .icon }}</a >
> {{ partial "icon.html" .icon }}
</a>
{{ end }} {{ end }}
{{ end }} {{ end }}
</section> </section>