From 4c02c19e519fbe75e8de1c51f07274a68eacefe6 Mon Sep 17 00:00:00 2001
From: Patrick Kollitsch <patrick@davids-neighbour.com>
Date: Fri, 31 Jan 2025 00:06:00 +0000
Subject: [PATCH] theme(fix): update module paths to v2

---
 config/_default/params.toml |   74 ++++++++++++++++++------------------
 exampleSite/config.toml     |   15 ++++++-
 package.hugo.json           |    4 +-
 exampleSite/README.md       |    3 +
 exampleSite/go.sum          |    4 +-
 README.md                   |    4 +-
 6 files changed, 59 insertions(+), 45 deletions(-)

diff --git a/README.md b/README.md
index d7c4ae6..07aae74 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
 
 The intent of this theme is to provide a solid starting place for Hugo sites with basic features and include best practices for performance, accessibility, and rapid development.
 
-![screenshot](https://raw.githubusercontent.com/budparr/gohugo-theme-ananke/master/images/screenshot.png)
+![screenshot](images/screenshot.png)
 
 [DEMO](https://ananke-theme.netlify.app/)
 
@@ -67,7 +67,7 @@
 2. Add the theme's repo to your `config.toml`:
 
    ```toml
-   theme = ["github.com/theNewDynamic/gohugo-theme-ananke"]
+   theme = ["github.com/theNewDynamic/gohugo-theme-ananke/v2"]
    ```
 
 ### As Git Submodule
diff --git a/config/_default/params.toml b/config/_default/params.toml
index 33c3961..566fa47 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -25,174 +25,174 @@
 # ]
 
 # social media network setups
-[[ananke.social.networks]]
+[ananke.social.networks.bluesky]
 slug = "bluesky"
 label = "Bluesky"
 color = "#1185fe"
 profile = "https://bsky.app/profile/%s"
 icon = "bluesky" # font awesome brand icon name
 link = "https://bsky.app/intent/compose"
-[ananke.social.networks.particles]
+[ananke.social.networks.bluesky.particles]
 text = "permalink"
 
-[[ananke.social.networks]]
+[ananke.social.networks.email]
 slug = "email"
 label = "Email"
 profile = false
 icon = "envelope" # font awesome free icon name
 link = "mailto:"
-[ananke.social.networks.particles]
+[ananke.social.networks.email.particles]
 body = "permalink"
 subject = "title"
 
-[[ananke.social.networks]]
+[ananke.social.networks.facebook]
 slug = "facebook"
 label = "Facebook"
 color = "#3b5998"
 profile = "https://www.facebook.com/%s"
 icon = "facebook" # font awesome brand icon name
 link = "https://facebook.com/sharer/sharer.php"
-[ananke.social.networks.particles]
+[ananke.social.networks.facebook.particles]
 u = "permalink"
 
-[[ananke.social.networks]]
+[ananke.social.networks.github]
 slug = "github"
 label = "GitHub"
 color = "#6cc644"
 profile = "https://github.com/%s/"
 icon = "github" # font awesome brand icon name
 
-[[ananke.social.networks]]
+[ananke.social.networks.gitlab]
 slug = "gitlab"
 label = "GitLab"
 color = "#FC6D26"
 profile = "https://gitlab.com/%s/"
 icon = "gitlab" # font awesome brand icon name
 
-[[ananke.social.networks]]
+[ananke.social.networks.hackernews]
 slug = "hackernews"
 label = "Hacker News"
 color = "#ff4000"
 profile = "https://news.ycombinator.com/user?id=%s"
 icon = "hacker-news" # font awesome brand icon name
 link = "https://news.ycombinator.com/submitlink"
-[ananke.social.networks.particles]
+[ananke.social.networks.hackernews.particles]
 u = "permalink"
 t = "description"
 
-[[ananke.social.networks]]
+[ananke.social.networks.instagram]
 slug = "instagram"
 label = "Instagram"
 color = "#e1306c"
 profile = "https://www.instagram.com/%s/"
 icon = "instagram" # font awesome brand icon name
 
-[[ananke.social.networks]]
+[ananke.social.networks.keybase]
 slug = "keybase"
 label = "Keybase"
 color = "#3d76ff"
 profile = "https://keybase.io/%s"
 icon = "keybase" # font awesome brand icon name
 
-[[ananke.social.networks]]
+[ananke.social.networks.linkedin]
 slug = "linkedin"
 label = "LinkedIn"
 color = "#0077b5"
 profile = "http://linkedin.com/in/%s"
 icon = "linkedin" # font awesome brand icon name
 link = "https://www.linkedin.com/shareArticle"
-[ananke.social.networks.particles]
+[ananke.social.networks.linkedin.particles]
 url = "permalink"
 title = "title"
 summary = "description"
 source = "permalink"
 params = "mini=true"
 
-[[ananke.social.networks]]
+[ananke.social.networks.medium]
 slug = "medium"
 label = "Medium"
 color = "#0077b5"
 profile = "https://medium.com/@%s/"
 icon = "medium" # font awesome brand icon name
 
-[[ananke.social.networks]]
+[ananke.social.networks.mastodon]
 slug = "mastodon"
 label = "Mastodon"
 color = "#6364FF"
 profile = ""
 icon = "mastodon" # font awesome brand icon name
 
-[[ananke.social.networks]]
+[ananke.social.networks.pinterest]
 slug = "pinterest"
 label = "Pinterest"
 color = "#e60023"
 profile = "https://www.pinterest.com/%s/"
 icon = "pinterest" # font awesome brand icon name
 link = "https://pinterest.com/pin/create/button/"
-[ananke.social.networks.particles]
+[ananke.social.networks.pinterest.particles]
 url = "permalink"
 media = "permalink"
 description = "description"
 
-[[ananke.social.networks]]
+[ananke.social.networks.reddit]
 slug = "reddit"
 label = "Reddit"
 color = "#ff4500"
 profile = "https://www.reddit.com/user/%s/"
 icon = "reddit" # font awesome brand icon name
 link = "https://reddit.com/submit/"
-[ananke.social.networks.particles]
+[ananke.social.networks.reddit.particles]
 url = "permalink"
 title = "title"
 params = "resubmit=true"
 
-[[ananke.social.networks]]
+[ananke.social.networks.rss]
 slug = "rss"
 label = "RSS"
 color = "#ff6f1a"
 profile = ""
 icon = "rss" # font awesome free icon name
 
-[[ananke.social.networks]]
+[ananke.social.networks.slack]
 slug = "slack"
 label = "Slack"
 color = "#E01E5A"
 profile = ""
 icon = "slack" # font awesome brand icon name
 
-[[ananke.social.networks]]
+[ananke.social.networks.stackoverflow]
 slug = "stackoverflow"
 label = "Stack Overflow"
 color = "#f48024"
 profile = "https://stackoverflow.com/users/%s"
 icon = "stack-overflow" # font awesome brand icon name
 
-[[ananke.social.networks]]
+[ananke.social.networks.telegram]
 slug = "telegram"
 label = "Telegram"
 color = "#0088cc"
 profile = "https://t.me/%s"
 icon = "telegram" # font awesome brand icon name
 link = "https://telegram.me/share/url"
-[ananke.social.networks.particles]
+[ananke.social.networks.telegram.particles]
 text = "description"
 url = "permalink"
 
-[[ananke.social.networks]]
+[ananke.social.networks.tiktok]
 slug = "tiktok"
 label = "TikTok"
 color = "#fe2c55"
 profile = "https://www.tiktok.com/@%s"
 icon = "tiktok" # font awesome brand icon name
 
-[[ananke.social.networks]]
+[ananke.social.networks.tumblr]
 slug = "tumblr"
 label = "Tumblr"
 color = "#35465c"
 profile = "https://www.tumblr.com/blog/%s"
 icon = "tumblr" # font awesome brand icon name
 link = "https://www.tumblr.com/widgets/share/tool"
-[ananke.social.networks.particles]
+[ananke.social.networks.tumblr.particles]
 canonicalUrl = "permalink"
 shareSource = "source"
 title = "title"
@@ -200,18 +200,18 @@
 content = "description"
 params = "posttype=link"
 
-[[ananke.social.networks]]
+[ananke.social.networks.twitter]
 slug = "twitter"
 label = "Twitter"
 color = "#1da1f2"
 profile = "https://twitter.com/%s"
 icon = "twitter" # font awesome brand icon name
 link = "https://twitter.com/intent/tweet/"
-[ananke.social.networks.particles]
+[ananke.social.networks.twitter.particles]
 text = "description"
 url = "permalink"
 
-[[ananke.social.networks]]
+[ananke.social.networks.whatsapp]
 slug = "whatsapp"
 label = "WhatsApp"
 color = "#25d366"
@@ -219,10 +219,10 @@
 icon = "whatsapp" # font awesome brand icon name
 link = "whatsapp://send"
 linkintext = true
-[ananke.social.networks.particles]
+[ananke.social.networks.whatsapp.particles]
 text = "description"
 
-[[ananke.social.networks]]
+[ananke.social.networks.xing]
 slug = "xing"
 label = "Xing"
 color = "#026466"
@@ -230,23 +230,23 @@
 icon = "xing" # font awesome brand icon name
 link = "https://www.xing.com/app/user"
 separator = ";"
-[ananke.social.networks.particles]
+[ananke.social.networks.xing.particles]
 url = "permalink"
 title = "title"
 params = "op=share"
 
-[[ananke.social.networks]]
+[ananke.social.networks.x-twitter]
 slug = "x-twitter"
 label = "X"
 color = "#000000"
 profile = "https://x.com/%s"
 icon = "x-twitter" # font awesome brand icon name
 link = "https://twitter.com/intent/tweet/"
-[ananke.social.networks.particles]
+[ananke.social.networks.x-twitter.particles]
 text = "description"
 url = "permalink"
 
-[[ananke.social.networks]]
+[ananke.social.networks.youtube]
 slug = "youtube"
 label = "YouTube"
 color = "#cd201f"
diff --git a/exampleSite/README.md b/exampleSite/README.md
new file mode 100644
index 0000000..a163cd6
--- /dev/null
+++ b/exampleSite/README.md
@@ -0,0 +1,3 @@
+## gohugo-theme-ananke-example
+
+This `exampleSite` is based on the submodule-based installation. To learn about a module-based example repository, see the [Ananke Module Example](https://github.com/davidsneighbour/gohugo-theme-ananke-example) repository.
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 677912d..591fb40 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,6 +1,6 @@
 title = "Notre-Dame de Paris"
 baseURL = "https://gohugo-theme-ananke.pages.dev"
-theme = ["github.com/theNewDynamic/gohugo-theme-ananke"]
+theme = ["github.com/theNewDynamic/gohugo-theme-ananke/v2"]
 resourceDir = "../resources"
 
 defaultContentLanguage = "en"
@@ -57,7 +57,8 @@
 networks = [
   "facebook",
   "bluesky",
-  "linkedin"
+  "linkedin",
+  "wikipedia"
 ]
 
 [params.ananke.social.facebook]
@@ -69,3 +70,13 @@
 
 [params.ananke.social.bluesky]
 username = "kollitsch.dev"
+
+[params.ananke.social.wikipedia]
+username = "wikipedia_article"
+
+[params.ananke.social.networks.wikipedia]
+slug = "wikipedia"
+label = "Wikipedia"
+color = "#0645ad"
+profile = "https://en.wikipedia.org/wiki/%s"
+icon = "wikipedia-w"
diff --git a/exampleSite/go.sum b/exampleSite/go.sum
index ca7d46c..af53287 100644
--- a/exampleSite/go.sum
+++ b/exampleSite/go.sum
@@ -1,2 +1,2 @@
-github.com/theNewDynamic/gohugo-theme-ananke v0.0.0-20241018002841-8e1a6dc21313 h1:CnaMQ7K1kUah8cQyh4RkvzGdg/Gu+LtA2hf4d3cT3m0=
-github.com/theNewDynamic/gohugo-theme-ananke v0.0.0-20241018002841-8e1a6dc21313/go.mod h1:yY14BLqqh5G61rO81YcJKMHY1rClY5iIiUK+K2JKSUM=
+github.com/gohugoio/hugoTestModules1_linux/modh1_2_1v v1.4.0 h1:u5NLARFfTvuIILVQ65UAPvTBrwg9aQgxEllWk/01wp4=
+github.com/gohugoio/hugoTestModules1_linux/modh1_2_1v v1.4.0/go.mod h1:hixsTLccfP2qEOSjYhJ8qCEsD+ubl9b0NlCtE9AcH/Y=
diff --git a/package.hugo.json b/package.hugo.json
index db53905..1d27984 100644
--- a/package.hugo.json
+++ b/package.hugo.json
@@ -29,7 +29,7 @@
  ],
  "license": "MIT",
  "main": "index.js",
- "name": "gohugo-theme-ananke",
+ "name": "@thenewdynamic/gohugo-theme-ananke",
  "repository": {
   "type": "git",
   "url": "git+https://github.com/theNewDynamic/gohugo-theme-ananke.git"
@@ -38,4 +38,4 @@
   "version": "auto-changelog -p --template keepachangelog --commit-limit 0 \u0026\u0026 git add CHANGELOG.md"
  },
  "version": "2.7.0"
-}
\ No newline at end of file
+}

--
Gitblit v1.10.0