Skip to content

Commit

Permalink
adding nav yaml, trying commit through vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatikola, Indira committed Nov 22, 2023
1 parent f1e9f1d commit 9092056
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- name: Home
link: /
- name: About
link: /about.html
11 changes: 5 additions & 6 deletions _includes/navigation.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<nav>
<a href="/" {% if page.url == "/" %}style="color: pink;"{% endif %}>
Home
</a>
<a href="/about.html" {% if page.url == "/about.html" %}style="color: pink;"{% endif %}>
About
</a>
{% for item in site.data.navigation %}
<a href = "{{ item.link }}" {% if page.url == item.link %} style="color: pink;" {% endif %} >
{{ item.name }}
</a>
{% endfor %}
</nav>

0 comments on commit 9092056

Please sign in to comment.