|
|
|
@ -1,4 +1,12 @@ |
|
|
|
<%- content_for :title, node_title(@node) %> |
|
|
|
<%- |
|
|
|
|
|
|
|
attachment = @node.attachments.limit(1)[0] |
|
|
|
|
|
|
|
article_parts = parse_article_html(attachment&.body) |
|
|
|
|
|
|
|
content_for :title, @node.page_title.blank? ? article_parts[:title] : @node.page_title |
|
|
|
content_for :meta_description, @node.page_description.blank? ? article_parts[:description] : @node.page_description |
|
|
|
%> |
|
|
|
|
|
|
|
<article class="link__container"> |
|
|
|
|
|
|
|
@ -21,12 +29,12 @@ |
|
|
|
<% end %> |
|
|
|
|
|
|
|
<div class="link__body"> |
|
|
|
<%= attachment.body.html_safe %> |
|
|
|
<%= article_parts[:html]&.html_safe %> |
|
|
|
</div> |
|
|
|
|
|
|
|
<%= tag.div class: "link__learn-more" do %> |
|
|
|
<%= link_to t('learn_more'), @node.href %> |
|
|
|
<% end %> |
|
|
|
<%= article_parts[:link].html_safe %> |
|
|
|
<% end if article_parts[:link] %> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
|
|
@ -35,7 +43,7 @@ |
|
|
|
<ul class="link__ctas"> |
|
|
|
<li><%= link_to t('spot_another_link'), @node.parent.url, class: 'button__base' %></li> |
|
|
|
<li> |
|
|
|
<button type="button" class="button__base button__base-light" data-share-url="<%= root_url %>"> |
|
|
|
<button type="button" class="button__base button__base-light" data-share-title="<%= yield(:title) %>" data-share-text="<%= strip_tags(t('can_you_spot_the_link')) %>"> |
|
|
|
<%= t 'challange_a_friend' %> |
|
|
|
</button> |
|
|
|
</li> |
|
|
|
|