From 282ad5b6f5a71c6fb503150994499900eeb5404b Mon Sep 17 00:00:00 2001 From: Je Sian Keith Herman <68434444+jskherman@users.noreply.github.com> Date: Sat, 28 May 2022 00:52:31 +0800 Subject: [PATCH 01/29] Add ORCID Social Icon (#928) --- layouts/partials/svg.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 6c82f7e..89d5d6f 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -378,6 +378,12 @@ +{{- else if (eq $icon_name "orcid") -}} + + + {{- else if (eq $icon_name "overcast") -}} Date: Fri, 27 May 2022 22:40:41 +0530 Subject: [PATCH 02/29] Remove redundant `

` tags from home-info mode --- layouts/partials/home_info.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/home_info.html b/layouts/partials/home_info.html index fd3bc0d..efae956 100644 --- a/layouts/partials/home_info.html +++ b/layouts/partials/home_info.html @@ -4,7 +4,7 @@

{{ .Title | markdownify }}

-

{{ .Content | markdownify }}

+ {{ .Content | markdownify }}
{{- end }} From c2d047f376f107d7760e58c642c325e5f3d18d26 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 3 Jun 2022 18:28:52 +0530 Subject: [PATCH 10/29] Add code loading CSS for required features based on #696 --- layouts/partials/head.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 04e7b62..5695a5b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -34,6 +34,13 @@ {{- end }} {{- /* Styles */}} + +{{- /* includes */}} +{{- $includes := slice }} +{{- $includes = $includes | append (" " | resources.FromString "assets/css/includes-blank.css")}} + +{{- $includes_all := $includes | resources.Concat "assets/css/includes.css" }} + {{- $theme_vars := (resources.Get "css/core/theme-vars.css") }} {{- $reset := (resources.Get "css/core/reset.css") }} {{- $media := (resources.Get "css/core/zmedia.css") }} @@ -45,7 +52,7 @@ {{- $hljs := (cond ($isHLJSdisabled) (" " | resources.FromString "assets/css/hljs-blank.css") (resources.Get "css/hljs/an-old-hope.min.css")) }} {{- /* order is important */}} -{{- $core := (slice $theme_vars $reset $common $hljs $media) | resources.Concat "assets/css/core.css" | resources.Minify }} +{{- $core := (slice $theme_vars $reset $common $hljs $includes_all $media) | resources.Concat "assets/css/core.css" | resources.Minify }} {{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" | resources.Minify }} {{- /* bundle all required css */}} From 0ed246d47d7c500ec8296fd2e495f51badbfd2af Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 3 Jun 2022 18:32:09 +0530 Subject: [PATCH 11/29] Seperate scroll-bar customization into seperate stylesheet --- assets/css/common/post-single.css | 26 ------------ assets/css/core/reset.css | 26 ------------ assets/css/core/zmedia.css | 8 ---- assets/css/includes/scroll-bar.css | 63 ++++++++++++++++++++++++++++++ 4 files changed, 63 insertions(+), 60 deletions(-) create mode 100644 assets/css/includes/scroll-bar.css diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 675bb68..2ceea08 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -189,10 +189,6 @@ margin-bottom: 0; } -.post-content .highlighttable td .highlight pre code::-webkit-scrollbar { - display: none; -} - .post-content code { margin: auto 4px; padding: 4px 6px; @@ -368,28 +364,6 @@ h6:hover .anchor { user-select: none; } -.post-content :not(table) ::-webkit-scrollbar-thumb { - border: 2px solid var(--hljs-bg); - background: rgb(113, 113, 117); -} - -.post-content :not(table) ::-webkit-scrollbar-thumb:hover { - background: rgb(163, 163, 165); -} - -.gist table::-webkit-scrollbar-thumb { - border: 2px solid rgb(255, 255, 255); - background: rgb(173, 173, 173); -} - -.gist table::-webkit-scrollbar-thumb:hover { - background: rgb(112, 112, 112); -} - -.post-content table::-webkit-scrollbar-thumb { - border-width: 2px; -} - .paginav { margin: 10px 0; display: flex; diff --git a/assets/css/core/reset.css b/assets/css/core/reset.css index d7bd2ec..f509cf6 100644 --- a/assets/css/core/reset.css +++ b/assets/css/core/reset.css @@ -114,29 +114,3 @@ img { display: block; max-width: 100%; } - -::-webkit-scrollbar-track { - background: 0 0; -} - -.list:not(.dark)::-webkit-scrollbar-track { - background: var(--code-bg); -} - -::-webkit-scrollbar-thumb { - background: var(--tertiary); - border: 5px solid var(--theme); - border-radius: var(--radius); -} - -.list:not(.dark)::-webkit-scrollbar-thumb { - border: 5px solid var(--code-bg); -} - -::-webkit-scrollbar-thumb:hover { - background: var(--secondary); -} - -::-webkit-scrollbar:not(.highlighttable, .highlight table, .gist .highlight) { - background: var(--theme); -} \ No newline at end of file diff --git a/assets/css/core/zmedia.css b/assets/css/core/zmedia.css index 1cc6c6e..2888472 100644 --- a/assets/css/core/zmedia.css +++ b/assets/css/core/zmedia.css @@ -29,14 +29,6 @@ } } -@media screen and (min-width: 768px) { - /* reset */ - ::-webkit-scrollbar { - width: 19px; - height: 11px; - } -} - /* footer */ @media screen and (max-width: 900px) { .list .top-link { diff --git a/assets/css/includes/scroll-bar.css b/assets/css/includes/scroll-bar.css new file mode 100644 index 0000000..47405de --- /dev/null +++ b/assets/css/includes/scroll-bar.css @@ -0,0 +1,63 @@ +/* from reset */ +::-webkit-scrollbar-track { + background: 0 0; +} + +.list:not(.dark)::-webkit-scrollbar-track { + background: var(--code-bg); +} + +::-webkit-scrollbar-thumb { + background: var(--tertiary); + border: 5px solid var(--theme); + border-radius: var(--radius); +} + +.list:not(.dark)::-webkit-scrollbar-thumb { + border: 5px solid var(--code-bg); +} + +::-webkit-scrollbar-thumb:hover { + background: var(--secondary); +} + +::-webkit-scrollbar:not(.highlighttable, .highlight table, .gist .highlight) { + background: var(--theme); +} + +/* from post-single */ +.post-content .highlighttable td .highlight pre code::-webkit-scrollbar { + display: none; +} + +.post-content :not(table) ::-webkit-scrollbar-thumb { + border: 2px solid var(--hljs-bg); + background: rgb(113, 113, 117); +} + +.post-content :not(table) ::-webkit-scrollbar-thumb:hover { + background: rgb(163, 163, 165); +} + +.gist table::-webkit-scrollbar-thumb { + border: 2px solid rgb(255, 255, 255); + background: rgb(173, 173, 173); +} + +.gist table::-webkit-scrollbar-thumb:hover { + background: rgb(112, 112, 112); +} + +.post-content table::-webkit-scrollbar-thumb { + border-width: 2px; +} + +/* from zmedia */ +@media screen and (min-width: 768px) { + + /* reset */ + ::-webkit-scrollbar { + width: 19px; + height: 11px; + } +} \ No newline at end of file From 181a8c38f36f049ccaef94274540c01d2619088c Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 3 Jun 2022 18:33:54 +0530 Subject: [PATCH 12/29] Allow disabling custom Scroll Bar Style closes #637 Usage => Params.assets.disableScrollBarStyle: true --- layouts/partials/head.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 5695a5b..770bdaa 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -39,6 +39,11 @@ {{- $includes := slice }} {{- $includes = $includes | append (" " | resources.FromString "assets/css/includes-blank.css")}} +{{- if not (eq site.Params.assets.disableScrollBarStyle true) }} + {{- $ScrollStyle := (resources.Get "css/includes/scroll-bar.css") }} + {{- $includes = (append $ScrollStyle $includes) }} +{{- end }} + {{- $includes_all := $includes | resources.Concat "assets/css/includes.css" }} {{- $theme_vars := (resources.Get "css/core/theme-vars.css") }} From c69269575464ba6f029d9bb51e1f984045c22d5c Mon Sep 17 00:00:00 2001 From: Roj Date: Sat, 4 Jun 2022 18:43:35 +0300 Subject: [PATCH 13/29] Improve Kurdish translations (#936) --- i18n/ku.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/i18n/ku.yaml b/i18n/ku.yaml index b6d5e32..d1d30a5 100644 --- a/i18n/ku.yaml +++ b/i18n/ku.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "Rêpela Berê" + translation: "Rûpela Paş" - id: next_page - translation: "Rûpela Bê" + translation: "Rûpela Pêş" - id: read_time translation: @@ -13,13 +13,13 @@ translation: "Pêrist" - id: translations - translation: "Wergêranan" + translation: "Wergeran" - id: home translation: "Xanî" - id: code_copy - translation: "Jê bigre" + translation: "Jê bigire" - id: code_copied - translation: "Hat jê girtin!" + translation: "Hat jêgirtin!" From a94674e6c9c7f0902b2cfeccd3016c623e3d2fbb Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 10 Jun 2022 21:26:13 +0530 Subject: [PATCH 14/29] Include chroma fix code when hljs is disabled provided: pygmentsUseClasses: true & markup.highlight.noClasses: false https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 770bdaa..7d73b78 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -54,7 +54,7 @@ {{- /* include `an-old-hope` if hljs is on */}} {{- $isHLJSdisabled := (site.Params.assets.disableHLJS | default false) }} -{{- $hljs := (cond ($isHLJSdisabled) (" " | resources.FromString "assets/css/hljs-blank.css") (resources.Get "css/hljs/an-old-hope.min.css")) }} +{{- $hljs := (cond ($isHLJSdisabled) (".chroma { background-color: unset !important;}" | resources.FromString "assets/css/hljs-blank.css") (resources.Get "css/hljs/an-old-hope.min.css")) }} {{- /* order is important */}} {{- $core := (slice $theme_vars $reset $common $hljs $includes_all $media) | resources.Concat "assets/css/core.css" | resources.Minify }} From 0262b5eba04eef9b860eb0f56621376998a66310 Mon Sep 17 00:00:00 2001 From: Taeho Nam Date: Thu, 23 Jun 2022 02:19:43 +0900 Subject: [PATCH 15/29] Fix typo to work with site verification tags (#954) It was originally correct code, but it has been erroneously corrected by the commit below. 575cc0c Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> --- layouts/partials/head.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 7d73b78..b9ebda2 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -23,14 +23,14 @@ {{- with site.Params.description }}{{ . }}{{- end }}{{- end }}{{- end -}}"> -{{- if site.Params.analytics.googlesiteVerificationTag }} - +{{- if site.Params.analytics.google.SiteVerificationTag }} + {{- end }} -{{- if site.Params.analytics.yandexsiteVerificationTag }} - +{{- if site.Params.analytics.yandex.SiteVerificationTag }} + {{- end }} -{{- if site.Params.analytics.bingsiteVerificationTag }} - +{{- if site.Params.analytics.bing.SiteVerificationTag }} + {{- end }} {{- /* Styles */}} From 7683ef1825aefa5f209ce19d1bd5f9aeb302828f Mon Sep 17 00:00:00 2001 From: Vighnesh Shenoy Date: Wed, 22 Jun 2022 23:03:16 +0530 Subject: [PATCH 16/29] Add lichess.org social icon. (#952) --- layouts/partials/svg.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 89d5d6f..8138441 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -326,6 +326,10 @@ d="m146.52 246.14c0 3.671-.604 7.03-1.811 10.07-1.207 3.043-2.879 5.669-5.01 7.881-2.138 2.213-4.702 3.935-7.693 5.167-2.992 1.231-6.248 1.848-9.767 1.848-1.71 0-3.42-.151-5.129-.453l-3.394 13.651h-11.162l12.52-52.19c2.01-.603 4.311-1.143 6.901-1.622 2.589-.477 5.393-.716 8.41-.716 2.815 0 5.242.428 7.278 1.282 2.037.855 3.708 2.024 5.02 3.507 1.307 1.484 2.274 3.219 2.904 5.205.627 1.987.942 4.11.942 6.373m-27.378 15.461c.854.202 1.91.302 3.167.302 1.961 0 3.746-.364 5.355-1.094 1.609-.728 2.979-1.747 4.111-3.055 1.131-1.307 2.01-2.877 2.64-4.714.628-1.835.943-3.858.943-6.071 0-2.161-.479-3.998-1.433-5.506-.956-1.508-2.615-2.263-4.978-2.263-1.61 0-3.118.151-4.525.453l-5.28 21.948" /> +{{- else if (eq $icon_name "lichess" ) -}} + + + {{- else if (eq $icon_name "linkedin") -}} From 9af128a8a638d139771afc30a8f331a73ce810b1 Mon Sep 17 00:00:00 2001 From: Em <105593707+aemtsh@users.noreply.github.com> Date: Fri, 24 Jun 2022 22:30:09 +0700 Subject: [PATCH 17/29] Update Indonesian Languange (id.yaml) (#955) --- i18n/id.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/i18n/id.yaml b/i18n/id.yaml index 0add121..6262bbb 100644 --- a/i18n/id.yaml +++ b/i18n/id.yaml @@ -9,8 +9,25 @@ one : "1 menit" other: "{{ .Count }} menit" +- id: words + translation: + one : "kata" + other: "{{ .Count }} kata" + - id: toc - translation: "Daftar Isi" + translation: "Daftar isi" - id: translations translation: "Terjemahan" + +- id: home + translation: "Beranda" + +- id: edit_post + translation: "Sunting" + +- id: code_copy + translation: "salin" + +- id: code_copied + translation: "disalin!" \ No newline at end of file From 36b4cb35a41244c703bc05c70071121b051598f5 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Fri, 8 Jul 2022 17:54:23 +0300 Subject: [PATCH 18/29] Update russian translation (#957) --- i18n/ru.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/i18n/ru.yaml b/i18n/ru.yaml index 7ef8ed2..a5dbb5c 100644 --- a/i18n/ru.yaml +++ b/i18n/ru.yaml @@ -5,7 +5,20 @@ translation: "Следующая" - id: read_time - translation: "{{ .Count }} мин" + translation: + zero: "0 минут" + one: "1 минута" + few: "{{ .Count }} минуты" + many: "{{ .Count }} минут" + other: "{{ .Count }} минута" + +- id: words + translation: + zero: "0 слов" + one: "1 слово" + few: "{{ .Count }} слова" + many: "{{ .Count }} слов" + other: "{{ .Count }} слово" - id: toc translation: "Оглавление" @@ -16,6 +29,9 @@ - id: home translation: "Главная" +- id: edit_post + translation: "Редактировать" + - id: code_copy translation: "копировать" From 1ead1f76e20ece99d3262c4b710959cdca3cd9b8 Mon Sep 17 00:00:00 2001 From: Em <105593707+amrmtsh@users.noreply.github.com> Date: Fri, 8 Jul 2022 21:54:47 +0700 Subject: [PATCH 19/29] Change i18n next prev page Indonesian (#961) Co-authored-by: aemtsh <105593707+aemtsh@users.noreply.github.com> --- i18n/id.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i18n/id.yaml b/i18n/id.yaml index 6262bbb..93d34f5 100644 --- a/i18n/id.yaml +++ b/i18n/id.yaml @@ -1,8 +1,8 @@ - id: prev_page - translation: "Halaman Sebelumnya" + translation: "Sebelumnya" - id: next_page - translation: "Halaman Selanjutnya" + translation: "Selanjutnya" - id: read_time translation: From 5f280c5df281cc004d8a4698345f08a9689c43ac Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:27:40 +0530 Subject: [PATCH 20/29] Simplify theme-toggle svg height --- assets/css/common/header.css | 4 ---- layouts/partials/header.html | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/assets/css/common/header.css b/assets/css/common/header.css index 3cd070e..5a21384 100644 --- a/assets/css/common/header.css +++ b/assets/css/common/header.css @@ -36,10 +36,6 @@ margin-inline-end: 8px; } -#theme-toggle svg { - height: 18px; -} - button#theme-toggle { font-size: 26px; margin: auto 4px; diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 34dc921..a2b09a4 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -73,12 +73,12 @@
{{- if (not site.Params.disableThemeToggle) }}
+ \ No newline at end of file From 5032b2c4f10eca2013d56aa4bef7a25842dac2c4 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:28:29 +0530 Subject: [PATCH 23/29] Revert "add blockquote as shortcode" This reverts commit 984d1a576c30134617f01df1933475188f033c14. Removal of shortcode for blockquote: https://github.com/parsiya/Hugo-Shortcodes/blob/master/shortcodes/blockquote.html --- layouts/shortcodes/blockquote.html | 72 ------------------------------ 1 file changed, 72 deletions(-) delete mode 100644 layouts/shortcodes/blockquote.html diff --git a/layouts/shortcodes/blockquote.html b/layouts/shortcodes/blockquote.html deleted file mode 100644 index 14bb107..0000000 --- a/layouts/shortcodes/blockquote.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - -{{ $.Scratch.Set "bl_author" false }} -{{ $.Scratch.Set "bl_source" false }} -{{ $.Scratch.Set "bl_link" false }} -{{ $.Scratch.Set "bl_title" false }} - -{{ if .IsNamedParams }} - {{ $.Scratch.Set "bl_author" (.Get "author") }} - {{ $.Scratch.Set "bl_source" (.Get "source") }} - {{ $.Scratch.Set "bl_link" (.Get "link") }} - {{ $.Scratch.Set "bl_title" (.Get "title") }} -{{ else }} - -{{ end }} - - - -{{ with $.Scratch.Get "bl_title" }} - -{{ else }} - {{ with $.Scratch.Get "bl_link" }} - {{ range last 1 (split ($.Scratch.Get "bl_link" ) "://") }} - {{ $.Scratch.Set "title_without_protocol" . }} - {{ end }} - {{ range last 1 (split ($.Scratch.Get "title_without_protocol" ) "www.") }} - {{ $.Scratch.Set "title_without_protocol" . }} - {{ end }} - {{ $.Scratch.Set "bl_title" ($.Scratch.Get "title_without_protocol") }} - - - {{ if (gt (len ($.Scratch.Get "title_without_protocol") ) 32) }} - {{ $title := (slicestr ($.Scratch.Get "title_without_protocol") 0 32) }} - {{ $split_by_fw_slash := split $title "/" }} - {{ $count := (sub (len $split_by_fw_slash) 1) }} - - {{ $.Scratch.Set "tempstring" "" }} - {{ range first $count $split_by_fw_slash }} - {{ $.Scratch.Set "tempstring" ( . | printf "%s%s/" ($.Scratch.Get "tempstring") | printf "%s" ) }} - {{ end }} - {{ $.Scratch.Set "bl_title" ( printf "%s..." ($.Scratch.Get "tempstring") | printf "%s" ) }} - {{ end }} - {{ end }} -{{ end }} - -
-

{{ .Inner | markdownify }}

-
- {{ with $.Scratch.Get "bl_author" }}{{ . }}{{ end }} - {{ with $.Scratch.Get "bl_source" }} - {{ . }} - {{ else }} - {{ with $.Scratch.Get "bl_link" }} - - {{ $.Scratch.Get "bl_title" }} - - {{ else }} - {{ with $.Scratch.Get "bl_title" }} - - {{ $.Scratch.Get "bl_title" }} - - {{ end }} - {{ end }} - {{ end }} -
-
From e3c30b4e41e046c76402bce55233598ee01bb543 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:09:18 +0530 Subject: [PATCH 24/29] Add inTextImg shortcode Allows adding in-line-text images usage in page.md => This image is inlined {{< inTextImg.html url="image.png" >}} here. optional args: - height - alt --- assets/css/common/post-single.css | 5 +++++ layouts/shortcodes/inTextImg.html | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 layouts/shortcodes/inTextImg.html diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 029e215..0f569bf 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -393,4 +393,9 @@ h6:hover .anchor { h1>a>svg { display: inline; +} + +img.in-text { + display: inline; + margin: auto; } \ No newline at end of file diff --git a/layouts/shortcodes/inTextImg.html b/layouts/shortcodes/inTextImg.html new file mode 100644 index 0000000..5e6d84d --- /dev/null +++ b/layouts/shortcodes/inTextImg.html @@ -0,0 +1,5 @@ +{{- $Img := (.Get "url") }} +{{- $height := (.Get "height") }} +{{- $alt := (.Get "alt") }} + +{{$alt}} \ No newline at end of file From 4824f4623d47064ee29c273ad60a7d77f1ca9e0a Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:29:56 +0530 Subject: [PATCH 25/29] Mark External link with an SVG icon in profile-mode buttons and Menu --- layouts/partials/header.html | 8 ++++++++ layouts/partials/index_profile.html | 12 +++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index a2b09a4..732f823 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -131,6 +131,14 @@ {{- .Name -}} {{ .Post -}} + {{- if (findRE "://" .URL) }} + + + + + + {{- end }} {{- end }} diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index 515073e..fe48942 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -35,7 +35,17 @@ From 179fea63a3dea85c8822ab423903fac43c4efbbe Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 8 Jul 2022 20:43:59 +0530 Subject: [PATCH 26/29] Add a space to External link SVG in header menu --- layouts/partials/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 732f823..63cf652 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -131,7 +131,7 @@ {{- .Name -}} {{ .Post -}} - {{- if (findRE "://" .URL) }} + {{- if (findRE "://" .URL) }}  From 29fefb48905e7fefa8663976338872fc55487214 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 8 Jul 2022 23:26:29 +0530 Subject: [PATCH 27/29] Add a space to External link SVG in profile button --- layouts/partials/index_profile.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index fe48942..5d28afa 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -37,7 +37,7 @@ {{ .name }} - {{- if (findRE "://" .url) }} + {{- if (findRE "://" .url) }}  @@ -52,4 +52,4 @@ {{- end }} {{- end}} - \ No newline at end of file + From 621c9f60fbf5fb96415fa2c031d50c83514164a8 Mon Sep 17 00:00:00 2001 From: Jacob Biehler Date: Sat, 9 Jul 2022 09:22:39 +0000 Subject: [PATCH 28/29] Adding Sourcehut SocialIcon (#964) --- layouts/partials/svg.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 8138441..9d8616b 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -484,6 +484,12 @@ +{{- else if (eq $icon_name "sourcehut") -}} + + + + {{- else if (eq $icon_name "spotify") -}} Date: Sat, 9 Jul 2022 20:08:58 +0530 Subject: [PATCH 29/29] Fix Profile Mode imageTitle missing fixes: #945 --- assets/css/common/profile-mode.css | 1 - layouts/partials/index_profile.html | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/css/common/profile-mode.css b/assets/css/common/profile-mode.css index 6826d96..58f2819 100644 --- a/assets/css/common/profile-mode.css +++ b/assets/css/common/profile-mode.css @@ -17,7 +17,6 @@ .profile img { display: inline-table; border-radius: 50%; - pointer-events: none; } .buttons { diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index 5d28afa..c2ff3e6 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -20,10 +20,10 @@ {{- $img = $img.Resize "150x150" }} {{- end }} {{- end }} - {{ .imageTitle | default {{- else }} - {{ .imageTitle | default {{- end }} {{- end }}