diff --git a/data/social.yaml b/data/social.yaml index 41c203d..4c8461b 100644 --- a/data/social.yaml +++ b/data/social.yaml @@ -15,3 +15,24 @@ social_icons: twitter: https://twitter.com/%s vk: https://vk.com/%s youtube: https://www.youtube.com/c/%s + 4chan: + # docs: + gitlab: + leetcode: https://leetcode.com/%s + medium: + netease-music: + notion: + qq: + # rss: + skype: + slack: + steam: + teams: + # theme-dark: + # theme-light: + tiktok: + tinder: + tumblr: + weibo: + x: https://twitter.com/%s + zhihu: https://www.zhihu.com/people/%s \ No newline at end of file diff --git a/exampleSiteMultilingual/hugo.toml b/exampleSiteMultilingual/hugo.toml index 682da65..24f2c75 100644 --- a/exampleSiteMultilingual/hugo.toml +++ b/exampleSiteMultilingual/hugo.toml @@ -37,7 +37,7 @@ GiscusCategory = "General" GiscusCategoryId = "DIC_kwDOLEp76c4CcbPS" GiscusLazyLoad = false GiscusDataMapping = "pathname" - + [[params.social]] id = "docs" url = "https://gohugo.io/documentation/" @@ -46,6 +46,135 @@ url = "https://gohugo.io/documentation/" id = "github" url = "https://github.com/Junyi-99/hugo-theme-anubis2" +[[params.social]] +id = "linkedin" +url = "https://www.linkedin.com/" + +[[params.social]] +id = "email" +url = "example@example.com" + +[[params.social]] +id = "4chan" +url = "#" + +[[params.social]] +id = "facebook" +url = "#" + +[[params.social]] +id = "gitlab" +url = "#" + +[[params.social]] +id = "instagram" +url = "#" + +[[params.social]] +id = "leetcode" +url = "#" + +[[params.social]] +id = "mastodon" +url = "#" + +[[params.social]] +id = "medium" +url = "#" + +[[params.social]] +id = "netease-music" +url = "#" + +[[params.social]] +id = "notion" +url = "#" + +[[params.social]] +id = "patreon" +url = "#" + +[[params.social]] +id = "qq" +url = "#" + +[[params.social]] +id = "reddit" +url = "#" + +[[params.social]] +id = "skype" +url = "#" + +[[params.social]] +id = "slack" +url = "#" + +[[params.social]] +id = "snapchat" +url = "#" + +[[params.social]] +id = "soundcloud" +url = "#" + +[[params.social]] +id = "spotify" +url = "#" + +[[params.social]] +id = "steam" +url = "#" + +[[params.social]] +id = "teams" +url = "#" + +[[params.social]] +id = "telegram" +url = "#" + +[[params.social]] +id = "tiktok" +url = "#" + +[[params.social]] +id = "tinder" +url = "#" + +[[params.social]] +id = "tumblr" +url = "#" + +[[params.social]] +id = "twitch" +url = "#" + +[[params.social]] +id = "twitter" +url = "#" + +[[params.social]] +id = "vk" +url = "#" + +[[params.social]] +id = "weibo" +url = "#" + +[[params.social]] +id = "x" +url = "#" + +[[params.social]] +id = "youtube" +url = "#" + +[[params.social]] +id = "zhihu" +url = "#" + + [languages.en] languageName = "English" @@ -144,10 +273,9 @@ unsafe = true [params.UmamiAnalytics] - enabled = true - dnt = false - id = "e4f661ff-9a8c-49d4-b3cc-2efe553e3973" # Website ID - datacache = false - url = "https://eu.umami.is/script.js" - shareUrl = "https://eu.umami.is/share/RIETUMwZn4IBMIr8/hugo-theme-anubis2.netlify.app" - \ No newline at end of file +enabled = true +dnt = false +id = "e4f661ff-9a8c-49d4-b3cc-2efe553e3973" # Website ID +datacache = false +url = "https://eu.umami.is/script.js" +shareUrl = "https://eu.umami.is/share/RIETUMwZn4IBMIr8/hugo-theme-anubis2.netlify.app" diff --git a/layouts/partials/font-awesome.html b/layouts/partials/font-awesome.html index 3ee0f18..60057f1 100644 --- a/layouts/partials/font-awesome.html +++ b/layouts/partials/font-awesome.html @@ -1,52 +1,27 @@ - + -{{ $dict := newScratch }} + {{ $dict := newScratch }} -{{ if (eq .iconName "github") }} - + + {{ if (eq .iconName "docs")}} + - + + + + + -{{ else if (eq .iconName "theme-dark" )}} - -{{ else if (eq .iconName "theme-light")}} - - - - - - - - - - - - -{{ else if (eq .iconName "docs")}} - - - - - - - - -{{ else if (eq .iconName "rss")}} - - - - - - -{{ else }} - {{ if (eq .custom true) }} - {{ $dict.Set "svg" (readFile (print "static/fa-icons/" .iconName ".svg")) }} {{ else }} - {{ $dict.Set "svg" (partial (print "fa-icons/" .iconName ".svg")) }} + {{ if (eq .custom true) }} + {{ $dict.Set "svg" (readFile (print "static/tabler-icons/" .iconName ".svg")) }} + {{ else }} + {{ $dict.Set "svg" (partial (print "tabler-icons/" .iconName ".svg")) }} + {{ end }} {{ end }} -{{ end }} -{{- $path:=" + {{ $dict.Get "svg" | safeHTML }} + + \ No newline at end of file diff --git a/layouts/partials/social.html b/layouts/partials/social.html deleted file mode 100644 index e358068..0000000 --- a/layouts/partials/social.html +++ /dev/null @@ -1,37 +0,0 @@ - \ No newline at end of file diff --git a/layouts/partials/tabler-icons/4chan.svg b/layouts/partials/tabler-icons/4chan.svg new file mode 100644 index 0000000..7127408 --- /dev/null +++ b/layouts/partials/tabler-icons/4chan.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/docs.svg b/layouts/partials/tabler-icons/docs.svg new file mode 100644 index 0000000..559e19b --- /dev/null +++ b/layouts/partials/tabler-icons/docs.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/email.svg b/layouts/partials/tabler-icons/email.svg new file mode 100644 index 0000000..cecc719 --- /dev/null +++ b/layouts/partials/tabler-icons/email.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/facebook.svg b/layouts/partials/tabler-icons/facebook.svg new file mode 100644 index 0000000..47ad743 --- /dev/null +++ b/layouts/partials/tabler-icons/facebook.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/github.svg b/layouts/partials/tabler-icons/github.svg new file mode 100644 index 0000000..ad12afd --- /dev/null +++ b/layouts/partials/tabler-icons/github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/gitlab.svg b/layouts/partials/tabler-icons/gitlab.svg new file mode 100644 index 0000000..6de1fad --- /dev/null +++ b/layouts/partials/tabler-icons/gitlab.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/instagram.svg b/layouts/partials/tabler-icons/instagram.svg new file mode 100644 index 0000000..cb790d6 --- /dev/null +++ b/layouts/partials/tabler-icons/instagram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/leetcode.svg b/layouts/partials/tabler-icons/leetcode.svg new file mode 100644 index 0000000..3fed55a --- /dev/null +++ b/layouts/partials/tabler-icons/leetcode.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/linkedin.svg b/layouts/partials/tabler-icons/linkedin.svg new file mode 100644 index 0000000..a31391c --- /dev/null +++ b/layouts/partials/tabler-icons/linkedin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/mastodon.svg b/layouts/partials/tabler-icons/mastodon.svg new file mode 100644 index 0000000..972d80b --- /dev/null +++ b/layouts/partials/tabler-icons/mastodon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/medium.svg b/layouts/partials/tabler-icons/medium.svg new file mode 100644 index 0000000..0960909 --- /dev/null +++ b/layouts/partials/tabler-icons/medium.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/netease-music.svg b/layouts/partials/tabler-icons/netease-music.svg new file mode 100644 index 0000000..3d2da67 --- /dev/null +++ b/layouts/partials/tabler-icons/netease-music.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/notion.svg b/layouts/partials/tabler-icons/notion.svg new file mode 100644 index 0000000..e3d0e19 --- /dev/null +++ b/layouts/partials/tabler-icons/notion.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/patreon.svg b/layouts/partials/tabler-icons/patreon.svg new file mode 100644 index 0000000..bfbb0c2 --- /dev/null +++ b/layouts/partials/tabler-icons/patreon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/qq.svg b/layouts/partials/tabler-icons/qq.svg new file mode 100644 index 0000000..b7d7481 --- /dev/null +++ b/layouts/partials/tabler-icons/qq.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/reddit.svg b/layouts/partials/tabler-icons/reddit.svg new file mode 100644 index 0000000..8e7dbe3 --- /dev/null +++ b/layouts/partials/tabler-icons/reddit.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/rss.svg b/layouts/partials/tabler-icons/rss.svg new file mode 100644 index 0000000..7751556 --- /dev/null +++ b/layouts/partials/tabler-icons/rss.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/skype.svg b/layouts/partials/tabler-icons/skype.svg new file mode 100644 index 0000000..05a0bde --- /dev/null +++ b/layouts/partials/tabler-icons/skype.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/slack.svg b/layouts/partials/tabler-icons/slack.svg new file mode 100644 index 0000000..6690195 --- /dev/null +++ b/layouts/partials/tabler-icons/slack.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/snapchat.svg b/layouts/partials/tabler-icons/snapchat.svg new file mode 100644 index 0000000..3b33e3f --- /dev/null +++ b/layouts/partials/tabler-icons/snapchat.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/soundcloud.svg b/layouts/partials/tabler-icons/soundcloud.svg new file mode 100644 index 0000000..fd0929c --- /dev/null +++ b/layouts/partials/tabler-icons/soundcloud.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/spotify.svg b/layouts/partials/tabler-icons/spotify.svg new file mode 100644 index 0000000..d7a6f29 --- /dev/null +++ b/layouts/partials/tabler-icons/spotify.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/steam.svg b/layouts/partials/tabler-icons/steam.svg new file mode 100644 index 0000000..1cda320 --- /dev/null +++ b/layouts/partials/tabler-icons/steam.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/teams.svg b/layouts/partials/tabler-icons/teams.svg new file mode 100644 index 0000000..e48abb4 --- /dev/null +++ b/layouts/partials/tabler-icons/teams.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/telegram.svg b/layouts/partials/tabler-icons/telegram.svg new file mode 100644 index 0000000..113242f --- /dev/null +++ b/layouts/partials/tabler-icons/telegram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/theme-dark.svg b/layouts/partials/tabler-icons/theme-dark.svg new file mode 100644 index 0000000..ec6ba71 --- /dev/null +++ b/layouts/partials/tabler-icons/theme-dark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/theme-light.svg b/layouts/partials/tabler-icons/theme-light.svg new file mode 100644 index 0000000..9902622 --- /dev/null +++ b/layouts/partials/tabler-icons/theme-light.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/tiktok.svg b/layouts/partials/tabler-icons/tiktok.svg new file mode 100644 index 0000000..d5c6d2e --- /dev/null +++ b/layouts/partials/tabler-icons/tiktok.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/tinder.svg b/layouts/partials/tabler-icons/tinder.svg new file mode 100644 index 0000000..129c7be --- /dev/null +++ b/layouts/partials/tabler-icons/tinder.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/tumblr.svg b/layouts/partials/tabler-icons/tumblr.svg new file mode 100644 index 0000000..531c44e --- /dev/null +++ b/layouts/partials/tabler-icons/tumblr.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/twitch.svg b/layouts/partials/tabler-icons/twitch.svg new file mode 100644 index 0000000..9f13c36 --- /dev/null +++ b/layouts/partials/tabler-icons/twitch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/twitter.svg b/layouts/partials/tabler-icons/twitter.svg new file mode 100644 index 0000000..81650b7 --- /dev/null +++ b/layouts/partials/tabler-icons/twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/vk.svg b/layouts/partials/tabler-icons/vk.svg new file mode 100644 index 0000000..7d057fd --- /dev/null +++ b/layouts/partials/tabler-icons/vk.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/weibo.svg b/layouts/partials/tabler-icons/weibo.svg new file mode 100644 index 0000000..88fbba6 --- /dev/null +++ b/layouts/partials/tabler-icons/weibo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/x.svg b/layouts/partials/tabler-icons/x.svg new file mode 100644 index 0000000..0feee2b --- /dev/null +++ b/layouts/partials/tabler-icons/x.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/youtube.svg b/layouts/partials/tabler-icons/youtube.svg new file mode 100644 index 0000000..2f996cf --- /dev/null +++ b/layouts/partials/tabler-icons/youtube.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/tabler-icons/zhihu.svg b/layouts/partials/tabler-icons/zhihu.svg new file mode 100644 index 0000000..78c6236 --- /dev/null +++ b/layouts/partials/tabler-icons/zhihu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/theme.toml b/theme.toml index c62cfd2..ca563c3 100644 --- a/theme.toml +++ b/theme.toml @@ -1,7 +1,7 @@ name = "Anubis2" license = "MIT" licenselink = "https://github.com/Junyi-99/hugo-theme-anubis2/blob/master/LICENSE" -description = "A minimal Hugo theme" +description = "A minimal and elegant Hugo theme" homepage = "https://github.com/Junyi-99/hugo-theme-anubis2" demosite = "https://hugo-theme-anubis2.netlify.app/" tags = [