From e3927b4c4640dc02d086fe3fefcf6c202422b9da Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Fri, 12 Apr 2024 00:22:57 +0800 Subject: [PATCH] Make support me buttons into a WebC component --- src/_includes/main/support-me.webc | 14 ++++++++++++++ src/about.njk | 7 +++---- src/home.njk | 7 +++---- 3 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 src/_includes/main/support-me.webc diff --git a/src/_includes/main/support-me.webc b/src/_includes/main/support-me.webc new file mode 100644 index 00000000..aefb21d9 --- /dev/null +++ b/src/_includes/main/support-me.webc @@ -0,0 +1,14 @@ +

If you enjoy my work, you can support me on Ko-Fi or Buy Me a Coffee:

+
+ + + +
+ + \ No newline at end of file diff --git a/src/about.njk b/src/about.njk index 0d12d54a..5cdd6590 100644 --- a/src/about.njk +++ b/src/about.njk @@ -72,9 +72,8 @@ metadata:

You can contact me via email: leilukin@outlook.com.

-

If you enjoy my work, you can support me on Ko-Fi or Buy Me a Coffee: -

- -

+ {% renderTemplate "webc" %} + + {% endrenderTemplate %} \ No newline at end of file diff --git a/src/home.njk b/src/home.njk index f524717a..bde4e0c0 100644 --- a/src/home.njk +++ b/src/home.njk @@ -63,9 +63,8 @@ metadata:

Support Me

-

If you enjoy my work, you can support me on Ko-Fi or Buy Me a Coffee: -

- -

+ {% renderTemplate "webc" %} + + {% endrenderTemplate %}
\ No newline at end of file