From cbb5e9e54fe003c8353696623289bfa79fd003c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=A0s?= Date: Mon, 26 Jun 2023 15:38:04 +0200 Subject: [PATCH] feat: Add global utils functions --- src/layouts/Layout.astro | 6 ++++++ src/libs/DocumentSelector.astro | 6 ++++++ src/libs/UrlUtils.astro | 14 ++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 src/libs/DocumentSelector.astro create mode 100644 src/libs/UrlUtils.astro diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 4499a26..2069ada 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,4 +1,6 @@ --- +import UrlUtils from '../libs/UrlUtils.astro'; +import DocumentSelector from '../libs/DocumentSelector.astro'; export interface Props { title: string; } @@ -19,4 +21,8 @@ const {title} = Astro.props; + + + + diff --git a/src/libs/DocumentSelector.astro b/src/libs/DocumentSelector.astro new file mode 100644 index 0000000..ba16a48 --- /dev/null +++ b/src/libs/DocumentSelector.astro @@ -0,0 +1,6 @@ +--- +--- + + diff --git a/src/libs/UrlUtils.astro b/src/libs/UrlUtils.astro new file mode 100644 index 0000000..c963c5d --- /dev/null +++ b/src/libs/UrlUtils.astro @@ -0,0 +1,14 @@ +--- +--- + + \ No newline at end of file