File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
< header class ="site-header " role ="banner ">
2
2
3
3
< div class ="wrapper ">
4
-
5
- < a class ="site-title " href ="{{ "/" | relative_url}}"> {{ site.title | escape }}</ a >
4
+ {% assign default_paths = site.pages | map: "path" %}
5
+ {% assign page_paths = site.header_pages | default: default_paths %}
6
+ < a class ="site-title " href ="{{ "/" | relative_url }}"> {{ site.title | escape }}</ a >
6
7
7
8
< nav class ="site-nav ">
8
9
< span class ="menu-icon ">
14
15
</ span >
15
16
16
17
< div class ="trigger ">
17
- {% for my_page in site.pages %}
18
+ {% for path in page_paths %}
19
+ {% assign my_page = site.pages | where: "path", path | first %}
18
20
{% if my_page.title %}
19
21
< a class ="page-link " href ="{{ my_page.url | relative_url }} "> {{ my_page.title | escape }}</ a >
20
22
{% endif %}
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ baseurl: "/minima"
9
9
twitter_username : jekyllrb
10
10
github_username : jekyll
11
11
12
+ # If you want to link only specific pages in your header, uncomment
13
+ # this and add the path to the pages in order as they should show up
14
+ # header_pages:
15
+ # - about.html
16
+
12
17
# Build settings
13
18
markdown : kramdown
14
19
theme : minima
You can’t perform that action at this time.
0 commit comments