From 981204d58eb76bab310db7a3e45b99fa001eb5c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Fri, 18 Nov 2022 22:58:59 +0000 Subject: [PATCH] fixed bug --- assets/css/compiled/main.css | 4 ++-- layouts/partials/author-extra.html | 2 +- layouts/partials/author-links.html | 2 +- layouts/partials/icon.html | 2 +- layouts/partials/meta/edit.html | 2 +- layouts/partials/meta/likes.html | 2 +- layouts/partials/meta/likes_button.html | 4 ++-- layouts/partials/meta/views.html | 2 +- layouts/partials/sharing-links.html | 7 ++++--- 9 files changed, 14 insertions(+), 13 deletions(-) diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index af1f385a..c92e66e2 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1866,8 +1866,8 @@ select { padding: 1rem; } -.p-1\.5 { - padding: 0.375rem; +.p-2 { + padding: 0.5rem; } .p-1 { diff --git a/layouts/partials/author-extra.html b/layouts/partials/author-extra.html index a191f21f..05195738 100644 --- a/layouts/partials/author-extra.html +++ b/layouts/partials/author-extra.html @@ -25,7 +25,7 @@ {{ range .data.social }} {{ range $name, $link := . }} {{ partial "icon.html" $name }} + aria-label="{{ $name | title }}" rel="me noopener noreferrer">{{ partial "icon.html" $name }} {{ end }} {{ end }} diff --git a/layouts/partials/author-links.html b/layouts/partials/author-links.html index f6831cf6..44ce95f4 100644 --- a/layouts/partials/author-links.html +++ b/layouts/partials/author-links.html @@ -8,7 +8,7 @@ target="_blank" aria-label="{{ $name | title }}" rel="me noopener noreferrer" - >{{ partial "icon.html" $name }}{{ partial "icon.html" $name }} {{ end }} {{ end }} diff --git a/layouts/partials/icon.html b/layouts/partials/icon.html index fe2a1a16..150dc929 100644 --- a/layouts/partials/icon.html +++ b/layouts/partials/icon.html @@ -1,6 +1,6 @@ {{ $icon := resources.Get (print "icons/" . ".svg") }} {{ if $icon }} - + {{ $icon.Content | safeHTML }} {{ end }} diff --git a/layouts/partials/meta/edit.html b/layouts/partials/meta/edit.html index 9318f49d..7cd1a43d 100644 --- a/layouts/partials/meta/edit.html +++ b/layouts/partials/meta/edit.html @@ -13,7 +13,7 @@ rel="noopener noreferrer" target="_blank" title="{{ i18n "article.edit_title" }}" - >{{ partial "icon.html" "edit" }}{{ partial "icon.html" "edit" }} {{- /* Trim EOF */ -}} diff --git a/layouts/partials/meta/likes.html b/layouts/partials/meta/likes.html index bef1078a..3f213195 100644 --- a/layouts/partials/meta/likes.html +++ b/layouts/partials/meta/likes.html @@ -1,5 +1,5 @@ 0 - {{ partial "icon.html" "heart" }} + {{ partial "icon.html" "heart" }} {{- /* Trim EOF */ -}} \ No newline at end of file diff --git a/layouts/partials/meta/likes_button.html b/layouts/partials/meta/likes_button.html index a090614d..edcf785e 100644 --- a/layouts/partials/meta/likes_button.html +++ b/layouts/partials/meta/likes_button.html @@ -2,8 +2,8 @@ diff --git a/layouts/partials/meta/views.html b/layouts/partials/meta/views.html index 2b633b8c..51b32aa5 100644 --- a/layouts/partials/meta/views.html +++ b/layouts/partials/meta/views.html @@ -1,5 +1,5 @@ 0 - {{ partial "icon.html" "eye" }} + {{ partial "icon.html" "eye" }} {{- /* Trim EOF */ -}} diff --git a/layouts/partials/sharing-links.html b/layouts/partials/sharing-links.html index 50247b3f..8f0e3c8f 100644 --- a/layouts/partials/sharing-links.html +++ b/layouts/partials/sharing-links.html @@ -4,12 +4,13 @@ {{ with . }} {{ partial "icon.html" .icon }} + > + {{ partial "icon.html" .icon }} + {{ end }} {{ end }}