From 85b267a33de67ae51efa8beca61435842966ef51 Mon Sep 17 00:00:00 2001 From: Cheri Date: Thu, 28 Nov 2024 21:53:50 +0200 Subject: [PATCH] move navbar items to yaml file --- src/_data/navigation.yaml | 12 ++++++++++++ src/_includes/base.njk | 8 +++----- 2 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 src/_data/navigation.yaml diff --git a/src/_data/navigation.yaml b/src/_data/navigation.yaml new file mode 100644 index 0000000..de4ab3b --- /dev/null +++ b/src/_data/navigation.yaml @@ -0,0 +1,12 @@ +--- +items: + - text: about me + url: "/about/" + - text: contact + url: "/contact/" + - text: git + url: "https://git.snug.moe/cheri" + - text: rss + url: "/feed.rss" + - text: posts + url: "/posts/" \ No newline at end of file diff --git a/src/_includes/base.njk b/src/_includes/base.njk index e1752f8..e2d1194 100644 --- a/src/_includes/base.njk +++ b/src/_includes/base.njk @@ -27,11 +27,9 @@