Change nav paths

This commit is contained in:
Maria Rushkova 2021-08-10 12:26:13 +02:00 committed by Jakub Sokołowski
parent 967c77e73a
commit 1e81cfcbe4
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 21 additions and 24 deletions

View File

@ -1,8 +1,7 @@
title: Vac
description: VAC researches peer-to-peer, private, censorship resistant communication.
baseurl: ""
url: "https://status-vac.netlify.app/"
# url: "https://vac.dev"
baseurl: ''
url: 'https://vac.dev'
exclude:
- Gemfile
@ -24,11 +23,11 @@ collections:
defaults:
- scope:
path: "assets/img"
path: 'assets/img'
values:
image: true
- scope:
path: ""
type: "authors"
path: ''
type: 'authors'
values:
layout: "author"
layout: 'author'

View File

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

View File

@ -1,8 +1,6 @@
<li class="hover:opacity-50">
{% if nav.type == "local" %}
<a class="nav__link" href="{{site.url}}{{ site.baseurl }}{{ nav.link }}"
>{{ nav.title }}</a
>
<a class="nav__link" href="{{ nav.link }}">{{ nav.title }}</a>
{% elsif nav.type == "external" %}
<a href="{{ nav.link }}" target="_blank" rel="noopener noreferrer"
>{{ nav.title }}</a