From 8ca8b8b727f4eeb482ea5ec2dcc8eb1dfda1d5ad Mon Sep 17 00:00:00 2001 From: zhixuan666 Date: Sat, 9 Jan 2021 10:31:26 +0900 Subject: [PATCH] feat valine --- assets/icons/eye.svg | 5 ++++ assets/scss/partials/article.scss | 7 +++++ exampleSite/config.yaml | 8 ++++++ .../partials/article/components/details.html | 26 ++++++++++++++----- .../partials/comments/provider/valine.html | 13 ++++++++++ .../partials/footer/components/script.html | 18 ++++++++++++- 6 files changed, 69 insertions(+), 8 deletions(-) create mode 100644 assets/icons/eye.svg create mode 100644 layouts/partials/comments/provider/valine.html diff --git a/assets/icons/eye.svg b/assets/icons/eye.svg new file mode 100644 index 0000000..0ff37d9 --- /dev/null +++ b/assets/icons/eye.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/assets/scss/partials/article.scss b/assets/scss/partials/article.scss index 2c42ec7..b7d07bd 100644 --- a/assets/scss/partials/article.scss +++ b/assets/scss/partials/article.scss @@ -110,6 +110,13 @@ } } +.article-meta { + font-size: 1.4rem; + section { + margin-right: 20px; + } +} + .article-category, .article-tags { a { diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index fb89f51..92b8fb3 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -51,6 +51,14 @@ params: issueTerm: pathname label: theme: preferred-color-scheme + valine: + enable: false + appId: # leancloud appId + appKey: # leancloud appKey + verify: false # Verification code + avatar: wavatar # Gravatar style + placeholder: 说点什么吧... + visitor: true # Article reading statistic widgets: enabled: diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index 5c5397b..77a6ae0 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -21,12 +21,24 @@ {{ end }} - {{- if not .Date.IsZero -}} -