ananke/config/_default/params.toml
Klaas Demter b06949eb2d
theme(fix): add show_recent_posts parameter to stop showing recent posts on index (#795)
<!---

Add the issue number that is discussed and fixed by this PR (In the form
`Closes #123`). If this PR doesn't fix an issue, remove the line below.
This will
also lead to us not treating this PR as an important one. It might be
closed
without a review.

If there is no issue associated with this PR and you are not a
maintainer of
this repository, your PR might be closed without a review.

-->

Closes #794

You can no longer set `recent_posts_number = 0` because in current hugo
versions `{{ $n_posts := $.Param "recent_posts_number" | default 3 }}`
will default to three if recent_posts_number is 0. This used to work a
couple of versions back, I am assuming this is not a regression but
rather wanted behavior in hugo -- so I introduce a new parameter
(boolean) `show_recent_posts` to enable(default) or disable recent posts
on index.



<!---

Explain what this PR does and what existing problem it solves. If this
PR is a
work in progress, please prefix the title with [WIP].

-->

<!--

Make sure that the code is readable and well-documented. If you have
added new
functionality, please add the necessary documentation.
If testing of the new functionality is possible, please add tests.

-->
2024-12-02 12:17:41 +07:00

255 lines
6.1 KiB
TOML

[ananke]
show_recent_posts = true # show recent posts on the homepage
[ananke.social]
icon_path = "ananke/socials/%s.svg"
[ananke.social.follow]
new_window_icon = false # show a little "opens in new window" icon next to the link
# add networks to this list in your local config to enable them, remove them to disable them.
# networks = [
# "facebook",
# "bluesky",
# "linkedin"
# ]
[ananke.social.share]
icons = true # show icons for each share link
sharetext = true # show the share text
# add networks to this list in your local config to enable them, remove them to disable them.
# networks = [
# "email",
# "facebook",
# "bluesky",
# "linkedin"
# ]
# social media network setups
[[ananke.social.networks]]
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]
text = "permalink"
[[ananke.social.networks]]
slug = "email"
label = "Email"
profile = false
icon = "envelope" # font awesome free icon name
link = "mailto:"
[ananke.social.networks.particles]
body = "permalink"
subject = "title"
[[ananke.social.networks]]
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]
u = "permalink"
[[ananke.social.networks]]
slug = "github"
label = "GitHub"
color = "#6cc644"
profile = "https://github.com/%s/"
icon = "github" # font awesome brand icon name
[[ananke.social.networks]]
slug = "gitlab"
label = "GitLab"
color = "#FC6D26"
profile = "https://gitlab.com/%s/"
icon = "gitlab" # font awesome brand icon name
[[ananke.social.networks]]
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]
u = "permalink"
t = "description"
[[ananke.social.networks]]
slug = "instagram"
label = "Instagram"
color = "#e1306c"
profile = "https://www.instagram.com/%s/"
icon = "instagram" # font awesome brand icon name
[[ananke.social.networks]]
slug = "keybase"
label = "Keybase"
color = "#3d76ff"
profile = "https://keybase.io/%s"
icon = "keybase" # font awesome brand icon name
[[ananke.social.networks]]
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]
url = "permalink"
title = "title"
summary = "description"
source = "permalink"
params = "mini=true"
[[ananke.social.networks]]
slug = "medium"
label = "Medium"
color = "#0077b5"
profile = "https://medium.com/@%s/"
icon = "medium" # font awesome brand icon name
[[ananke.social.networks]]
slug = "mastodon"
label = "Mastodon"
color = "#6364FF"
profile = ""
icon = "mastodon" # font awesome brand icon name
[[ananke.social.networks]]
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]
url = "permalink"
media = "permalink"
description = "description"
[[ananke.social.networks]]
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]
url = "permalink"
title = "title"
params = "resubmit=true"
[[ananke.social.networks]]
slug = "rss"
label = "RSS"
color = "#ff6f1a"
profile = ""
icon = "rss" # font awesome free icon name
[[ananke.social.networks]]
slug = "slack"
label = "Slack"
color = "#E01E5A"
profile = ""
icon = "slack" # font awesome brand icon name
[[ananke.social.networks]]
slug = "stackoverflow"
label = "Stack Overflow"
color = "#f48024"
profile = "https://stackoverflow.com/users/%s"
icon = "stack-overflow" # font awesome brand icon name
[[ananke.social.networks]]
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]
text = "description"
url = "permalink"
[[ananke.social.networks]]
slug = "tiktok"
label = "TikTok"
color = "#fe2c55"
profile = "https://www.tiktok.com/@%s"
icon = "tiktok" # font awesome brand icon name
[[ananke.social.networks]]
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]
canonicalUrl = "permalink"
shareSource = "source"
title = "title"
caption = "description"
content = "description"
params = "posttype=link"
[[ananke.social.networks]]
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]
text = "description"
url = "permalink"
[[ananke.social.networks]]
slug = "whatsapp"
label = "WhatsApp"
color = "#25d366"
profile = false
icon = "whatsapp" # font awesome brand icon name
link = "whatsapp://send"
linkintext = true
[ananke.social.networks.particles]
text = "description"
[[ananke.social.networks]]
slug = "xing"
label = "Xing"
color = "#026466"
profile = "https://www.xing.com/profile/%s"
icon = "xing" # font awesome brand icon name
link = "https://www.xing.com/app/user"
separator = ";"
[ananke.social.networks.particles]
url = "permalink"
title = "title"
params = "op=share"
[[ananke.social.networks]]
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]
text = "description"
url = "permalink"
[[ananke.social.networks]]
slug = "youtube"
label = "YouTube"
color = "#cd201f"
profile = "https://www.youtube.com/@%s"
icon = "youtube" # font awesome brand icon name