diff --git a/layouts/partials/cover.html b/layouts/partials/cover.html index 5c5f2fbb..0f131f79 100644 --- a/layouts/partials/cover.html +++ b/layouts/partials/cover.html @@ -6,7 +6,7 @@ {{- $addLink := (and site.Params.cover.linkFullImages (not $.IsHome)) }} {{- $cover := (.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }} {{- if $cover -}}{{/* i.e it is present in page bundle */}} - {{- if $addLink }}{{ end -}} {{- $sizes := (slice "360" "480" "720" "1080" "1500") }} {{- $processableFormats := (slice "jpg" "jpeg" "png" "tif" "bmp" "gif") -}} @@ -26,7 +26,7 @@ {{ $alt }} {{- end }} {{- else }}{{/* For absolute urls and external links, no img processing here */}} - {{- if $addLink }}{{ end -}} {{ $alt }} {{- end }} diff --git a/layouts/partials/edit_post.html b/layouts/partials/edit_post.html index efa4c700..8f5ea21e 100644 --- a/layouts/partials/edit_post.html +++ b/layouts/partials/edit_post.html @@ -2,7 +2,7 @@ {{- $fileUrlPath := path.Join .File.Path }} {{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}} - + {{- .Params.editPost.Text | default (site.Params.editPost.Text | default (i18n "edit_post" | default "Edit")) -}} {{- end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index feb65859..e517095a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -7,8 +7,8 @@ {{- end }} - Powered by - Hugo & - WonderMod + Hugo & + WonderMod {{- end }} @@ -23,4 +23,4 @@ {{- partial "extend_footer.html" . }} -{{- partial "script.html" . }} \ No newline at end of file +{{- partial "script.html" . }} diff --git a/layouts/partials/post_canonical.html b/layouts/partials/post_canonical.html index abfc1e36..d3df859a 100644 --- a/layouts/partials/post_canonical.html +++ b/layouts/partials/post_canonical.html @@ -4,6 +4,6 @@ {{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated (or .Params.editPost.URL site.Params.editPost.URL) }} | {{- end -}} {{- (site.Params.CanonicalLinkText | default .Params.CanonicalLinkText) | default "Originally published at" -}} -  {{ $url.Host }} +  {{ $url.Host }} {{- end }} diff --git a/layouts/partials/share_icons.html b/layouts/partials/share_icons.html index 59ed0503..0b8fe74f 100644 --- a/layouts/partials/share_icons.html +++ b/layouts/partials/share_icons.html @@ -15,7 +15,7 @@
{{- if (cond ($custom) (in $ShareButtons "twitter") (true)) }} - {{- end }} {{- if (cond ($custom) (in $ShareButtons "linkedin") (true)) }} - {{- end }} {{- if (cond ($custom) (in $ShareButtons "reddit") (true)) }} - {{- end }} {{- if (cond ($custom) (in $ShareButtons "facebook") (true)) }} - {{- end }} {{- if (cond ($custom) (in $ShareButtons "whatsapp") (true)) }} - {{- end }} {{- if (cond ($custom) (in $ShareButtons "telegram") (true)) }} - {{- end }} -
\ No newline at end of file + diff --git a/layouts/partials/social_icons.html b/layouts/partials/social_icons.html index 3f8d6a35..958a8590 100644 --- a/layouts/partials/social_icons.html +++ b/layouts/partials/social_icons.html @@ -1,6 +1,6 @@
{{- range . }} - + {{ partial "svg.html" . }} {{- end }}