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"
|
class="responsive-img-srcset"
|
||||||
{% if ext == 'gif' or ext == 'jpeg' or ext == 'jpg' or ext == 'png' or ext == 'tiff' %}
|
{% 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"
|
type="image/webp"
|
||||||
{% else %}
|
{% else %}
|
||||||
srcset="{{ include.path | relative_url }}"
|
srcset="{{ include.path | relative_url }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if include.sizes %}
|
{% if include.sizes %}
|
||||||
sizes="{{include.sizes}}"
|
sizes="{{ include.sizes }}"
|
||||||
{% else %}
|
{% else %}
|
||||||
sizes="95vw"
|
sizes="95vw"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@ -105,11 +105,11 @@
|
|||||||
{% assign sameaslinks = sameaslinks | push: link %}
|
{% assign sameaslinks = sameaslinks | push: link %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if site.research_gate_profile %}
|
{% 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 %}
|
{% assign sameaslinks = sameaslinks | push: link %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if site.scopus_id %}
|
{% 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 %}
|
{% assign sameaslinks = sameaslinks | push: link %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if site.github_username %}
|
{% if site.github_username %}
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
{% if paginator.page_trail %}
|
{% if paginator.page_trail %}
|
||||||
{% for trail in paginator.page_trail %}
|
{% for trail in paginator.page_trail %}
|
||||||
<li class="page-item {% if page.url == trail.path %}active{% endif %}">
|
<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>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
function () {
|
function () {
|
||||||
(window.cronitor.q = window.cronitor.q || []).push(arguments);
|
(window.cronitor.q = window.cronitor.q || []).push(arguments);
|
||||||
};
|
};
|
||||||
cronitor('config', { clientKey: '{{site.cronitor_analytics}}' });
|
cronitor('config', { clientKey: '{{ site.cronitor_analytics }}' });
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if site.enable_pirsch_analytics %}
|
{% if site.enable_pirsch_analytics %}
|
||||||
|
|||||||
@ -215,7 +215,7 @@
|
|||||||
title: 'ResearchGate',
|
title: 'ResearchGate',
|
||||||
section: 'Socials',
|
section: 'Socials',
|
||||||
handler: () => {
|
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 -%}
|
{%- endif -%}
|
||||||
@ -225,7 +225,7 @@
|
|||||||
title: 'IEEE Xplore',
|
title: 'IEEE Xplore',
|
||||||
section: 'Socials',
|
section: 'Socials',
|
||||||
handler: () => {
|
handler: () => {
|
||||||
window.open("https://ieeexplore.ieee.org/author/{{site.ieee_id}}/", "_blank");
|
window.open("https://ieeexplore.ieee.org/author/{{ site.ieee_id }}/", "_blank");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
@ -235,7 +235,7 @@
|
|||||||
title: 'ACM DL',
|
title: 'ACM DL',
|
||||||
section: 'Socials',
|
section: 'Socials',
|
||||||
handler: () => {
|
handler: () => {
|
||||||
window.open("https://dl.acm.org/profile/{{site.acm_id}}/", "_blank");
|
window.open("https://dl.acm.org/profile/{{ site.acm_id }}/", "_blank");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
@ -245,7 +245,7 @@
|
|||||||
title: 'Scopus',
|
title: 'Scopus',
|
||||||
section: 'Socials',
|
section: 'Socials',
|
||||||
handler: () => {
|
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 -%}
|
{%- endif -%}
|
||||||
|
|||||||
@ -29,16 +29,16 @@
|
|||||||
<a href="https://osf.io/{{ site.osf_id }}/" title="Open Science Framework"><i class="ai ai-osf"></i></a>
|
<a href="https://osf.io/{{ site.osf_id }}/" title="Open Science Framework"><i class="ai ai-osf"></i></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if site.research_gate_profile %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% if site.ieee_id %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% if site.acm_id %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% if site.scopus_id %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% if site.github_username %}
|
{% if site.github_username %}
|
||||||
<a href="https://github.com/{{ site.github_username }}" title="GitHub"><i class="fa-brands fa-github"></i></a>
|
<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
|
{% assign profile_image_class = 'img-fluid z-depth-1
|
||||||
rounded' %}
|
rounded' %}
|
||||||
{% endif %}
|
{% 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 %}
|
30vw, 95vw"{% endcapture %}
|
||||||
{%
|
{%
|
||||||
include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=page.profile.image
|
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 %}
|
{% else %}
|
||||||
{% assign profile_image_class = 'img-fluid z-depth-1 rounded' %}
|
{% assign profile_image_class = 'img-fluid z-depth-1 rounded' %}
|
||||||
{% endif %}
|
{% 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 %}
|
{% include figure.liquid loading="eager" path=profile_image_path class=profile_image_class sizes=sizes alt=profile.image %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if profile.more_info %}
|
{% if profile.more_info %}
|
||||||
|
|||||||
@ -179,7 +179,7 @@ pagination:
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-sm-3">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user