Skip to content

Commit b68131f

Browse files
Added automatic footer links generation for the site navigation links (home and contact should work now).
1 parent 0a60c9b commit b68131f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

_includes/footer.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ <h2 class="footer__section-title">Our Sponsors</h2>
4646
<div class="col-md-3">
4747
<h2 class="footer__section-title">Python Sprints</h2>
4848
<hr class="footer__divider">
49-
<a class="footer__link" href="#" target="_blank">About</a>
50-
<a class="footer__link" href="#" target="_blank">Getting Started</a>
51-
<a class="footer__link" href="#" target="_blank">Projects</a>
52-
<a class="footer__link" href="#" target="_blank">Contact</a>
53-
<a class="footer__link" href="#" target="_blank">Credits</a>
49+
<a class="footer__link" href="{{ '/' | prepend: site.baseurl }}">Home</a>
50+
{% for page in site.pages %}
51+
{% if page.title %}
52+
<a class="footer__link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
53+
{% endif %}
54+
{% endfor %}
5455
</div>
5556
</div>
5657

0 commit comments

Comments
 (0)