Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardized spaces for liquid tags #2802

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _includes/figure.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
class="responsive-img-srcset"
{% if ext == 'gif' or ext == 'jpeg' or ext == 'jpg' or ext == 'png' or ext == 'tiff' %}
srcset="{% for i in site.imagemagick.widths %}{{ img_path | relative_url }}-{{ i }}.webp {{i}}w,{% endfor %}"
srcset="{% for i in site.imagemagick.widths %}{{ img_path | relative_url }}-{{ i }}.webp {{ i }}w,{% endfor %}"
type="image/webp"
{% else %}
srcset="{{ include.path | relative_url }}"
{% endif %}
{% if include.sizes %}
sizes="{{include.sizes}}"
sizes="{{ include.sizes }}"
{% else %}
sizes="95vw"
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions _includes/metadata.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@
{% assign sameaslinks = sameaslinks | push: link %}
{% endif %}
{% if site.research_gate_profile %}
{% capture link %}https://www.researchgate.net/profile/{{site.research_gate_profile}}{% endcapture %}
{% capture link %}https://www.researchgate.net/profile/{{ site.research_gate_profile }}{% endcapture %}
{% assign sameaslinks = sameaslinks | push: link %}
{% endif %}
{% if site.scopus_id %}
{% capture link %}https://www.scopus.com/authid/detail.uri?authorId={{site.scopus_id}}{% endcapture %}
{% capture link %}https://www.scopus.com/authid/detail.uri?authorId={{ site.scopus_id }}{% endcapture %}
{% assign sameaslinks = sameaslinks | push: link %}
{% endif %}
{% if site.github_username %}
Expand Down
2 changes: 1 addition & 1 deletion _includes/pagination.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% if paginator.page_trail %}
{% for trail in paginator.page_trail %}
<li class="page-item {% if page.url == trail.path %}active{% endif %}">
<a class="page-link" href="{{ trail.path | relative_url | remove: 'index.html' }}" title="{{trail.title}}">{{ trail.num }}</a>
<a class="page-link" href="{{ trail.path | relative_url | remove: 'index.html' }}" title="{{ trail.title }}">{{ trail.num }}</a>
</li>
{% endfor %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion _includes/scripts/analytics.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
function () {
(window.cronitor.q = window.cronitor.q || []).push(arguments);
};
cronitor('config', { clientKey: '{{site.cronitor_analytics}}' });
cronitor('config', { clientKey: '{{ site.cronitor_analytics }}' });
</script>
{% endif %}
{% if site.enable_pirsch_analytics %}
Expand Down
8 changes: 4 additions & 4 deletions _includes/scripts/search.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
title: 'ResearchGate',
section: 'Socials',
handler: () => {
window.open("https://www.researchgate.net/profile/{{site.research_gate_profile}}/", "_blank");
window.open("https://www.researchgate.net/profile/{{ site.research_gate_profile }}/", "_blank");
},
},
{%- endif -%}
Expand All @@ -225,7 +225,7 @@
title: 'IEEE Xplore',
section: 'Socials',
handler: () => {
window.open("https://ieeexplore.ieee.org/author/{{site.ieee_id}}/", "_blank");
window.open("https://ieeexplore.ieee.org/author/{{ site.ieee_id }}/", "_blank");
},
},
{%- endif -%}
Expand All @@ -235,7 +235,7 @@
title: 'ACM DL',
section: 'Socials',
handler: () => {
window.open("https://dl.acm.org/profile/{{site.acm_id}}/", "_blank");
window.open("https://dl.acm.org/profile/{{ site.acm_id }}/", "_blank");
},
},
{%- endif -%}
Expand All @@ -245,7 +245,7 @@
title: 'Scopus',
section: 'Socials',
handler: () => {
window.open("https://www.scopus.com/authid/detail.uri?authorId={{site.scopus_id}}", "_blank");
window.open("https://www.scopus.com/authid/detail.uri?authorId={{ site.scopus_id }}", "_blank");
},
},
{%- endif -%}
Expand Down
8 changes: 4 additions & 4 deletions _includes/social.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@
<a href="https://osf.io/{{ site.osf_id }}/" title="Open Science Framework"><i class="ai ai-osf"></i></a>
{% endif %}
{% if site.research_gate_profile %}
<a href="https://www.researchgate.net/profile/{{site.research_gate_profile}}/" title="ResearchGate"><i class="ai ai-researchgate"></i></a>
<a href="https://www.researchgate.net/profile/{{ site.research_gate_profile }}/" title="ResearchGate"><i class="ai ai-researchgate"></i></a>
{% endif %}
{% if site.ieee_id %}
<a href="https://ieeexplore.ieee.org/author/{{site.ieee_id}}/" title="IEEE Xplore"><i class="ai ai-ieee"></i></a>
<a href="https://ieeexplore.ieee.org/author/{{ site.ieee_id }}/" title="IEEE Xplore"><i class="ai ai-ieee"></i></a>
{% endif %}
{% if site.acm_id %}
<a href="https://dl.acm.org/profile/{{site.acm_id}}/" title="ACM DL"><i class="ai ai-acm"></i></a>
<a href="https://dl.acm.org/profile/{{ site.acm_id }}/" title="ACM DL"><i class="ai ai-acm"></i></a>
{% endif %}
{% if site.scopus_id %}
<a href="https://www.scopus.com/authid/detail.uri?authorId={{site.scopus_id}}" title="Scopus"><i class="ai ai-scopus"></i></a>
<a href="https://www.scopus.com/authid/detail.uri?authorId={{ site.scopus_id }}" title="Scopus"><i class="ai ai-scopus"></i></a>
{% endif %}
{% if site.github_username %}
<a href="https://github.com/{{ site.github_username }}" title="GitHub"><i class="fa-brands fa-github"></i></a>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/about.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ layout: default
{% assign profile_image_class = 'img-fluid z-depth-1
rounded' %}
{% endif %}
{% capture sizes %}(min-width: {{site.max_width}}) {{ site.max_width | minus: 30 | times: 0.3}}px, (min-width: 576px)
{% capture sizes %}(min-width: {{ site.max_width }}) {{ site.max_width | minus: 30 | times: 0.3}}px, (min-width: 576px)
30vw, 95vw"{% endcapture %}
{%
include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=page.profile.image
Expand Down
2 changes: 1 addition & 1 deletion _layouts/profiles.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ layout: page
{% else %}
{% assign profile_image_class = 'img-fluid z-depth-1 rounded' %}
{% endif %}
{% capture sizes %}(min-width: {{site.max_width}}) {{ site.max_width | minus: 30 | times: 0.3}}px, (min-width: 576px) 30vw, 95vw"{% endcapture %}
{% capture sizes %}(min-width: {{ site.max_width }}) {{ site.max_width | minus: 30 | times: 0.3}}px, (min-width: 576px) 30vw, 95vw"{% endcapture %}
{% include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=profile.image %}
{% endif %}
{% if profile.more_info %}
Expand Down
2 changes: 1 addition & 1 deletion _pages/blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ pagination:
</div>

<div class="col-sm-3">
<img class="card-img" src="{{post.thumbnail | relative_url}}" style="object-fit: cover; height: 90%" alt="image">
<img class="card-img" src="{{ post.thumbnail | relative_url }}" style="object-fit: cover; height: 90%" alt="image">
</div>
</div>
{% endif %}
Expand Down