From b67f0a7c737ec840829f47cc1006d6ed6218aa25 Mon Sep 17 00:00:00 2001 From: Tomy Hsieh Date: Thu, 1 Jun 2023 19:09:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20fix:=20icon=20padding=20in=20men?= =?UTF-8?q?us?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/footer.html | 8 +++--- layouts/partials/header/basic.html | 14 ++++----- layouts/partials/header/hamburger.html | 20 ++++++------- layouts/partials/header/hybrid.html | 40 +++++++++++++------------- layouts/partials/icon.html | 10 +++---- 5 files changed, 46 insertions(+), 46 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9a427333..04c599e4 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -16,9 +16,9 @@ - {{ partial "icon.html" . }} + {{- partial "icon.html" . -}} - {{ end }}{{ if .Params.showName | default true }} + {{- end -}}{{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} - {{ partial "icon.html" . }} + {{- partial "icon.html" . -}} - {{ end }}{{ if .Params.showName | default true }} + {{- end -}}{{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} - {{ partial "icon.html" . }} + {{- partial "icon.html" . -}} - {{ end }}{{ if .Params.showName | default true }} + {{- end -}}{{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} {{ with .Params.icon | default "moon" }} - {{ partial "icon.html" . }} - {{ end }} - {{ if .Params.showName | default true }} + {{- partial "icon.html" . -}} + {{- end -}} + {{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} - {{ partial "icon.html" . }} + {{- partial "icon.html" . -}} - {{ end }}{{ if .Params.showName | default true }} + {{- end -}}{{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} - {{ partial "icon.html" . }} + {{- partial "icon.html" . -}} - {{ end }}{{ if .Params.showName | default true }} + {{- end -}}{{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} {{ with .Params.icon | default "moon" }} - {{ partial "icon.html" . }} - {{ end }} - {{ if .Params.showName | default true }} + {{- partial "icon.html" . -}} + {{- end -}} + {{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} {{ with .Params.icon | default "sun" }} - {{ partial "icon.html" . }} - {{ end }} - {{ if .Params.showName | default true }} + {{- partial "icon.html" . -}} + {{- end -}} + {{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} - {{ partial "icon.html" . }} + {{- partial "icon.html" . -}} - {{ end }}{{ if .Params.showName | default true }} + {{- end -}}{{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} - {{ partial "icon.html" . }} + {{- partial "icon.html" . -}} - {{ end }}{{ if .Params.showName | default true }} + {{- end -}}{{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} {{ with .Params.icon | default "moon" }} - {{ partial "icon.html" . }} - {{ end }} - {{ if .Params.showName | default true }} + {{- partial "icon.html" . -}} + {{- end -}} + {{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} {{ with .Params.icon | default "sun" }} - {{ partial "icon.html" . }} - {{ end }} - {{ if .Params.showName | default true }} + {{- partial "icon.html" . -}} + {{- end -}} + {{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} - {{ partial "icon.html" . }} + {{- partial "icon.html" . -}} - {{ end }}{{ if .Params.showName | default true }} + {{- end -}}{{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} - {{ partial "icon.html" . }} + {{- partial "icon.html" . -}} - {{ end }}{{ if .Params.showName | default true }} + {{- end -}}{{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} {{ with .Params.icon | default "moon" }} - {{ partial "icon.html" . }} - {{ end }} - {{ if .Params.showName | default true }} + {{- partial "icon.html" . -}} + {{- end -}} + {{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} {{ with .Params.icon | default "sun" }} - {{ partial "icon.html" . }} - {{ end }} - {{ if .Params.showName | default true }} + {{- partial "icon.html" . -}} + {{- end -}} + {{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} - {{ partial "icon.html" . }} + {{- partial "icon.html" . -}} - {{ end }}{{ if .Params.showName | default true }} + {{- end -}}{{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} - {{ $icon.Content | safeHTML }} +{{- $icon := resources.Get (print "icons/" . ".svg") -}} +{{- if $icon -}} + + {{- $icon.Content | safeHTML -}} -{{ end }} +{{- end -}}