Skip to content
Merged
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
17 changes: 11 additions & 6 deletions website/modules/case-studies-page/views/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,18 +168,23 @@ <h2 class="portfolio-title">{{ data.piece.portfolioTitle }}</h2>
<div class="links-area">
{% if data.piece.fullStoryUrl %}
<a
href="{{ data.piece.fullStoryUrl }}"
target="_blank"
rel="noopener noreferrer"
class="full-story_btn"
>Read The Full Story</a
href="{{ data.piece.fullStoryUrl }}"
target="_blank"
rel="noopener noreferrer"
class="full-story_btn"
>Read The Full Story</a
>
{% endif %} {% if data.piece.prodLink %}
{# Remove path/query/fragment #}
{% set urlWithoutProtocol = data.piece.prodLink | replace('https://', '') | replace('http://', '') %}
{% set domainWithOrWithoutWww = urlWithoutProtocol.split('/')[0] %}
{% set cleanDomain = domainWithOrWithoutWww | trim | replace('www.', '') %}
Comment thread
VitalyyP marked this conversation as resolved.
<a
href="{{ data.piece.prodLink }}"
target="_blank"
class="prod-link"
>{{ data.piece.prodLink }}</a
rel="noopener noreferrer"
>{{ cleanDomain }}</a
>
{% endif %}
</div>
Expand Down
Loading