Standardized spaces for liquid tags (#2802)
Signed-off-by: George Araújo <george.gcac@gmail.com>
This commit is contained in:
parent
4184a06a42
commit
eae72d8719
@ -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 %}
|
||||
|
||||
@ -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 %}
|
||||
|
||||
@ -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 %}
|
||||
|
||||
@ -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 %}
|
||||
|
||||
@ -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 -%}
|
||||
@ -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 -%}
|
||||
@ -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 -%}
|
||||
@ -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 -%}
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 %}
|
||||
|
||||
@ -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 %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user