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.
32
32
3. Install the theme by running `bundle install` inside your site directory.
33
33
4. Replace the current theme in your `_config.yml` file with
34
34
`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`
36
52
37
53
Assuming there are no errors and the site is building properly, follow these
38
54
steps next:
@@ -84,6 +100,7 @@ matter. Example:
84
100
see how the files are set up.
85
101
86
102
<!-- TODO:
103
+
87
104
5. Add the form to the `contact.html` page. Add the following code to your
88
105
`contact.html` page:
89
106
Original file line number Diff line number Diff line change @@ -5,6 +5,17 @@ author: btc-raspberrypiclub
5
5
baseurl : " /cleaner-blog-jekyll"
6
6
url : " https://btc-raspberrypiclub.github.io"
7
7
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
+
8
19
# Social Profiles
9
20
twitter_username :
10
21
github_username : btc-raspberrypiclub
Original file line number Diff line number Diff line change 8
8
</ button >
9
9
< div class ="collapse navbar-collapse " id ="navbarResponsive ">
10
10
< ul class ="navbar-nav ms-auto ">
11
+ {% for item in site.navigation %}
11
12
< 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 >
22
14
</ li >
15
+ {% endfor %}
23
16
</ ul >
24
17
</ div >
25
18
</ div >
You can’t perform that action at this time.
0 commit comments