Extract navigation to jekyll

This commit is contained in:
Maria Rushkova 2021-08-04 17:27:28 +02:00
parent cf8a8b7ac1
commit 003a92fa8c
2 changed files with 46 additions and 82 deletions

28
_data/navigation.yml Normal file
View File

@ -0,0 +1,28 @@
---
- title: "Work"
link:
path: "#work"
- title: "About"
link:
path: "#about"
- title: "Join VAC"
link:
path: "#join"
- title: "Research log"
link:
path: "#research-log"
- title: "Media"
link:
path: "#media"
- title: "Specs"
link: "https://specs.vac.dev"
path:
- title: "Forum"
link: "https://forum.vac.dev/"
path:

View File

@ -71,51 +71,19 @@
l:p-0
"
>
{% for nav in site.data.navigation %}
<li class="hover:opacity-50">
<a class="nav__link" href="{{site.url}}{{ site.baseurl }}/#work"
>Work</a
>
</li>
<li class="hover:opacity-50">
<a class="nav__link" href="{{site.url}}{{ site.baseurl }}/#about"
>About</a
>
</li>
<li class="hover:opacity-50">
<a class="nav__link" href="{{site.url}}{{ site.baseurl }}/#join"
>Join VAC</a
>
</li>
<li class="hover:opacity-50">
{% if nav.path %}
<a
class="nav__link-internal"
href="{{site.url}}{{ site.baseurl }}/research-log"
>Research log</a
>
</li>
<li class="hover:opacity-50">
<a
class="nav__link-internal"
href="{{site.url}}{{ site.baseurl }}/media"
>Media</a
>
</li>
<li class="hover:opacity-50">
<a
class="nav__link-external"
href="https://specs.vac.dev"
target="_blank"
>Specs</a
>
</li>
<li class="hover:opacity-50">
<a
class="nav__link-external"
href="https://forum.vac.dev/"
target="_blank"
>Forum</a
class="nav__link"
href="{{site.url}}{{ site.baseurl }}/{{ nav.path }}"
>{{ nav.title }}</a
>
{% endif %} {% if nav.link %}
<a href="{{ nav.link }}" target="_blank">{{ nav.title }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
</nav>
@ -174,51 +142,19 @@
font-normal
"
>
{% for nav in site.data.navigation %}
<li class="leading-loose hover:opacity-50">
<a class="nav__link" href="{{site.url}}{{ site.baseurl }}/#work"
>Work</a
>
</li>
<li class="leading-loose hover:opacity-50">
<a class="nav__link" href="{{site.url}}{{ site.baseurl }}/#about"
>About</a
>
</li>
<li class="leading-loose hover:opacity-50">
<a class="nav__link" href="{{site.url}}{{ site.baseurl }}/#join"
>Join VAC</a
>
</li>
<li class="leading-loose hover:opacity-50">
{% if nav.path %}
<a
class="nav__link-internal"
href="{{site.url}}{{ site.baseurl }}/research-log/"
>Research log</a
>
</li>
<li class="leading-loose hover:opacity-50">
<a
class="nav__link-internal"
href="{{site.url}}{{ site.baseurl }}/media"
>Media</a
>
</li>
<li class="leading-loose hover:opacity-50">
<a
class="nav__link-external"
href="https://specs.vac.dev"
target="_blank"
>Specs</a
>
</li>
<li class="leading-loose hover:opacity-50">
<a
class="nav__link-external"
href="https://forum.vac.dev/"
target="_blank"
>Forum</a
class="nav__link"
href="{{site.url}}{{ site.baseurl }}/{{ nav.path }}"
>{{ nav.title }}</a
>
{% endif %} {% if nav.link %}
<a href="{{ nav.link }}" target="_blank">{{ nav.title }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
<ul class="social items-center flex mt-8">
{% include social.html %}