From 97f57406bf2b791322f9f03afd887acd63664895 Mon Sep 17 00:00:00 2001 From: tree Date: Fri, 24 Nov 2023 11:21:38 +0100 Subject: [PATCH] updates --- src/components/EventItem.astro | 15 ++++++++++++--- src/config.yaml | 2 ++ src/layouts/base.astro | 11 ++++++++--- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/components/EventItem.astro b/src/components/EventItem.astro index c3b8a65..44f402e 100644 --- a/src/components/EventItem.astro +++ b/src/components/EventItem.astro @@ -47,7 +47,7 @@ function dateEnd(str, days) {
-
+
{dateFormat(item.date)}
{item.days && item.days > 1 &&
{dateFormat(dateEnd(item.date, item.days))}
@@ -67,11 +67,20 @@ function dateEnd(str, days) {
- \ No newline at end of file diff --git a/src/config.yaml b/src/config.yaml index 191a22a..6df5902 100644 --- a/src/config.yaml +++ b/src/config.yaml @@ -23,6 +23,8 @@ header: # url: /articles #- name: Leaderboard # url: /leaderboard + - name: Articles + link: mirror - name: Docs link: docs #- name: Manifesto diff --git a/src/layouts/base.astro b/src/layouts/base.astro index 425d891..5eb6e17 100644 --- a/src/layouts/base.astro +++ b/src/layouts/base.astro @@ -12,7 +12,7 @@ import cfonts from 'cfonts'; - {config.title} + {title ? title + ' | ' + config.title : config.title}