Skip to content

Commit 7507813

Browse files
committed
fixed baseurl issue in layout links
1 parent 67c6bbd commit 7507813

4 files changed

Lines changed: 10 additions & 11 deletions

File tree

_config.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ links:
2323
url: https://github.com/StaPH-B/midwest-region
2424
homepage:
2525
- title: Trainings
26-
icon:
26+
icon:
2727
brand: false
2828
url: https://github.com/StaPH-B/midwest-region/trainings.html
2929
- title: Resources
30-
icon:
30+
icon:
3131
brand: false
3232
url: resources.html
3333
- title: Events
34-
icon:
34+
icon:
3535
brand: false
3636
url: events.html
3737
# - title: Consultations
38-
# icon:
38+
# icon:
3939
# brand: false
4040
# url: consultations.html
4141

@@ -101,5 +101,4 @@ exclude:
101101
- LICENSE.md
102102
- README.md
103103
- screenshot.png
104-
105-
exclude: ["templates/"]
104+
- templates/

_layouts/events.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="cards-wrapper">
1818
{% for event in site.events %}
1919
<div class="card-container">
20-
<a href="{{ event.url }}">
20+
<a href="{{ site.baseurl }}{{ event.url }}">
2121
<div class="card">
2222
<p class="heading">{{ event.title }}</p>
2323
<p class="para">{{ event.description }}</p>
@@ -31,4 +31,4 @@
3131

3232
{% include footer/full.html %}
3333
</body>
34-
</html>
34+
</html>

_layouts/resources.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="cards-wrapper">
1818
{% for resource in site.resources %}
1919
<div class="card-container">
20-
<a href="{{ resource.url }}">
20+
<a href="{{ site.baseurl }}{{ resource.url }}">
2121
<div class="card">
2222
<p class="heading">{{ resource.title }}</p>
2323
<p class="para">{{ resource.description }}</p>
@@ -31,4 +31,4 @@
3131

3232
{% include footer/full.html %}
3333
</body>
34-
</html>
34+
</html>

_layouts/trainings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="cards-wrapper">
1818
{% for training in site.trainings %}
1919
<div class="card-container">
20-
<a href="{{ training.url }}">
20+
<a href="{{ site.baseurl }}{{ training.url }}">
2121
<div class="card">
2222
<p class="heading">{{ training.title }}</p>
2323
<p class="para">{{ training.description }}</p>

0 commit comments

Comments
 (0)