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