mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-22 06:46:29 +01:00
feat: mv assets/data/emoji to assets/lib/valine/emoji/
This commit is contained in:
parent
a0c340316a
commit
56b4252ec7
9 changed files with 13 additions and 13 deletions
|
@ -423,14 +423,14 @@
|
|||
serverURLs = ""
|
||||
# emoji data file name, default is "google.yml"
|
||||
# ["apple.yml", "google.yml", "facebook.yml", "twitter.yml"]
|
||||
# located in "themes/LoveIt/assets/data/emoji/" directory
|
||||
# located in "themes/LoveIt/assets/lib/valine/emoji/" directory
|
||||
# you can store your own data files in the same path under your project:
|
||||
# "assets/data/emoji/"
|
||||
# "assets/lib/valine/emoji/"
|
||||
# emoji 数据文件名称, 默认是 "google.yml"
|
||||
# ["apple.yml", "google.yml", "facebook.yml", "twitter.yml"]
|
||||
# 位于 "themes/LoveIt/assets/data/emoji/" 目录
|
||||
# 位于 "themes/LoveIt/assets/lib/valine/emoji/" 目录
|
||||
# 可以在你的项目下相同路径存放你自己的数据文件:
|
||||
# "assets/data/emoji/"
|
||||
# "assets/lib/valine/emoji/"
|
||||
emoji = ""
|
||||
# Facebook comment config (https://developers.facebook.com/docs/plugins/comments)
|
||||
# Facebook 评论系统设置 (https://developers.facebook.com/docs/plugins/comments)
|
||||
|
|
|
@ -505,14 +505,14 @@ enableEmoji = true
|
|||
serverURLs = "https://leancloud.hugoloveit.com"
|
||||
# emoji data file name, default is "google.yml"
|
||||
# ["apple.yml", "google.yml", "facebook.yml", "twitter.yml"]
|
||||
# located in "themes/LoveIt/assets/data/emoji/" directory
|
||||
# located in "themes/LoveIt/assets/lib/valine/emoji/" directory
|
||||
# you can store your own data files in the same path under your project:
|
||||
# "assets/data/emoji/"
|
||||
# "assets/lib/valine/emoji/"
|
||||
# emoji 数据文件名称, 默认是 "google.yml"
|
||||
# ["apple.yml", "google.yml", "facebook.yml", "twitter.yml"]
|
||||
# 位于 "themes/LoveIt/assets/data/emoji/" 目录
|
||||
# 位于 "themes/LoveIt/assets/lib/valine/emoji/" 目录
|
||||
# 可以在你的项目下相同路径存放你自己的数据文件:
|
||||
# "assets/data/emoji/"
|
||||
# "assets/lib/valine/emoji/"
|
||||
emoji = ""
|
||||
# Facebook comment config (https://developers.facebook.com/docs/plugins/comments)
|
||||
# Facebook 评论系统设置 (https://developers.facebook.com/docs/plugins/comments)
|
||||
|
|
|
@ -529,9 +529,9 @@ Please open the code block below to view the complete sample configuration :(far
|
|||
serverURLs = ""
|
||||
# {{< version 0.2.6 >}} emoji data file name, default is "google.yml"
|
||||
# ["apple.yml", "google.yml", "facebook.yml", "twitter.yml"]
|
||||
# located in "themes/LoveIt/assets/data/emoji/" directory
|
||||
# located in "themes/LoveIt/assets/lib/valine/emoji/" directory
|
||||
# you can store your own data files in the same path under your project:
|
||||
# "assets/data/emoji/"
|
||||
# "assets/lib/valine/emoji/"
|
||||
emoji = ""
|
||||
# {{< link "https://developers.facebook.com/docs/plugins/comments" "Facebook comment" >}} config
|
||||
[params.page.comment.facebook]
|
||||
|
|
|
@ -531,9 +531,9 @@ hugo
|
|||
serverURLs = ""
|
||||
# {{< version 0.2.6 >}} emoji 数据文件名称, 默认是 "google.yml"
|
||||
# ["apple.yml", "google.yml", "facebook.yml", "twitter.yml"]
|
||||
# 位于 "themes/LoveIt/assets/data/emoji/" 目录
|
||||
# 位于 "themes/LoveIt/assets/lib/valine/emoji/" 目录
|
||||
# 可以在你的项目下相同路径存放你自己的数据文件:
|
||||
# "assets/data/emoji/"
|
||||
# "assets/lib/valine/emoji/"
|
||||
emoji = ""
|
||||
# {{< link "https://developers.facebook.com/docs/plugins/comments" "Facebook 评论系统" >}}设置
|
||||
[params.page.comment.facebook]
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
{{- with $valine.serverURLs -}}
|
||||
{{- $commentConfig = dict "serverURLs" . | dict "valine" | merge $commentConfig -}}
|
||||
{{- end -}}
|
||||
{{- $commentConfig = $valine.emoji | default "google.yml" | printf "data/emoji/%v" | resources.Get | transform.Unmarshal | dict "valine" | merge $commentConfig -}}
|
||||
{{- $commentConfig = $valine.emoji | default "google.yml" | printf "lib/valine/emoji/%v" | resources.Get | transform.Unmarshal | dict "valine" | merge $commentConfig -}}
|
||||
<noscript>
|
||||
Please enable JavaScript to view the comments powered by <a href="https://valine.js.org/">Valine</a>.
|
||||
</noscript>
|
||||
|
|
Loading…
Reference in a new issue