feat: mv assets/data/emoji to assets/lib/valine/emoji/

This commit is contained in:
Dillon 2022-05-14 02:34:47 +08:00
parent a0c340316a
commit 56b4252ec7
No known key found for this signature in database
GPG key ID: 0EF4AE57FB98F108
9 changed files with 13 additions and 13 deletions

View file

@ -423,14 +423,14 @@
serverURLs = "" serverURLs = ""
# emoji data file name, default is "google.yml" # emoji data file name, default is "google.yml"
# ["apple.yml", "google.yml", "facebook.yml", "twitter.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: # you can store your own data files in the same path under your project:
# "assets/data/emoji/" # "assets/lib/valine/emoji/"
# emoji 数据文件名称, 默认是 "google.yml" # emoji 数据文件名称, 默认是 "google.yml"
# ["apple.yml", "google.yml", "facebook.yml", "twitter.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 = "" emoji = ""
# Facebook comment config (https://developers.facebook.com/docs/plugins/comments) # Facebook comment config (https://developers.facebook.com/docs/plugins/comments)
# Facebook 评论系统设置 (https://developers.facebook.com/docs/plugins/comments) # Facebook 评论系统设置 (https://developers.facebook.com/docs/plugins/comments)

View file

@ -505,14 +505,14 @@ enableEmoji = true
serverURLs = "https://leancloud.hugoloveit.com" serverURLs = "https://leancloud.hugoloveit.com"
# emoji data file name, default is "google.yml" # emoji data file name, default is "google.yml"
# ["apple.yml", "google.yml", "facebook.yml", "twitter.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: # you can store your own data files in the same path under your project:
# "assets/data/emoji/" # "assets/lib/valine/emoji/"
# emoji 数据文件名称, 默认是 "google.yml" # emoji 数据文件名称, 默认是 "google.yml"
# ["apple.yml", "google.yml", "facebook.yml", "twitter.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 = "" emoji = ""
# Facebook comment config (https://developers.facebook.com/docs/plugins/comments) # Facebook comment config (https://developers.facebook.com/docs/plugins/comments)
# Facebook 评论系统设置 (https://developers.facebook.com/docs/plugins/comments) # Facebook 评论系统设置 (https://developers.facebook.com/docs/plugins/comments)

View file

@ -529,9 +529,9 @@ Please open the code block below to view the complete sample configuration :(far
serverURLs = "" serverURLs = ""
# {{< version 0.2.6 >}} emoji data file name, default is "google.yml" # {{< version 0.2.6 >}} emoji data file name, default is "google.yml"
# ["apple.yml", "google.yml", "facebook.yml", "twitter.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: # you can store your own data files in the same path under your project:
# "assets/data/emoji/" # "assets/lib/valine/emoji/"
emoji = "" emoji = ""
# {{< link "https://developers.facebook.com/docs/plugins/comments" "Facebook comment" >}} config # {{< link "https://developers.facebook.com/docs/plugins/comments" "Facebook comment" >}} config
[params.page.comment.facebook] [params.page.comment.facebook]

View file

@ -531,9 +531,9 @@ hugo
serverURLs = "" serverURLs = ""
# {{< version 0.2.6 >}} emoji 数据文件名称, 默认是 "google.yml" # {{< version 0.2.6 >}} emoji 数据文件名称, 默认是 "google.yml"
# ["apple.yml", "google.yml", "facebook.yml", "twitter.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 = "" emoji = ""
# {{< link "https://developers.facebook.com/docs/plugins/comments" "Facebook 评论系统" >}}设置 # {{< link "https://developers.facebook.com/docs/plugins/comments" "Facebook 评论系统" >}}设置
[params.page.comment.facebook] [params.page.comment.facebook]

View file

@ -51,7 +51,7 @@
{{- with $valine.serverURLs -}} {{- with $valine.serverURLs -}}
{{- $commentConfig = dict "serverURLs" . | dict "valine" | merge $commentConfig -}} {{- $commentConfig = dict "serverURLs" . | dict "valine" | merge $commentConfig -}}
{{- end -}} {{- 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> <noscript>
Please enable JavaScript to view the comments powered by <a href="https://valine.js.org/">Valine</a>. Please enable JavaScript to view the comments powered by <a href="https://valine.js.org/">Valine</a>.
</noscript> </noscript>