Skip to content

Commit

Permalink
Fix broken images in integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofkomanec authored and MarekSuchanek committed Jan 26, 2024
1 parent 417a727 commit cf244bc
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/macros.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,12 @@
{%- endmacro -%}

{%- macro formatOrcid(orcid) -%}
<span class="contact-orcid"><span class="orcid-svg"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="14" id="Layer_1" x="0px" y="0px" viewBox="0 0 256 256" style="enable-background:new 0 0 256 256;" xml:space="preserve">
<style type="text/css">
.st0{fill:#A6CE39;}
.st1{fill:#FFFFFF;}
</style>
<path class="st0" d="M256,128c0,70.7-57.3,128-128,128C57.3,256,0,198.7,0,128C0,57.3,57.3,0,128,0C198.7,0,256,57.3,256,128z"/>
<g>
<path class="st1" d="M86.3,186.2H70.9V79.1h15.4v48.4V186.2z"/>
<path class="st1" d="M108.9,79.1h41.6c39.6,0,57,28.3,57,53.6c0,27.5-21.5,53.6-56.8,53.6h-41.8V79.1z M124.3,172.4h24.5 c34.9,0,42.9-26.5,42.9-39.7c0-21.5-13.7-39.7-43.7-39.7h-23.7V172.4z"/>
<path class="st1" d="M88.7,56.8c0,5.5-4.5,10.1-10.1,10.1c-5.6,0-10.1-4.6-10.1-10.1c0-5.6,4.5-10.1,10.1-10.1 C84.2,46.7,88.7,51.3,88.7,56.8z"/>
</g>
</svg></span>&nbsp;<a href="https://orcid.org/{{ orcid }}" target="_blank">{{ orcid }}</a></span>
<span class="contact-orcid">ORCID: <a href="https://orcid.org/{{ orcid }}" target="_blank">{{ orcid }}</a></span>
{%- endmacro -%}

{%- macro integrationValue(reply) -%}
{%- if reply and reply.value.value.type == "IntegrationType" -%}
{{ reply.value.value.value|markdown }}
{{ reply.value.value.value.rsplit(" ![]")[0]|markdown }}
{%- elif reply %}
{{ reply.value.value.value }}
{%- endif -%}
Expand Down

0 comments on commit cf244bc

Please sign in to comment.