1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-11-19 00:49:32 -08:00

Add support for navbar links.

This commit is contained in:
Danila Fedorin 2017-08-14 22:46:39 -07:00
parent 415a05288a
commit 6758771c45
3 changed files with 13 additions and 3 deletions

View File

@ -1,5 +1,10 @@
<nav>
<div class="center">
<a href="{{ "/" | relative_url }}">{{ site.title }}</a>
<a href="{{ "/" | relative_url }}" class="primary-link">{{ site.title }}</a>
{% for page in site.pages %}
{% if page.in_header %}
<a href="{{ page.url | relative_url }}">{{ page.title }}</a>
{% endif %}
{% endfor %}
</div>
</nav>

View File

@ -1,4 +1,5 @@
---
in_header: true
layout: page
title: About
permalink: /about/

View File

@ -28,8 +28,12 @@ nav {
a {
text-decoration: none;
color: $background-color;
font: {
size: 25px;
font-size: 20px;
margin-right: 10px;
&.primary-link {
font-size: 30px;
margin-right: 20px;
}
&:hover {