Skip to content

Commit

Permalink
includes
Browse files Browse the repository at this point in the history
  • Loading branch information
alxdhuang committed Mar 27, 2019
1 parent 010a6f9 commit 49523c9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _includes/navigation.html
@@ -0,0 +1,8 @@
<nav>
<a href="/" {% if page.url == "/" %}style="color: red;"{% endif %}>
Home
</a>
<a href="/about.html" {% if page.url == "/about.html" %}style="color: red;"{% endif %}>
About
</a>
</nav>
1 change: 1 addition & 0 deletions _layouts/default.html
Expand Up @@ -5,6 +5,7 @@
<title>{{ page.title }}</title>
</head>
<body>
{% include navigation.html %}
{{ content }}
</body>
</html>

0 comments on commit 49523c9

Please sign in to comment.