From a75e534ac5c7807168e23c020f466a9227bf9392 Mon Sep 17 00:00:00 2001 From: Vincent Rubinetti Date: Fri, 31 Jan 2025 13:07:15 -0500 Subject: [PATCH 1/4] fix home page tab title --- _includes/meta.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/meta.html b/_includes/meta.html index e063b5fb41..3977a8f535 100644 --- a/_includes/meta.html +++ b/_includes/meta.html @@ -10,10 +10,10 @@ {% assign title = title | xml_escape %} {% assign fulltitle = "" | split: "," %} -{% if title %} +{% if title and title != "" %} {% assign fulltitle = fulltitle | push: title %} {% endif %} -{% if site.title %} +{% if site.title and site.title != "" %} {% assign fulltitle = fulltitle | push: site.title %} {% endif %} {% assign fulltitle = fulltitle | join: " | " %} From 3a5038ce35246cc7c62c3bfd764ab0aec2aeed80 Mon Sep 17 00:00:00 2001 From: Vincent Rubinetti Date: Fri, 31 Jan 2025 14:00:10 -0500 Subject: [PATCH 2/4] fix invalid scheme format bug --- _includes/content.html | 12 +++++++++--- _includes/section.html | 6 +++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/_includes/content.html b/_includes/content.html index 6f8e026847..f92016e32e 100644 --- a/_includes/content.html +++ b/_includes/content.html @@ -10,12 +10,18 @@ {% assign sections = content | split: "" | array_filter %} {% for section in sections %} - {% assign dark = section | regex_scan: "dark: (.*);" | default: "" %} + {% assign dark = section + | regex_scan: "(.*?)" + | default: "" + %} {% assign image = section - | regex_scan: "background: (.*);" + | regex_scan: "(.*?)" | default: nil %} - {% assign size = section | regex_scan: "size: (.*);" | default: "page" %} + {% assign size = section + | regex_scan: "(.*?)" + | default: "page" + %}
From baed0af8d616e28c8d08a64455319a711c240b31 Mon Sep 17 00:00:00 2001 From: Vincent Rubinetti Date: Fri, 31 Jan 2025 15:51:18 -0500 Subject: [PATCH 3/4] extra protection against bug --- _includes/post-excerpt.html | 1 + 1 file changed, 1 insertion(+) diff --git a/_includes/post-excerpt.html b/_includes/post-excerpt.html index 3e33745f76..e2d2b037ee 100644 --- a/_includes/post-excerpt.html +++ b/_includes/post-excerpt.html @@ -48,6 +48,7 @@ | strip_html %} {% assign search = post.content + | strip_html | strip_newlines | regex_strip %} From 0bd0d4e5aec83bc7d89c18c22ed1d9faad9d3739 Mon Sep 17 00:00:00 2001 From: Vincent Rubinetti Date: Fri, 31 Jan 2025 15:53:35 -0500 Subject: [PATCH 4/4] update version --- CHANGELOG.md | 6 ++++++ CITATION.cff | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63d03ae9b8..7ee582cebd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ Reference: common-changelog.org +## 1.3.4 - 2025-02-03 + +### Changed + +- Fix section component parsing bug. + ## 1.3.3 - 2025-01-25 ### Changed diff --git a/CITATION.cff b/CITATION.cff index 32dbad975c..a63171ea86 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -1,8 +1,8 @@ # citation metadata for the template itself title: "Lab Website Template" -version: 1.3.3 -date-released: 2025-01-25 +version: 1.3.4 +date-released: 2025-02-03 url: "https://github.com/greenelab/lab-website-template" authors: - family-names: "Rubinetti"