Skip to content

Commit 650ffa4

Browse files
committed
Update home page render
1 parent c99b6aa commit 650ffa4

2 files changed

Lines changed: 9 additions & 19 deletions

File tree

_includes/navigation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
</button>
66
<div class="collapse navbar-collapse" id="navbarNav">
77
<ul class="navbar-nav mr-auto">
8-
{% assign mypages = site.pages | sort: "order" %}
8+
{% assign mypages = site.pages | sort: "order" %}
99
{% for page in mypages %}
1010
{% if page.order != null %}
11-
<li class="nav-item"><a class="nav-link" href="{{ page.url | absolute_url }}">{{ page.title }}</a></li>
11+
<li class="nav-item"><a class="nav-link" href="{{ page.url | relative_url }}">{{ page.title }}</a></li>
1212
{% endif %}
1313
{% endfor %}
1414
<li class="nav-item">

index.html

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,15 @@
55
---
66

77
<article class="card-group">
8+
{% assign mypages = site.pages | sort: "order" %}
9+
{% for page in mypages %}
10+
{% if page.order != null %}
811
<section class="card text-center card-body">
9-
<h1 class="card-title">Videos</h1>
10-
<a href="videos.html" title="Videos" class="btn btn-amber">Go</a>
11-
</section>
12-
13-
<section class="card text-center card-body">
14-
<h1 class="card-title">Learning</h1>
15-
<a href="learning.html" title="Learning" class="btn btn-amber">Go</a>
16-
</section>
17-
18-
<section class="card text-center card-body">
19-
<h1 class="card-title">Heroes</h1>
20-
<a href="heroes.html" title="Heroes" class="btn btn-amber">Go</a>
21-
</section>
22-
23-
<section class="card text-center card-body">
24-
<h1 class="card-title">Projects</h1>
25-
<a href="project-ideas.html" title="Project Ideas" class="btn btn-amber">Go</a>
12+
<h1 class="card-title">{{ page.title }}</h1>
13+
<a href="{{ page.url | relative_url }}" title="{{ page.title }}" class="btn btn-amber">Go</a>
2614
</section>
15+
{% endif %}
16+
{% endfor %}
2717
</article>
2818

2919
<article>

0 commit comments

Comments
 (0)