From 915b6a6b05196b0603f6cb014635f2923cd925b7 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Sat, 6 Apr 2024 14:09:09 +0800 Subject: [PATCH] Move CDN links to a separate template --- _site/home/index.html | 12 +++++++----- src/_includes/components/cdn.njk | 7 +++++++ src/_includes/layouts/main.njk | 9 ++------- 3 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 src/_includes/components/cdn.njk diff --git a/_site/home/index.html b/_site/home/index.html index 5349585e..db8418a9 100644 --- a/_site/home/index.html +++ b/_site/home/index.html @@ -16,12 +16,14 @@ - - - - - + + + + + + + diff --git a/src/_includes/components/cdn.njk b/src/_includes/components/cdn.njk new file mode 100644 index 00000000..ce70785e --- /dev/null +++ b/src/_includes/components/cdn.njk @@ -0,0 +1,7 @@ +{# Font Awesome #} + + +{# Google Fonts #} + + + diff --git a/src/_includes/layouts/main.njk b/src/_includes/layouts/main.njk index eff4ecc8..b9dd4049 100644 --- a/src/_includes/layouts/main.njk +++ b/src/_includes/layouts/main.njk @@ -15,13 +15,8 @@ {# CSS #} - {# Font Awesome #} - - - {# Google Fonts #} - - - + {# CDNs #} + {% include "components/cdn.njk" %}