Skip to content

Commit 7c79c14

Browse files
committed
fix relative url in site preview
1 parent 233f088 commit 7c79c14

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

_consulting/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ photos:
2020
<div class="column is-one-third">
2121
<div class="card">
2222
<div class="card-content">
23-
<h2 class="title is-4"><a href="{{ service.url }}">{{ service.title }}</a></h2>
23+
<h2 class="title is-4"><a href="{{ service.url | relative_url }}">{{ service.title }}</a></h2>
2424
<p class="content">{{ service.excerpt }}</p>
2525
</div>
2626
</div>

_includes/related-posts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h2 class="section-title is-size-3">{{ include.title | default: "Related posts"
4242
<div class="card-content">
4343
<div class="content">
4444
<div class="title">
45-
<a href="{{ post.url }}">
45+
<a href="{{ post.url | relative_url }}">
4646
<p>{{ post.title | escape }}</p>
4747
</a>
4848
</div>

_layouts/posts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
{% if post.external %}
3333
<a href="{{ post.external }}"><p>{{ post.title | escape }}</p></a>
3434
{% else %}
35-
<a href="{{ post.url }}">
35+
<a href="{{ post.url | relative_url }}">
3636
<p>{{ post.title | escape }}</p>
3737
</a>
3838
{% endif %}

events-and-outreach.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Past and upcoming events either organised by OLS or where OLS presented.
3434
<td> {{ event.date_start | date: date_format }} {% if event.date_end %} - {{ event.date_end | date: date_format }}{% endif %} </td>
3535
<td>{{ event.type | capitalize }}</td>
3636
<td>
37-
<a class="eventtable-title" href="{% if event.external %}{{ event.external }}{% else %}{{ event.url }}{% endif %}">{{ event.title }}</a>
37+
<a class="eventtable-title" href="{% if event.external %}{{ event.external }}{% else %}{{ event.url | relative_url }}{% endif %}">{{ event.title }}</a>
3838
<br>
3939
<span class="eventtable-description">{{ event.description }}</span>
4040
</td>

policies-procedures-and-docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ photos:
1313
{% for doc in site.pages %}
1414
{% if doc.url contains "/policies-procedures-and-docs/" or doc.url contains "/openseeds/cohort-procedures-and-templates" %}
1515
<li>
16-
<a href="{{ doc.url }}">{{ doc.title }}</a>
16+
<a href="{{ doc.url | relative_url }}">{{ doc.title }}</a>
1717
</li>
1818
{% endif %}
1919
{% endfor %}

0 commit comments

Comments
 (0)