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

View File

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

View File

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