diff options
Diffstat (limited to 'exampleSite/content')
-rw-r--r-- | exampleSite/content/about.en.md | 4 | ||||
-rw-r--r-- | exampleSite/content/about.fr.md | 4 | ||||
-rw-r--r-- | exampleSite/content/about.zh-cn.md | 4 | ||||
-rw-r--r-- | exampleSite/content/posts/emoji-support.zh-cn.md | 2 | ||||
-rw-r--r-- | exampleSite/content/posts/theme-documentation-basics.en.md | 151 | ||||
-rw-r--r-- | exampleSite/content/posts/theme-documentation-basics.fr.md | 151 | ||||
-rw-r--r-- | exampleSite/content/posts/theme-documentation-basics.zh-cn.md | 159 |
7 files changed, 287 insertions, 188 deletions
diff --git a/exampleSite/content/about.en.md b/exampleSite/content/about.en.md index 354a5be..1a559cc 100644 --- a/exampleSite/content/about.en.md +++ b/exampleSite/content/about.en.md @@ -47,7 +47,7 @@ It is based on the original [LeaveIt Theme](https://github.com/liuzc/LeaveIt/) a * :(far fa-user): **Gravatar** supported by [Gravatar](https://gravatar.com) * :(fas fa-user-circle): Local **Avatar** supported -* :(far fa-id-card): Up to **62** social links supported +* :(far fa-id-card): Up to **64** social links supported * :(fas fa-share-square): Up to **28** share sites supported * :(far fa-comment): **Disqus** comment system supported by [Disqus](https://disqus.com) * :(far fa-comment-dots): **Gitalk** comment system supported by [Gitalk](https://github.com/gitalk/gitalk) @@ -86,7 +86,7 @@ Thanks to the authors of following resources included in the theme: * [normalize.css](https://github.com/necolas/normalize.css) * [Font Awesome](https://fontawesome.com/) -* [Fork Awesome](https://forkaweso.me/Fork-Awesome/) +* [Simple Icons](https://github.com/simple-icons/simple-icons) * [Animate.css](https://daneden.github.io/animate.css/) * [Smooth Scroll](https://github.com/cferdinandi/smooth-scroll) * [autocomplete.js](https://github.com/algolia/autocomplete.js) diff --git a/exampleSite/content/about.fr.md b/exampleSite/content/about.fr.md index be537bb..099cf16 100644 --- a/exampleSite/content/about.fr.md +++ b/exampleSite/content/about.fr.md @@ -52,7 +52,7 @@ It is based on the original [LeaveIt Theme](https://github.com/liuzc/LeaveIt/) a * :(far fa-user): **Gravatar** supported by [Gravatar](https://gravatar.com) * :(fas fa-user-circle): Local **Avatar** supported -* :(far fa-id-card): Up to **62** social links supported +* :(far fa-id-card): Up to **64** social links supported * :(fas fa-share-square): Up to **28** share sites supported * :(far fa-comment): **Disqus** comment system supported by [Disqus](https://disqus.com) * :(far fa-comment-dots): **Gitalk** comment system supported by [Gitalk](https://github.com/gitalk/gitalk) @@ -91,7 +91,7 @@ Thanks to the authors of following resources included in the theme: * [normalize.css](https://github.com/necolas/normalize.css) * [Font Awesome](https://fontawesome.com/) -* [Fork Awesome](https://forkaweso.me/Fork-Awesome/) +* [Simple Icons](https://github.com/simple-icons/simple-icons) * [Animate.css](https://daneden.github.io/animate.css/) * [Smooth Scroll](https://github.com/cferdinandi/smooth-scroll) * [autocomplete.js](https://github.com/algolia/autocomplete.js) diff --git a/exampleSite/content/about.zh-cn.md b/exampleSite/content/about.zh-cn.md index c1e2471..2df1710 100644 --- a/exampleSite/content/about.zh-cn.md +++ b/exampleSite/content/about.zh-cn.md @@ -47,7 +47,7 @@ math: * :(far fa-user): 支持 **[Gravatar](https://gravatar.com)** 头像 * :(fas fa-user-circle): 支持本地**头像** -* :(far fa-id-card): 支持多达 **62** 种社交链接 +* :(far fa-id-card): 支持多达 **64** 种社交链接 * :(fas fa-share-square): 支持多达 **28** 种网站分享 * :(far fa-comment): 支持 **[Disqus](https://disqus.com)** 评论系统 * :(far fa-comment-dots): 支持 **[Gitalk](https://github.com/gitalk/gitalk)** 评论系统 @@ -86,7 +86,7 @@ LoveIt 主题中用到了以下项目,感谢它们的作者: * [normalize.css](https://github.com/necolas/normalize.css) * [Font Awesome](https://fontawesome.com/) -* [Fork Awesome](https://forkaweso.me/Fork-Awesome/) +* [Simple Icons](https://github.com/simple-icons/simple-icons) * [Animate.css](https://daneden.github.io/animate.css/) * [Smooth Scroll](https://github.com/cferdinandi/smooth-scroll) * [autocomplete.js](https://github.com/algolia/autocomplete.js) diff --git a/exampleSite/content/posts/emoji-support.zh-cn.md b/exampleSite/content/posts/emoji-support.zh-cn.md index 4514baa..fed3d30 100644 --- a/exampleSite/content/posts/emoji-support.zh-cn.md +++ b/exampleSite/content/posts/emoji-support.zh-cn.md @@ -19,7 +19,7 @@ Emoji 可以通过多种方式在 Hugo 项目中启用. <!--more--> -[`emojify`](https://gohugo.io/functions/emojify/) 方法可以直接在模板中调用, 或者使用 [内联 Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). +[`emojify`](https://gohugo.io/functions/emojify/) 方法可以直接在模板中调用, 或者使用 [行内 Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). 要全局使用 emoji, 需要在你的网站 [配置](https://gohugo.io/getting-started/configuration/) 中设置 `enableEmoji` 为 `true`, 然后你就可以直接在文章中输入 emoji 的代码. diff --git a/exampleSite/content/posts/theme-documentation-basics.en.md b/exampleSite/content/posts/theme-documentation-basics.en.md index 6f45922..1eb5bfc 100644 --- a/exampleSite/content/posts/theme-documentation-basics.en.md +++ b/exampleSite/content/posts/theme-documentation-basics.en.md @@ -290,69 +290,68 @@ Note that some of these parameters are explained in details in other sections of # Social config about the author [params.social] GitHub = "xxxx" - Linkedin = "xxxx" + Linkedin = "" Twitter = "xxxx" Instagram = "xxxx" - Email = "xxxx@xxxx.com" Facebook = "xxxx" Telegram = "xxxx" - # Medium = "xxxx" - # Gitlab = "xxxx" - Youtubelegacy = "xxxx" - # Youtubecustom = "xxxx" - # Youtubechannel = "xxxx" - # Tumblr ="xxxx" - # Quora = "xxxx" - # Keybase = "xxxx" - # Pinterest = "xxxx" - # Reddit = "xxxx" - # Codepen = "xxxx" - # FreeCodeCamp = "xxxx" - # Bitbucket = "xxxx" - # Stackoverflow = "xxxx" - # Weibo = "xxxx" - # Odnoklassniki = "xxxx" - # VK = "xxxx" - # Flickr = "xxxx" - # Xing = "xxxx" - # Snapchat = "xxxx" - # Soundcloud = "xxxx" - # Spotify = "xxxx" - # Bandcamp = "xxxx" - # Paypal = "xxxx" - # Fivehundredpx = "xxxx" - # Mix = "xxxx" - # Goodreads = "xxxx" - # Lastfm = "xxxx" - # Foursquare = "xxxx" - # Hackernews = "xxxx" - # Kickstarter = "xxxx" - # Patreon = "xxxx" - # Steam = "xxxx" - # Twitch = "xxxx" - # Strava = "xxxx" - # Skype = "xxxx" - # Whatsapp = "xxxx" - # Zhihu = "xxxx" - # Douban = "xxxx" - # Angellist = "xxxx" - # Slidershare = "xxxx" - # Jsfiddle = "xxxx" - # Deviantart = "xxxx" - # Behance = "xxxx" - # Dribble = "xxxx" - # Wordpress = "xxxx" - # Vine = "xxxx" - # Googlescholar = "xxxx" - # Researchgate = "xxxx" - # Mastodon = "xxxx" - # MastodonPrefix = "https://mastodon.technology/" - # Thingiverse = "xxxx" - # Devto = "xxxx" - # Gitea = "xxxx" - # XMPP = "xxxx" - # Matrix = "xxxx" - # Bilibili = "xxxx" + Medium = "" + Gitlab = "" + Youtubelegacy = "" + Youtubecustom = "" + Youtubechannel = "" + Tumblr = "" + Quora = "" + Keybase = "" + Pinterest = "" + Reddit = "" + Codepen = "" + FreeCodeCamp = "" + Bitbucket = "" + Stackoverflow = "" + Weibo = "" + Odnoklassniki = "" + VK = "" + Flickr = "" + Xing = "" + Snapchat = "" + Soundcloud = "" + Spotify = "" + Bandcamp = "" + Paypal = "" + Fivehundredpx = "" + Mix = "" + Goodreads = "" + Lastfm = "" + Foursquare = "" + Hackernews = "" + Kickstarter = "" + Patreon = "" + Steam = "" + Twitch = "" + Strava = "" + Skype = "" + Whatsapp = "" + Zhihu = "" + Douban = "" + Angellist = "" + Slidershare = "" + Jsfiddle = "" + Deviantart = "" + Behance = "" + Dribbble = "" + Wordpress = "" + Vine = "" + Googlescholar = "" + Researchgate = "" + Mastodon = "" + Thingiverse = "" + Devto = "" + Gitea = "" + XMPP = "" + Matrix = "" + Bilibili = "" + Email = "xxxx@xxxx.com" RSS = true # {{< version 0.2.0 >}} # {{< version 0.2.0 changed >}} Page config @@ -536,6 +535,9 @@ Note that some of these parameters are explained in details in other sections of normalizeCSS = '' # {{< link "https://fontawesome.com/" "fontawesome-free" >}}@5.12.1 fontawesomeFreeCSS = '' + # {{< version 0.2.0 >}} {{< link "https://github.com/simple-icons/simple-icons" "simple-icons" >}}@2.9.0 + # ('https://cdn.jsdelivr.net/npm/simple-icons@v2/icons/') + simpleIconsPrefix = 'https://cdn.jsdelivr.net/npm/simple-icons@v2/icons/' # animate.css@3.7.2 https://github.com/daneden/animate.css animateCSS = '' # {{< link "https://github.com/cferdinandi/smooth-scroll" "smooth-scroll" >}}@16.1.2 @@ -672,6 +674,37 @@ smoothScrollJS = 'https://cdn.jsdelivr.net/npm/smooth-scroll@16/dist/smooth-scro ``` {{< /admonition >}} +{{< admonition tip "Tips about social Configuration" >}} +{{< version 0.2.0 >}} + +You can directly set your ID to get a default social link and its icon: + +```toml +[params.social] + Mastodon = "@xxxx" +``` + +The social link generated is `https://mastodon.technology/@xxxx`. + +Or You can set more options through a dict: + +```toml +[params.social] + [params.social.Mastodon] + # weight when arranging icons (the greater the weight, the later the icon is positioned) + weight = 0 + # your social ID + id = "@xxxx" + # prefix of your social link + prefix = "https://mastodon.social/" + # content hovering on the icon + title = "Mastodon" +``` + +The default configuration of all supported social links is located in `themes/LoveIt/assets/data/social.yaml`, +which is you can refer to. +{{< /admonition >}} + ![Complete configuration preview](/images/theme-documentation-basics/complete-configuration-preview.png "Complete configuration preview") ### 3.2 Favicons, Browserconfig, Manifest diff --git a/exampleSite/content/posts/theme-documentation-basics.fr.md b/exampleSite/content/posts/theme-documentation-basics.fr.md index 419a24c..ed7ccc2 100644 --- a/exampleSite/content/posts/theme-documentation-basics.fr.md +++ b/exampleSite/content/posts/theme-documentation-basics.fr.md @@ -295,69 +295,68 @@ Note that some of these parameters are explained in details in other sections of # Social config about the author [params.social] GitHub = "xxxx" - Linkedin = "xxxx" + Linkedin = "" Twitter = "xxxx" Instagram = "xxxx" - Email = "xxxx@xxxx.com" Facebook = "xxxx" Telegram = "xxxx" - # Medium = "xxxx" - # Gitlab = "xxxx" - Youtubelegacy = "xxxx" - # Youtubecustom = "xxxx" - # Youtubechannel = "xxxx" - # Tumblr ="xxxx" - # Quora = "xxxx" - # Keybase = "xxxx" - # Pinterest = "xxxx" - # Reddit = "xxxx" - # Codepen = "xxxx" - # FreeCodeCamp = "xxxx" - # Bitbucket = "xxxx" - # Stackoverflow = "xxxx" - # Weibo = "xxxx" - # Odnoklassniki = "xxxx" - # VK = "xxxx" - # Flickr = "xxxx" - # Xing = "xxxx" - # Snapchat = "xxxx" - # Soundcloud = "xxxx" - # Spotify = "xxxx" - # Bandcamp = "xxxx" - # Paypal = "xxxx" - # Fivehundredpx = "xxxx" - # Mix = "xxxx" - # Goodreads = "xxxx" - # Lastfm = "xxxx" - # Foursquare = "xxxx" - # Hackernews = "xxxx" - # Kickstarter = "xxxx" - # Patreon = "xxxx" - # Steam = "xxxx" - # Twitch = "xxxx" - # Strava = "xxxx" - # Skype = "xxxx" - # Whatsapp = "xxxx" - # Zhihu = "xxxx" - # Douban = "xxxx" - # Angellist = "xxxx" - # Slidershare = "xxxx" - # Jsfiddle = "xxxx" - # Deviantart = "xxxx" - # Behance = "xxxx" - # Dribble = "xxxx" - # Wordpress = "xxxx" - # Vine = "xxxx" - # Googlescholar = "xxxx" - # Researchgate = "xxxx" - # Mastodon = "xxxx" - # MastodonPrefix = "https://mastodon.technology/" - # Thingiverse = "xxxx" - # Devto = "xxxx" - # Gitea = "xxxx" - # XMPP = "xxxx" - # Matrix = "xxxx" - # Bilibili = "xxxx" + Medium = "" + Gitlab = "" + Youtubelegacy = "" + Youtubecustom = "" + Youtubechannel = "" + Tumblr = "" + Quora = "" + Keybase = "" + Pinterest = "" + Reddit = "" + Codepen = "" + FreeCodeCamp = "" + Bitbucket = "" + Stackoverflow = "" + Weibo = "" + Odnoklassniki = "" + VK = "" + Flickr = "" + Xing = "" + Snapchat = "" + Soundcloud = "" + Spotify = "" + Bandcamp = "" + Paypal = "" + Fivehundredpx = "" + Mix = "" + Goodreads = "" + Lastfm = "" + Foursquare = "" + Hackernews = "" + Kickstarter = "" + Patreon = "" + Steam = "" + Twitch = "" + Strava = "" + Skype = "" + Whatsapp = "" + Zhihu = "" + Douban = "" + Angellist = "" + Slidershare = "" + Jsfiddle = "" + Deviantart = "" + Behance = "" + Dribbble = "" + Wordpress = "" + Vine = "" + Googlescholar = "" + Researchgate = "" + Mastodon = "" + Thingiverse = "" + Devto = "" + Gitea = "" + XMPP = "" + Matrix = "" + Bilibili = "" + Email = "xxxx@xxxx.com" RSS = true # {{< version 0.2.0 >}} # {{< version 0.2.0 changed >}} Page config @@ -541,6 +540,9 @@ Note that some of these parameters are explained in details in other sections of normalizeCSS = '' # {{< link "https://fontawesome.com/" "fontawesome-free" >}}@5.12.1 fontawesomeFreeCSS = '' + # {{< version 0.2.0 >}} {{< link "https://github.com/simple-icons/simple-icons" "simple-icons" >}}@2.9.0 + # ('https://cdn.jsdelivr.net/npm/simple-icons@v2/icons/') + simpleIconsPrefix = 'https://cdn.jsdelivr.net/npm/simple-icons@v2/icons/' # animate.css@3.7.2 https://github.com/daneden/animate.css animateCSS = '' # {{< link "https://github.com/cferdinandi/smooth-scroll" "smooth-scroll" >}}@16.1.2 @@ -677,6 +679,37 @@ smoothScrollJS = 'https://cdn.jsdelivr.net/npm/smooth-scroll@16/dist/smooth-scro ``` {{< /admonition >}} +{{< admonition tip "Tips about social Configuration" >}} +{{< version 0.2.0 >}} + +You can directly set your ID to get a default social link and its icon: + +```toml +[params.social] + Mastodon = "@xxxx" +``` + +The social link generated is `https://mastodon.technology/@xxxx`. + +Or You can set more options through a dict: + +```toml +[params.social] + [params.social.Mastodon] + # weight when arranging icons (the greater the weight, the later the icon is positioned) + weight = 0 + # your social ID + id = "@xxxx" + # prefix of your social link + prefix = "https://mastodon.social/" + # content hovering on the icon + title = "Mastodon" +``` + +The default configuration of all supported social links is located in `themes/LoveIt/assets/data/social.yaml`, +which is you can refer to. +{{< /admonition >}} + ![Complete configuration preview](/images/theme-documentation-basics/complete-configuration-preview.png "Complete configuration preview") ### 3.2 Favicons, Browserconfig, Manifest diff --git a/exampleSite/content/posts/theme-documentation-basics.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics.zh-cn.md index 9f58df8..c935cee 100644 --- a/exampleSite/content/posts/theme-documentation-basics.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics.zh-cn.md @@ -293,69 +293,68 @@ hugo # 作者的社交信息设置 [params.social] GitHub = "xxxx" - # Linkedin = "xxxx" - # Twitter = "xxxx" - # Instagram = "xxxx" + Linkedin = "" + Twitter = "xxxx" + Instagram = "xxxx" + Facebook = "xxxx" + Telegram = "xxxx" + Medium = "" + Gitlab = "" + Youtubelegacy = "" + Youtubecustom = "" + Youtubechannel = "" + Tumblr = "" + Quora = "" + Keybase = "" + Pinterest = "" + Reddit = "" + Codepen = "" + FreeCodeCamp = "" + Bitbucket = "" + Stackoverflow = "" + Weibo = "" + Odnoklassniki = "" + VK = "" + Flickr = "" + Xing = "" + Snapchat = "" + Soundcloud = "" + Spotify = "" + Bandcamp = "" + Paypal = "" + Fivehundredpx = "" + Mix = "" + Goodreads = "" + Lastfm = "" + Foursquare = "" + Hackernews = "" + Kickstarter = "" + Patreon = "" + Steam = "" + Twitch = "" + Strava = "" + Skype = "" + Whatsapp = "" + Zhihu = "" + Douban = "" + Angellist = "" + Slidershare = "" + Jsfiddle = "" + Deviantart = "" + Behance = "" + Dribbble = "" + Wordpress = "" + Vine = "" + Googlescholar = "" + Researchgate = "" + Mastodon = "" + Thingiverse = "" + Devto = "" + Gitea = "" + XMPP = "" + Matrix = "" + Bilibili = "" Email = "xxxx@xxxx.com" - # Facebook = "xxxx" - # Telegram = "xxxx" - # Medium = "xxxx" - # Gitlab = "xxxx" - # Youtubelegacy = "xxxx" - # Youtubecustom = "xxxx" - # Youtubechannel = "xxxx" - # Tumblr ="xxxx" - # Quora = "xxxx" - # Keybase = "xxxx" - # Pinterest = "xxxx" - # Reddit = "xxxx" - # Codepen = "xxxx" - # FreeCodeCamp = "xxxx" - # Bitbucket = "xxxx" - # Stackoverflow = "xxxx" - Weibo = "xxxx" - # Odnoklassniki = "xxxx" - # VK = "xxxx" - # Flickr = "xxxx" - # Xing = "xxxx" - # Snapchat = "xxxx" - # Soundcloud = "xxxx" - # Spotify = "xxxx" - # Bandcamp = "xxxx" - # Paypal = "xxxx" - # Fivehundredpx = "xxxx" - # Mix = "xxxx" - # Goodreads = "xxxx" - # Lastfm = "xxxx" - # Foursquare = "xxxx" - # Hackernews = "xxxx" - # Kickstarter = "xxxx" - # Patreon = "xxxx" - # Steam = "xxxx" - # Twitch = "xxxx" - # Strava = "xxxx" - # Skype = "xxxx" - # Whatsapp = "xxxx" - Zhihu = "xxxx" - Douban = "xxxx" - # Angellist = "xxxx" - # Slidershare = "xxxx" - # Jsfiddle = "xxxx" - # Deviantart = "xxxx" - # Behance = "xxxx" - # Dribble = "xxxx" - # Wordpress = "xxxx" - # Vine = "xxxx" - # Googlescholar = "xxxx" - # Researchgate = "xxxx" - # Mastodon = "xxxx" - # MastodonPrefix = "https://mastodon.technology/" - # Thingiverse = "xxxx" - # Devto = "xxxx" - # Gitea = "xxxx" - # XMPP = "xxxx" - # Matrix = "xxxx" - Bilibili = "xxxx" RSS = true # {{< version 0.2.0 >}} # {{< version 0.2.0 changed >}} 文章页面配置 @@ -388,7 +387,7 @@ hugo # 默认块定界符是 $$ ... $$ 和 \\[ ... \\] blockLeftDelimiter = "" blockRightDelimiter = "" - # 默认内联定界符是 $ ... $ 和 \\( ... \\) + # 默认行内定界符是 $ ... $ 和 \\( ... \\) inlineLeftDelimiter = "" inlineRightDelimiter = "" # KaTeX 插件 copy_tex @@ -539,6 +538,9 @@ hugo normalizeCSS = '' # {{< link "https://fontawesome.com/" "fontawesome-free" >}}@5.12.1 fontawesomeFreeCSS = '' + # {{< version 0.2.0 >}} {{< link "https://github.com/simple-icons/simple-icons" "simple-icons" >}}@2.9.0 + # ('https://cdn.jsdelivr.net/npm/simple-icons@v2/icons/') + simpleIconsPrefix = 'https://cdn.jsdelivr.net/npm/simple-icons@v2/icons/' # animate.css@3.7.2 https://github.com/daneden/animate.css animateCSS = '' # {{< link "https://github.com/cferdinandi/smooth-scroll" "smooth-scroll" >}}@16.1.2 @@ -675,6 +677,37 @@ smoothScrollJS = 'https://cdn.jsdelivr.net/npm/smooth-scroll@16/dist/smooth-scro ``` {{< /admonition >}} +{{< admonition tip "关于社交链接配置的技巧" >}} +{{< version 0.2.0 >}} + +你可以直接配置你的社交 ID 来生成一个默认社交链接和图标: + +```toml +[params.social] + Mastodon = "@xxxx" +``` + +生成的社交链接是 `https://mastodon.technology/@xxxx`. + +或者你可以通过一个字典来设置更多的选项: + +```toml +[params.social] + [params.social.Mastodon] + # 排列图标时的权重 (权重越大, 图标的位置越靠后) + weight = 0 + # 你的社交 ID + id = "@xxxx" + # 你的社交链接的前缀 + prefix = "https://mastodon.social/" + # 当鼠标停留在图标上时的提示内容 + title = "Mastodon" +``` + +所有支持的社交链接的默认配置位于 `themes/LoveIt/assets/data/social.yaml`. +你可以参考它来配置你的社交链接. +{{< /admonition >}} + ![完整配置下的预览](/images/theme-documentation-basics/complete-configuration-preview.zh-cn.png "完整配置下的预览") ### 3.2 网站图标, 浏览器配置, 网站清单 |