From 4f42fdeda9a75ea0058c6f6fbf2a2dd7f174975d Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Wed, 22 Jul 2026 16:51:11 -0500 Subject: [PATCH] Make sidebar sections open when clicked --- content/_index.md | 32 ++-- hugo.yaml | 17 +-- layouts/_partials/custom/head-end.html | 199 +++++++++++++++++++++++++ 3 files changed, 217 insertions(+), 31 deletions(-) create mode 100644 layouts/_partials/custom/head-end.html diff --git a/content/_index.md b/content/_index.md index ec15efd2..d4fcaf36 100644 --- a/content/_index.md +++ b/content/_index.md @@ -53,6 +53,22 @@ aliases: imageClass="hx:top-[40%] hx:left-[24px] hx:w-[180%] hx:sm:w-[110%] hx:dark:opacity-80" link="wiki" >}} + {{< hextra/feature-card + title="Privacy Tools" + subtitle="The essential tools you need to safeguard your digital privacy, chosen by community consensus." + class="hx:aspect-auto hx:md:aspect-[1.1/1] hx:max-md:min-h-[340px] pg:colored-card" + image="pg-home-privacy-tools.png" + imageClass="hx:top-[40%] hx:left-[24px] hx:w-[180%] hx:sm:w-[110%] hx:dark:opacity-80" + link="tools" + >}} + {{< hextra/feature-card + title="News Briefs" + subtitle="Stay updated with the latest news and developments in the world of cybersecurity, privacy, and digital rights." + class="hx:aspect-auto hx:md:aspect-[1.1/1] hx:max-md:min-h-[340px] pg:colored-card" + image="pg-home-privacy-news.png" + imageClass="hx:top-[40%] hx:left-[24px] hx:w-[180%] hx:sm:w-[110%] hx:dark:opacity-80" + link="https://www.privacyguides.org/news/" + >}} {{< hextra/feature-card title="Educational Videos" subtitle="Watch our educational videos to learn more about digital privacy and how to protect yourself online." @@ -69,14 +85,6 @@ aliases: imageClass="hx:top-[40%] hx:left-[24px] hx:w-[180%] hx:sm:w-[110%] hx:dark:opacity-80" link="activism" >}} - {{< hextra/feature-card - title="Privacy Tools" - subtitle="The essential tools you need to safeguard your digital privacy, chosen by community consensus." - class="hx:aspect-auto hx:md:aspect-[1.1/1] hx:max-md:min-h-[340px] pg:colored-card" - image="pg-home-privacy-tools.png" - imageClass="hx:top-[40%] hx:left-[24px] hx:w-[180%] hx:sm:w-[110%] hx:dark:opacity-80" - link="tools" - >}} {{< hextra/feature-card title="Community Forum" subtitle="Join the conversation, get answers, and connect with others who share your commitment to digital privacy." @@ -85,14 +93,6 @@ aliases: imageClass="hx:top-[40%] hx:left-[24px] hx:w-[180%] hx:sm:w-[110%] hx:dark:opacity-80" link="https://discuss.privacyguides.net" >}} - {{< hextra/feature-card - title="News Briefs" - subtitle="Stay updated with the latest news and developments in the world of cybersecurity, privacy, and digital rights." - class="hx:aspect-auto hx:md:aspect-[1.1/1] hx:max-md:min-h-[340px] pg:colored-card" - image="pg-home-privacy-news.png" - imageClass="hx:top-[40%] hx:left-[24px] hx:w-[180%] hx:sm:w-[110%] hx:dark:opacity-80" - link="https://www.privacyguides.org/news/" - >}} {{< /hextra/feature-grid >}}
diff --git a/hugo.yaml b/hugo.yaml index 4f999f0a..27ebdc10 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,6 +1,7 @@ # Hugo configuration file title: Privacy Guides -relativeURLs: true +baseURL: https://wiki.privacyguides.org +locale: en-US # temporarily ignore blog content ignoreFiles: @@ -101,17 +102,3 @@ outputs: home: [HTML, RSS, llms] page: [HTML, markdown, RSS] section: [HTML, RSS] - -defaultContentLanguage: en -defaultContentLanguageInSubdir: false -languages: - en: - languageName: English - weight: 1 - # baseURL: https://en.privacyguides.org - contentDir: 'content' - # fr: - # languageName: Français - # weight: 2 - # baseURL: https://fr.privacyguides.org - # contentDir: 'translations/fr' diff --git a/layouts/_partials/custom/head-end.html b/layouts/_partials/custom/head-end.html new file mode 100644 index 00000000..5dd1a46a --- /dev/null +++ b/layouts/_partials/custom/head-end.html @@ -0,0 +1,199 @@ +