diff --git a/exampleSite/assets/js/home.js b/exampleSite/assets/js/home.js index 178b1cda..d60acf9b 100644 --- a/exampleSite/assets/js/home.js +++ b/exampleSite/assets/js/home.js @@ -26,33 +26,6 @@ window.addEventListener("DOMContentLoaded", (event) => { ); }); -function initLayoutLab() { - document.querySelectorAll("[data-layout-switcher]").forEach((lab) => { - const buttons = lab.querySelectorAll("[data-layout-switcher-button]"); - const panels = lab.querySelectorAll("[data-layout-switcher-panel]"); - const activate = (layout) => { - buttons.forEach((button) => { - const active = button.dataset.layoutSwitcherButton === layout; - button.setAttribute("aria-selected", String(active)); - button.classList.toggle("border-primary-600", active); - button.classList.toggle("bg-primary-600", active); - button.classList.toggle("text-white", active); - button.classList.toggle("dark:border-primary-500", active); - button.classList.toggle("dark:bg-primary-500", active); - }); - panels.forEach((panel) => { - panel.hidden = panel.dataset.layoutSwitcherPanel !== layout; - }); - }; - - buttons.forEach((button) => { - button.addEventListener("click", () => activate(button.dataset.layoutSwitcherButton)); - }); - }); -} - -window.addEventListener("DOMContentLoaded", initLayoutLab); - var list_config = ["CardViewProse", "CardViewScreenWidth", "NormalView"]; var titles = { diff --git a/exampleSite/config/_default/languages.de.toml b/exampleSite/config/_default/languages.de.toml index 033d3023..63139256 100644 --- a/exampleSite/config/_default/languages.de.toml +++ b/exampleSite/config/_default/languages.de.toml @@ -19,4 +19,5 @@ title = "Blowfish" links = [ { x-twitter = "https://twitter.com/burufugu" }, { github = "https://github.com/nunocoracao/blowfish" }, + { bluesky = "https://bsky.app/profile/burufugu.bsky.social" }, ] diff --git a/exampleSite/config/_default/languages.en.toml b/exampleSite/config/_default/languages.en.toml index 5b5b3b0e..fa5c7f0c 100644 --- a/exampleSite/config/_default/languages.en.toml +++ b/exampleSite/config/_default/languages.en.toml @@ -20,4 +20,5 @@ title = "Blowfish" links = [ { x-twitter = "https://twitter.com/burufugu" }, { github = "https://github.com/nunocoracao/blowfish" }, + { bluesky = "https://bsky.app/profile/burufugu.bsky.social" }, ] \ No newline at end of file diff --git a/exampleSite/config/_default/languages.es.toml b/exampleSite/config/_default/languages.es.toml index 06ee2c97..7143788a 100644 --- a/exampleSite/config/_default/languages.es.toml +++ b/exampleSite/config/_default/languages.es.toml @@ -19,4 +19,5 @@ title = "Blowfish" links = [ { x-twitter = "https://twitter.com/burufugu" }, { github = "https://github.com/nunocoracao/blowfish" }, + { bluesky = "https://bsky.app/profile/burufugu.bsky.social" }, ] diff --git a/exampleSite/config/_default/languages.fr.toml b/exampleSite/config/_default/languages.fr.toml index e40d78b7..de95d207 100644 --- a/exampleSite/config/_default/languages.fr.toml +++ b/exampleSite/config/_default/languages.fr.toml @@ -19,4 +19,5 @@ title = "Blowfish" links = [ { x-twitter = "https://twitter.com/burufugu" }, { github = "https://github.com/nunocoracao/blowfish" }, + { bluesky = "https://bsky.app/profile/burufugu.bsky.social" }, ] diff --git a/exampleSite/config/_default/languages.it.toml b/exampleSite/config/_default/languages.it.toml index b2eaace9..fa557bd4 100644 --- a/exampleSite/config/_default/languages.it.toml +++ b/exampleSite/config/_default/languages.it.toml @@ -19,4 +19,5 @@ title = "Blowfish" links = [ { x-twitter = "https://twitter.com/burufugu" }, { github = "https://github.com/nunocoracao/blowfish" }, + { bluesky = "https://bsky.app/profile/burufugu.bsky.social" }, ] \ No newline at end of file diff --git a/exampleSite/config/_default/languages.ja.toml b/exampleSite/config/_default/languages.ja.toml index b8b9ce1d..21226d08 100644 --- a/exampleSite/config/_default/languages.ja.toml +++ b/exampleSite/config/_default/languages.ja.toml @@ -20,4 +20,5 @@ title = "Blowfish" links = [ { x-twitter = "https://twitter.com/burufugu" }, { github = "https://github.com/nunocoracao/blowfish" }, + { bluesky = "https://bsky.app/profile/burufugu.bsky.social" }, ] \ No newline at end of file diff --git a/exampleSite/config/_default/languages.pt-br.toml b/exampleSite/config/_default/languages.pt-br.toml index 114b3f3c..1ef16ccf 100644 --- a/exampleSite/config/_default/languages.pt-br.toml +++ b/exampleSite/config/_default/languages.pt-br.toml @@ -19,4 +19,5 @@ title = "Blowfish" links = [ { x-twitter = "https://twitter.com/burufugu" }, { github = "https://github.com/nunocoracao/blowfish" }, + { bluesky = "https://bsky.app/profile/burufugu.bsky.social" }, ] diff --git a/exampleSite/config/_default/languages.pt-pt.toml b/exampleSite/config/_default/languages.pt-pt.toml index 3088dab6..edeb621c 100644 --- a/exampleSite/config/_default/languages.pt-pt.toml +++ b/exampleSite/config/_default/languages.pt-pt.toml @@ -19,4 +19,5 @@ title = "Blowfish" links = [ { x-twitter = "https://twitter.com/burufugu" }, { github = "https://github.com/nunocoracao/blowfish" }, + { bluesky = "https://bsky.app/profile/burufugu.bsky.social" }, ] diff --git a/exampleSite/config/_default/languages.zh-cn.toml b/exampleSite/config/_default/languages.zh-cn.toml index 59973679..c39cf964 100644 --- a/exampleSite/config/_default/languages.zh-cn.toml +++ b/exampleSite/config/_default/languages.zh-cn.toml @@ -19,4 +19,5 @@ title = "Blowfish" links = [ { x-twitter = "https://twitter.com/burufugu" }, { github = "https://github.com/nunocoracao/blowfish" }, + { bluesky = "https://bsky.app/profile/burufugu.bsky.social" }, ] \ No newline at end of file diff --git a/exampleSite/config/_default/menus.de.toml b/exampleSite/config/_default/menus.de.toml index cdb4dbc6..ff0dff1e 100644 --- a/exampleSite/config/_default/menus.de.toml +++ b/exampleSite/config/_default/menus.de.toml @@ -39,7 +39,8 @@ weight = 90 [[main]] - name = "Merch" + identifier = "merch" + pre = "shirt" url = "https://www.teepublic.com/user/blowfish-store/t-shirts" weight = 100 @@ -49,6 +50,12 @@ url = "https://twitter.com/burufugu" weight = 200 +[[main]] + identifier = "bluesky" + pre = "bluesky" + url = "https://bsky.app/profile/burufugu.bsky.social" + weight = 250 + [[main]] identifier = "github" pre = "github" diff --git a/exampleSite/config/_default/menus.en.toml b/exampleSite/config/_default/menus.en.toml index 3886d5ea..d9a0b809 100644 --- a/exampleSite/config/_default/menus.en.toml +++ b/exampleSite/config/_default/menus.en.toml @@ -48,7 +48,8 @@ weight = 90 [[main]] - name = "Merch" + identifier = "merch" + pre = "shirt" url = "https://www.teepublic.com/user/blowfish-store/t-shirts" weight = 100 @@ -63,6 +64,12 @@ url = "https://twitter.com/burufugu" weight = 200 +[[main]] + identifier = "bluesky" + pre = "bluesky" + url = "https://bsky.app/profile/burufugu.bsky.social" + weight = 250 + #[[main]] # identifier = "mastodon" # pre = "mastodon" diff --git a/exampleSite/config/_default/menus.es.toml b/exampleSite/config/_default/menus.es.toml index 8ad705e5..e967f2eb 100644 --- a/exampleSite/config/_default/menus.es.toml +++ b/exampleSite/config/_default/menus.es.toml @@ -39,7 +39,8 @@ weight = 90 [[main]] - name = "Merch" + identifier = "merch" + pre = "shirt" url = "https://www.teepublic.com/user/blowfish-store/t-shirts" weight = 100 @@ -49,6 +50,12 @@ url = "https://twitter.com/burufugu" weight = 200 +[[main]] + identifier = "bluesky" + pre = "bluesky" + url = "https://bsky.app/profile/burufugu.bsky.social" + weight = 250 + [[main]] identifier = "github" pre = "github" diff --git a/exampleSite/config/_default/menus.fr.toml b/exampleSite/config/_default/menus.fr.toml index 1f7b0e39..ca4700d5 100644 --- a/exampleSite/config/_default/menus.fr.toml +++ b/exampleSite/config/_default/menus.fr.toml @@ -39,7 +39,8 @@ weight = 90 [[main]] - name = "Merch" + identifier = "merch" + pre = "shirt" url = "https://www.teepublic.com/user/blowfish-store/t-shirts" weight = 100 @@ -49,6 +50,12 @@ url = "https://twitter.com/burufugu" weight = 200 +[[main]] + identifier = "bluesky" + pre = "bluesky" + url = "https://bsky.app/profile/burufugu.bsky.social" + weight = 250 + [[main]] identifier = "github" pre = "github" diff --git a/exampleSite/config/_default/menus.it.toml b/exampleSite/config/_default/menus.it.toml index a6cda29d..937ce01e 100644 --- a/exampleSite/config/_default/menus.it.toml +++ b/exampleSite/config/_default/menus.it.toml @@ -48,7 +48,8 @@ weight = 90 [[main]] - name = "Merch" + identifier = "merch" + pre = "shirt" url = "https://www.teepublic.com/user/blowfish-store/t-shirts" weight = 100 @@ -63,6 +64,12 @@ url = "https://twitter.com/burufugu" weight = 200 +[[main]] + identifier = "bluesky" + pre = "bluesky" + url = "https://bsky.app/profile/burufugu.bsky.social" + weight = 250 + #[[main]] # identifier = "mastodon" # pre = "mastodon" diff --git a/exampleSite/config/_default/menus.ja.toml b/exampleSite/config/_default/menus.ja.toml index 6d8e89e1..f07f8521 100644 --- a/exampleSite/config/_default/menus.ja.toml +++ b/exampleSite/config/_default/menus.ja.toml @@ -48,7 +48,8 @@ weight = 90 [[main]] - name = "グッズ" + identifier = "merch" + pre = "shirt" url = "https://www.teepublic.com/user/blowfish-store/t-shirts" weight = 100 @@ -63,6 +64,12 @@ url = "https://twitter.com/burufugu" weight = 200 +[[main]] + identifier = "bluesky" + pre = "bluesky" + url = "https://bsky.app/profile/burufugu.bsky.social" + weight = 250 + #[[main]] # identifier = "mastodon" # pre = "mastodon" diff --git a/exampleSite/config/_default/menus.pt-br.toml b/exampleSite/config/_default/menus.pt-br.toml index ba6fc700..f1608868 100644 --- a/exampleSite/config/_default/menus.pt-br.toml +++ b/exampleSite/config/_default/menus.pt-br.toml @@ -39,7 +39,8 @@ weight = 90 [[main]] - name = "Merch" + identifier = "merch" + pre = "shirt" url = "https://www.teepublic.com/user/blowfish-store/t-shirts" weight = 100 @@ -49,6 +50,12 @@ url = "https://twitter.com/burufugu" weight = 200 +[[main]] + identifier = "bluesky" + pre = "bluesky" + url = "https://bsky.app/profile/burufugu.bsky.social" + weight = 250 + [[main]] identifier = "github" pre = "github" diff --git a/exampleSite/config/_default/menus.pt-pt.toml b/exampleSite/config/_default/menus.pt-pt.toml index 4ca05c2b..d2f98810 100644 --- a/exampleSite/config/_default/menus.pt-pt.toml +++ b/exampleSite/config/_default/menus.pt-pt.toml @@ -39,7 +39,8 @@ weight = 90 [[main]] - name = "Merch" + identifier = "merch" + pre = "shirt" url = "https://www.teepublic.com/user/blowfish-store/t-shirts" weight = 100 @@ -49,6 +50,12 @@ url = "https://twitter.com/burufugu" weight = 200 +[[main]] + identifier = "bluesky" + pre = "bluesky" + url = "https://bsky.app/profile/burufugu.bsky.social" + weight = 250 + [[main]] identifier = "github" pre = "github" diff --git a/exampleSite/config/_default/menus.zh-cn.toml b/exampleSite/config/_default/menus.zh-cn.toml index 6100b295..05bef8c8 100644 --- a/exampleSite/config/_default/menus.zh-cn.toml +++ b/exampleSite/config/_default/menus.zh-cn.toml @@ -48,7 +48,8 @@ weight = 90 [[main]] - name = "周边" + identifier = "merch" + pre = "shirt" url = "https://www.teepublic.com/user/blowfish-store/t-shirts" weight = 100 @@ -63,6 +64,12 @@ url = "https://twitter.com/burufugu" weight = 200 +[[main]] + identifier = "bluesky" + pre = "bluesky" + url = "https://bsky.app/profile/burufugu.bsky.social" + weight = 250 + #[[main]] # identifier = "mastodon" # pre = "mastodon" diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 6bcf5ea8..8f2f8407 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -5,7 +5,7 @@ # Refer to the theme docs for more details about each of these parameters. # https://blowfish.page/docs/configuration/#theme-parameters -colorScheme = "blowfish" +colorScheme = "burufugu" defaultAppearance = "dark" # valid options: light or dark autoSwitchAppearance = true @@ -25,6 +25,7 @@ disableTextInHeader = false # backgroundImageWidth = 1200 defaultBackgroundImage = "images/v3/site-background.svg" +backgroundCanvas = true # render defaultBackgroundImage as a fixed backdrop on every page defaultFeaturedImage = "/img/featured.svg" defaultSocialImage = "/img/blowfish_banner.png" hotlinkFeatureImage = false @@ -111,7 +112,7 @@ fingerprintAlgorithm = "sha512" # Valid values are "sha512" (default), "sha384", cardView = true cardViewScreenWidth = false constrainItemsWidth = false - featureImageHover = true + featureImageHover = false [sitemap] excludedKinds = [] diff --git a/exampleSite/layouts/users/list.html b/exampleSite/layouts/users/list.html new file mode 100644 index 00000000..b4ea7506 --- /dev/null +++ b/exampleSite/layouts/users/list.html @@ -0,0 +1,142 @@ +{{ define "main" }} + {{ .Scratch.Set "scope" "list" }} + {{ $enableToc := .Params.showTableOfContents | default (site.Params.list.showTableOfContents | default false) }} + {{ $showToc := and $enableToc (in .TableOfContents "
+ {{ i18n "list.no_articles" | emojify }} +
+