From dfe3a7b0c8a0eb595c43863961d107938e1233e8 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Mon, 16 Sep 2024 14:17:45 -0700 Subject: [PATCH] Add hugo-cloak-email theme - Include hugo-cloak-email in the theme list in config.toml - Add submodule for hugo-cloak-email theme - Update .gitmodules to include the new submodule This change enhances email protection on the website by cloaking email addresses. --- .gitmodules | 3 +++ config.toml | 2 +- themes/hugo-cloak-email | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 160000 themes/hugo-cloak-email diff --git a/.gitmodules b/.gitmodules index 8dcbbd8..7c1ee14 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "themes/hugo-coder"] path = themes/hugo-coder url = https://github.com/luizdepra/hugo-coder +[submodule "themes/hugo-cloak-email"] + path = themes/hugo-cloak-email + url = https://github.com/martignoni/hugo-cloak-email diff --git a/config.toml b/config.toml index b589910..e4c78ca 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,5 @@ title = "Eric's Personal Page" -theme = "hugo-coder" +theme = ["hugo-cloak-email", "hugo-coder"] languageCode = "en" defaultcontentlanguage = "en" paginate = 20 diff --git a/themes/hugo-cloak-email b/themes/hugo-cloak-email new file mode 160000 index 0000000..19e0284 --- /dev/null +++ b/themes/hugo-cloak-email @@ -0,0 +1 @@ +Subproject commit 19e0284810127d1d56e2d813a311b0bd73bba96c