Skip to content

Commit

Permalink
assets
Browse files Browse the repository at this point in the history
  • Loading branch information
alxdhuang committed Mar 27, 2019
1 parent 9e3e9b0 commit 99353fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 1 addition & 3 deletions _includes/navigation.html
@@ -1,7 +1,5 @@
<nav>
{% for item in site.data.navigation %}
<a href="{{ item.link }}" {% if page.url == item.link %}style="color: red;"{% endif %}>
{{ item.name }}
</a>
<a href="{{ item.link }}" {% if page.url == item.link %}class="current"{% endif %}>{{ item.name }}</a>
{% endfor %}
</nav>
1 change: 1 addition & 0 deletions _layouts/default.html
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
<link rel="stylesheet" href="/assets/css/styles.css">
</head>
<body>
{% include navigation.html %}
Expand Down
3 changes: 3 additions & 0 deletions _sass/main.scss
@@ -0,0 +1,3 @@
.current {
color: green;
}
3 changes: 3 additions & 0 deletions assets/css/styles.scss
@@ -0,0 +1,3 @@
---
---
@import "main";

0 comments on commit 99353fb

Please sign in to comment.