From 2419e25e73f60be3c18893df06ad61ed928bf277 Mon Sep 17 00:00:00 2001 From: "C. Lente" <7017340+clente@users.noreply.github.com> Date: Thu, 27 Apr 2023 12:25:09 -0300 Subject: Update social cards --- layouts/partials/social_card.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/social_card.html b/layouts/partials/social_card.html index 8bf397f..97f08c3 100644 --- a/layouts/partials/social_card.html +++ b/layouts/partials/social_card.html @@ -5,7 +5,7 @@ {{ $fg = $fg.Filter (images.Text .Title (dict "font" $font - "color" "#f8f8f2" + "color" "#fafafa" "size" 130 "linespacing" 20 "x" 0 @@ -18,7 +18,7 @@ {{ $fg = $fg.Filter (images.Text $byline (dict "font" $font - "color" "#c9d1d9" + "color" "#898a8d" "size" 60 "linespacing" 30 "x" 0 -- cgit v1.2.3 From 591f62e5233a9fe0e158ab8cbe72ab25815474a0 Mon Sep 17 00:00:00 2001 From: Caio Lente <7017340+clente@users.noreply.github.com> Date: Mon, 16 Oct 2023 22:44:59 -0300 Subject: Bring updates from main --- layouts/partials/footer.html | 2 +- layouts/partials/nav.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index dca6c23..9290715 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,3 @@ - {{ .Site.Copyright }} | {{ markdownify .Site.Language.Params.params.madeWith }} + {{ .Site.Copyright }} | {{ markdownify .Site.Params.madeWith }} \ No newline at end of file diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 3f1a416..5ee4552 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -4,7 +4,7 @@ {{ with .Site.Social.email }} Email {{ end }} -RSS +RSS {{ $translations := dict }} -- cgit v1.2.3 From 116e87f7d0f0983da1530ddb8831c070d3b147f5 Mon Sep 17 00:00:00 2001 From: Caio Lente <7017340+clente@users.noreply.github.com> Date: Tue, 6 Feb 2024 13:55:31 -0300 Subject: Heuristic for reducing font size on social cards with long titles --- layouts/partials/social_card.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/social_card.html b/layouts/partials/social_card.html index 6faacc0..d171da0 100644 --- a/layouts/partials/social_card.html +++ b/layouts/partials/social_card.html @@ -3,14 +3,25 @@ {{ $fg := resources.Get "images/social_card_fg.png"}} {{ $bg := resources.Get "images/social_card_bg.png"}} -{{ $fg = $fg.Filter (images.Text .Title (dict +{{ if gt (len .Title) 45 }} + {{ $fg = $fg.Filter (images.Text .Title (dict + "font" $font + "color" "#fafafa" + "size" 95 + "linespacing" 16 + "x" 0 + "y" 0 + )) }} +{{ else }} + {{ $fg = $fg.Filter (images.Text .Title (dict "font" $font "color" "#fafafa" "size" 130 "linespacing" 20 "x" 0 "y" 0 -)) }} + )) }} +{{ end }} {{ $date := .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }} {{ $author := (default $.Site.Params.author.name ($.Param "author") ) }} -- cgit v1.2.3