redo navigation somewhat
This commit is contained in:
parent
93858a4dd4
commit
04794e0842
|
@ -1,13 +1,4 @@
|
|||
---js
|
||||
{
|
||||
nav: [
|
||||
{title: "Mastodon", url: "https://dook.business/@RikSolo"},
|
||||
{title: "Instagram", url: "https://instagram.com/rikberkelder"}
|
||||
]
|
||||
}
|
||||
---
|
||||
|
||||
{% macro navItem(title, url, hyphen, target='_self') %}
|
||||
{% macro navItem(title, url, hyphen=true, target='_self') %}
|
||||
<span>
|
||||
<a href="{{url}}" target="{{target}}">{{title}}</a>
|
||||
{% if hyphen %} - {% endif %}
|
||||
|
@ -40,15 +31,14 @@
|
|||
Rik Berkelder
|
||||
</a>
|
||||
<div class="d-inline-block">
|
||||
{% for ni in collections.page %}
|
||||
{{navItem(ni.data.title, ni.data.permalink, not loop.last )}}
|
||||
{% endfor %}
|
||||
{{navItem("Home", "/")}}
|
||||
{{navItem("Blog", "/blog")}}
|
||||
{{navItem("Contact", "/contact")}}
|
||||
</div>
|
||||
<div class="d-inline-block">
|
||||
<span> | </span>
|
||||
{% for ni in nav %}
|
||||
{{navItem(ni.title, ni.url, not loop.last , '_blank')}}
|
||||
{% endfor %}
|
||||
{{navItem("Mastodon", "https://dook.business/@RikSolo")}}
|
||||
{{navItem("Instagram", "https://instagram.com/RikBerkelder", false)}}
|
||||
</div>
|
||||
<div class="d-inline-block">
|
||||
<span> | </span>
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"serve": "npx @11ty/eleventy --serve"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
|
|
Loading…
Reference in New Issue