mirror of
https://github.com/DanilaFe/abacus
synced 2024-12-22 07:20:09 -08:00
Add support for navbar links.
This commit is contained in:
parent
415a05288a
commit
6758771c45
|
@ -1,5 +1,10 @@
|
||||||
<nav>
|
<nav>
|
||||||
<div class="center">
|
<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>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
in_header: true
|
||||||
layout: page
|
layout: page
|
||||||
title: About
|
title: About
|
||||||
permalink: /about/
|
permalink: /about/
|
||||||
|
|
|
@ -28,8 +28,12 @@ nav {
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: $background-color;
|
color: $background-color;
|
||||||
font: {
|
font-size: 20px;
|
||||||
size: 25px;
|
margin-right: 10px;
|
||||||
|
|
||||||
|
&.primary-link {
|
||||||
|
font-size: 30px;
|
||||||
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user