File tree Expand file tree Collapse file tree 3 files changed +32
-11
lines changed
Expand file tree Collapse file tree 3 files changed +32
-11
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,23 @@ included. Follow the instructions below for complete setup.
32323. Install the theme by running `bundle install` inside your site directory.
33334. Replace the current theme in your `_config.yml` file with
3434`theme: jekyll-theme-cleaner-blog`.
35- 5. Build your site: `bundle exec jekyll serve`
35+ 5. Add the following variable to your `_config.yml`:
36+ ```yaml
37+ navigation:
38+ - name: Home
39+ link: /
40+ - name: About
41+ link: /about/
42+ - name: Posts
43+ link: /posts/
44+ - name: Contact
45+ link: /contact/
46+ ```
47+
48+ This describes the navbar at the top of your site. If it is not present,
49+ there will be no links on your navbar. You can add or remove links here to
50+ customize your navigation.
51+ 6. Build your site: `bundle exec jekyll serve`
3652
3753Assuming there are no errors and the site is building properly, follow these
3854steps next:
@@ -84,6 +100,7 @@ matter. Example:
84100 see how the files are set up.
85101
86102<!-- TODO:
103+
871045. Add the form to the `contact.html` page. Add the following code to your
88105`contact.html` page:
89106
Original file line number Diff line number Diff line change @@ -5,6 +5,17 @@ author: btc-raspberrypiclub
55baseurl : " /cleaner-blog-jekyll"
66url : " https://btc-raspberrypiclub.github.io"
77
8+ # Navigation links
9+ navigation :
10+ - name : Home
11+ link : /
12+ - name : About
13+ link : /about/
14+ - name : Posts
15+ link : /posts/
16+ - name : Contact
17+ link : /contact/
18+
819# Social Profiles
920twitter_username :
1021github_username : btc-raspberrypiclub
Original file line number Diff line number Diff line change 88 </ button >
99 < div class ="collapse navbar-collapse " id ="navbarResponsive ">
1010 < ul class ="navbar-nav ms-auto ">
11+ {% for item in site.navigation %}
1112 < li class ="nav-item ">
12- < a class ="nav-link " href ="{{ "/" | relative_url }}"> Home</ a >
13- </ li >
14- < li class ="nav-item ">
15- < a class ="nav-link " href ="{{ "/about" | relative_url }}"> About</ a >
16- </ li >
17- < li class ="nav-item ">
18- < a class ="nav-link " href ="{{ "/posts" | relative_url }}"> Posts</ a >
19- </ li >
20- < li class ="nav-item ">
21- < a class ="nav-link " href ="{{ "/contact" | relative_url }}"> Contact</ a >
13+ < a class ="nav-link " href ="{{ item.link | relative_url }} "> {{ item.name }}</ a >
2214 </ li >
15+ {% endfor %}
2316 </ ul >
2417 </ div >
2518 </ div >
You can’t perform that action at this time.
0 commit comments