|
1 |
| -{% if page.header.image contains "://" %} |
2 |
| - {% capture img_path %}{{ page.header.image }}{% endcapture %} |
3 |
| -{% else %} |
4 |
| - {% capture img_path %}{{ page.header.image | relative_url }}{% endcapture %} |
5 |
| -{% endif %} |
6 |
| - |
7 |
| -{% if page.header.cta_url contains "://" %} |
8 |
| - {% capture cta_path %}{{ page.header.cta_url }}{% endcapture %} |
9 |
| -{% else %} |
10 |
| - {% capture cta_path %}{{ page.header.cta_url | relative_url }}{% endcapture %} |
11 |
| -{% endif %} |
12 |
| - |
13 |
| -{% if page.header.overlay_image contains "://" %} |
14 |
| - {% capture overlay_img_path %}{{ page.header.overlay_image }}{% endcapture %} |
15 |
| -{% elsif page.header.overlay_image %} |
16 |
| - {% capture overlay_img_path %}{{ page.header.overlay_image | relative_url }}{% endcapture %} |
17 |
| -{% endif %} |
| 1 | +{% capture overlay_img_path %}{{ page.header.overlay_image | relative_url }}{% endcapture %} |
18 | 2 |
|
19 | 3 | {% if page.header.overlay_filter contains "rgba" %}
|
20 | 4 | {% capture overlay_filter %}{{ page.header.overlay_filter }}{% endcapture %}
|
@@ -51,22 +35,17 @@ <h1 id="page-title" class="page__title" itemprop="headline">
|
51 | 35 | <p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p>
|
52 | 36 | {% endif %}
|
53 | 37 | {% if page.header.cta_url %}
|
54 |
| - <p><a href="{{ cta_path }}" class="btn btn--light-outline btn--large">{{ page.header.cta_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a></p> |
| 38 | + <p><a href="{{ page.header.cta_url | relative_url }}" class="btn btn--light-outline btn--large">{{ page.header.cta_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a></p> |
55 | 39 | {% endif %}
|
56 | 40 | {% if page.header.actions %}
|
57 | 41 | <p>
|
58 | 42 | {% for action in page.header.actions %}
|
59 |
| - {% if action.url contains "://" %} |
60 |
| - {% assign url = action.url %} |
61 |
| - {% else %} |
62 |
| - {% assign url = action.url | relative_url %} |
63 |
| - {% endif %} |
64 |
| - <a href="{{ url }}" class="btn btn--light-outline btn--large">{{ action.label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a> |
| 43 | + <a href="{{ action.url | relative_url }}" class="btn btn--light-outline btn--large">{{ action.label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a> |
65 | 44 | {% endfor %}
|
66 | 45 | {% endif %}
|
67 | 46 | </div>
|
68 | 47 | {% else %}
|
69 |
| - <img src="{{ img_path }}" alt="{{ image_description }}" class="page__hero-image"> |
| 48 | + <img src="{{ pade.header.image | relative_url }}" alt="{{ image_description }}" class="page__hero-image"> |
70 | 49 | {% endif %}
|
71 | 50 | {% if page.header.caption %}
|
72 | 51 | <span class="page__hero-caption">{{ page.header.caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
|
|
0 commit comments