From 23d1fe3710f56035d5089c906be6800e9f37064a Mon Sep 17 00:00:00 2001 From: tree Date: Mon, 12 Feb 2024 16:13:13 +0100 Subject: [PATCH] add news to menu, fix responsivity --- src/config.yaml | 2 ++ src/layouts/base.astro | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/config.yaml b/src/config.yaml index 65f02c9..5ec2992 100644 --- a/src/config.yaml +++ b/src/config.yaml @@ -17,6 +17,8 @@ header: # url: /leaderboard - name: Explorer link: explorer + - name: News + link: news - name: Docs link: docs #- name: Manifesto diff --git a/src/layouts/base.astro b/src/layouts/base.astro index 09caf53..84601a6 100644 --- a/src/layouts/base.astro +++ b/src/layouts/base.astro @@ -1,5 +1,5 @@ --- -import { ViewTransitions } from 'astro:transitions'; +//import { ViewTransitions } from 'astro:transitions'; import * as config from '../config.yaml'; import core from '../core.json'; @@ -22,7 +22,6 @@ function genHeading(str) { {title ? title + ' | ' + config.title : config.title} - {config.header.menu.map((menuItem) => ( ))} @@ -125,6 +124,6 @@ function genHeading(str) { document.querySelector('.hamburger').addEventListener('click', () => { document.querySelector('.nav-links').classList.toggle('expanded'); }); - +