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;
}
.p-1\.5 {
padding: 0.375rem;
.p-2 {
padding: 0.5rem;
}
.p-1 {

View file

@ -25,7 +25,7 @@
{{ range .data.social }}
{{ range $name, $link := . }}
<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 }}
</div>

View file

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

View file

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

View file

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

View file

@ -1,5 +1,5 @@
<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>
{{- /* Trim EOF */ -}}

View file

@ -2,8 +2,8 @@
<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"
onclick="process_article()">
<span id="likes_button_heart" style="display:none">{{ partial "icon.html" "heart" }} </span>
<span id="likes_button_emtpty_heart">{{ partial "icon.html" "heart-empty" }}</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" class="inline-block align-text-bottom">{{ partial "icon.html" "heart-empty" }}</span>
<span id="likes_button_text">&nbsp;Like</span>
</button>
</span>

View file

@ -1,5 +1,5 @@
<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>
{{- /* Trim EOF */ -}}

View file

@ -4,12 +4,13 @@
{{ with . }}
<a
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 }}"
title="{{ i18n .title }}"
aria-label="{{ i18n .title }}"
>{{ partial "icon.html" .icon }}</a
>
>
{{ partial "icon.html" .icon }}
</a>
{{ end }}
{{ end }}
</section>