{% macro navItem(title, url, hyphen=true, target='_self') %}
<span>
	<a href="{{url}}" target="{{target}}">{{title}}</a>
	{% if hyphen %} - {% endif %}
</span>
{% endmacro %}

<div class="container">
	<div class="nav">
		<a class="d-inline-block main-logo" href="/">
			<img src="/img/RB-w.png" alt="RB logo" eleventy:widths="100" />
			Rik Berkelder
		</a>
		<div class="nav-links">
			<div class="d-inline-block">
				{{navItem("Home", "/")}}
				{{navItem("Blog", "/blog")}}
				{{navItem("Portfolio", "/portfolio", false)}}
			</div>
			<div class="d-inline-block">
				<span> | </span>
				{% if site.site != "rblicht" %}
				{{navItem("Mastodon", "https://dook.business/@RikSolo")}}
				{% endif %}
				{{navItem("Instagram", "https://instagram.com/RikBerkelder", false)}}
			</div>
		</div>
	</div>
</div>