From 3253ef452bb88d14269fa77c53b57cf8a423f875 Mon Sep 17 00:00:00 2001 From: Ben Companjen Date: Thu, 6 Mar 2025 18:08:30 +0100 Subject: [PATCH 1/3] Remove some whitespace-only lines in loops --- _layouts/manuscript.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/_layouts/manuscript.html b/_layouts/manuscript.html index 12daf0f..ff1b6a2 100644 --- a/_layouts/manuscript.html +++ b/_layouts/manuscript.html @@ -21,21 +21,23 @@

{{ page.title }}

Questions

    - {% for q in page.questions %}
  1. {{ site.data.questions[q] }}
  2. {% endfor %} + {%- for q in page.questions %} +
  3. {{ site.data.questions[q] }}
  4. + {%- endfor %}
{% endif %}
From 203de604cac13f93dd3740d4cf9eb80934f9ffed Mon Sep 17 00:00:00 2001 From: Ben Companjen Date: Wed, 12 Mar 2025 17:17:10 +0100 Subject: [PATCH 2/3] Remove more whitespace around liquid tags --- _layouts/default-ms.html | 8 ++++---- _layouts/single-ms.html | 29 ++++++++++++++--------------- 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/_layouts/default-ms.html b/_layouts/default-ms.html index 22866d6..985283d 100644 --- a/_layouts/default-ms.html +++ b/_layouts/default-ms.html @@ -23,20 +23,20 @@ {{ content }} - {% if site.search == true %} + {%- if site.search == true -%}
{% include_cached search/search_form.html %}
- {% endif %} + {%- endif %} - {% include scripts.html %} + {%- include scripts.html %} \ No newline at end of file diff --git a/_layouts/single-ms.html b/_layouts/single-ms.html index 59b5be3..906de9f 100644 --- a/_layouts/single-ms.html +++ b/_layouts/single-ms.html @@ -2,13 +2,13 @@ layout: default-ms --- -{% if page.header.overlay_color or page.header.overlay_image or page.header.image %} +{%- if page.header.overlay_color or page.header.overlay_image or page.header.image %} {% include page__hero.html %} {% elsif page.header.video.id and page.header.video.provider %} {% include page__hero_video.html %} {% endif %} -{% if page.url != "/" and site.breadcrumbs %} +{%- if page.url != "/" and site.breadcrumbs %} {% unless paginator %} {% include breadcrumbs.html %} {% endunless %} @@ -24,17 +24,16 @@ {% if page.last_modified_at %}{% endif %}
- {% unless page.header.overlay_color or page.header.overlay_image %} + {%- unless page.header.overlay_color or page.header.overlay_image %}
- - {% if page.read_time %} + {%- if page.read_time %}

{% include read-time.html %}

- {% endif %} + {%- endif %}
- {% endunless %} + {%- endunless %}
- {% if page.toc %} + {%- if page.toc %}
- {% if site.data.ui-text[site.locale].meta_label %} + {%- if site.data.ui-text[site.locale].meta_label %}

{{ site.data.ui-text[site.locale].meta_label }}

{% endif %} - {% if page.last_modified_at %} + {%- if page.last_modified_at %}

{{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}

- {% elsif page.date %} + {%- elsif page.date %}

{{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}

- {% endif %} + {%- endif %}
- {% if page.share %}{% include social-share.html %}{% endif %} + {%- if page.share %}{% include social-share.html %}{% endif %} {% include post_pagination.html %}
- {% if jekyll.environment == 'production' and site.comments.provider and page.comments %} + {%- if jekyll.environment == 'production' and site.comments.provider and page.comments %} {% include comments.html %} - {% endif %} + {%- endif %} {% comment %}{% endcomment %} From d54d7be0bbef215e1abbdcfbf106e661e3eff688 Mon Sep 17 00:00:00 2001 From: Ben Companjen Date: Wed, 30 Apr 2025 20:55:03 +0200 Subject: [PATCH 3/3] Make section headings level h2 --- _layouts/manuscript.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_layouts/manuscript.html b/_layouts/manuscript.html index ff1b6a2..3280cec 100644 --- a/_layouts/manuscript.html +++ b/_layouts/manuscript.html @@ -19,7 +19,7 @@

{{ page.title }}

{% if page.questions %}
-

Questions

+

Questions

    {%- for q in page.questions %}
  1. {{ site.data.questions[q] }}
  2. @@ -28,7 +28,7 @@

    {{ page.title }}

{% endif %}
-

Literature

+

Literature

{% bibliography --cited %}