Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuttleSpace committed Feb 16, 2024
1 parent 5b56819 commit 5c71d9b
Show file tree
Hide file tree
Showing 20 changed files with 40 additions and 17 deletions.
27 changes: 15 additions & 12 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ external_link:
exclude: ''
filename_case: 0
render_drafts: false
post_asset_folder: false
post_asset_folder: true
marked:
prependRoot: true
postAsset: true
relative_link: false
future: true
highlight:
Expand Down Expand Up @@ -116,14 +119,14 @@ theme: next
theme_config:
minify: false
custom_file_path:
head: source/_data/head.njk
head: source/_data/head.swig
#header: source/_data/header.njk
#sidebar: source/_data/sidebar.njk
#postMeta: source/_data/post-meta.njk
#postBodyStart: source/_data/post-body-start.njk
postBodyEnd: source/_data/post-body-end.njk
footer: source/_data/footer.njk
bodyEnd: source/_data/body-end.njk
postBodyEnd: source/_data/post-body-end.swig
footer: source/_data/footer.swig
bodyEnd: source/_data/body-end.swig
#variable: source/_data/variables.styl
#mixin: source/_data/mixins.styl
style: source/_data/styles.styl
Expand All @@ -133,10 +136,10 @@ theme_config:
darkmode: auto
colorscheme: light
favicon:
small: static/images/favicon-16x16-next.png
medium: static/images/favicon-32x32-next.png
apple_touch_icon: static/images/apple-touch-icon-next.png
safari_pinned_tab: static/images/logo.svg
small: images/favicon-16x16-next.png
medium: images/favicon-32x32-next.png
apple_touch_icon: images/apple-touch-icon-next.png
safari_pinned_tab: images/logo.svg
#android_manifest: /manifest.json
open_graph:
enable: false
Expand All @@ -152,7 +155,7 @@ theme_config:
sidebar:
position: right
avatar:
url: http://picbed.dang8080.cn/avatar.jpeg
url: images/avatar.jpeg
rounded: true
social:
GitHub: https://github.com/ShuttleSpace || fab fa-github
Expand All @@ -169,8 +172,8 @@ theme_config:
wpm: 275
tag_icon: true
reward:
wechatpay: static/images/site/wechatpay.png
alipay: static/images/site/alipay.png
wechatpay: images/site/wechatpay.png
alipay: images/site/alipay.png
related_posts:
enable: true
title: 要不看点别的吧?💗 # Custom header, leave empty to use the default one
Expand Down
6 changes: 4 additions & 2 deletions source/_data/body-end.njk → source/_data/body-end.swig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% if is_post %}
<script>
var valineParentDOM = document.querySelector('body > main > div.main-inner.post.posts-expand')
var valineParentDOM = document.querySelector('body > main > div.main-inner')
var valineDOM = document.createElement('div')
valineDOM.style.marginTop = '2rem'
valineDOM.id = 'vcomments'
Expand All @@ -10,4 +11,5 @@
appId: 'WS6xwQjL3YsDPCdcRTqtpdhg-gzGzoHsz',
appKey: 'NgSfNQLxbzWKBuQROhn56aP5'
});
</script>
</script>
{% endif %}
2 changes: 0 additions & 2 deletions source/_data/footer.njk → source/_data/footer.swig
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
async function site_read_count() {
const className = 'Counter',
query = new AV.Query(className)
console.log('site_read_count')
return query.find()
.then(_ => _.map(i => i.attributes.time))
.then(_ => _.reduce((a, b) => a + b))
Expand All @@ -59,7 +58,6 @@
})
.then(() => site_read_count())
.then((count) => {
console.log('[mycount]', count)
const s = ` ${count} 次`
document.getElementById("site_total_read_count").innerHTML = s
})
Expand Down
2 changes: 1 addition & 1 deletion source/_data/head.njk → source/_data/head.swig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script type="text/javascript" src="http://cdn.dang8080.cn/love.js"></script>
<%- js('js/love.js') %>
<script src="https://cdn.jsdelivr.net/npm/valine@1.5.1/dist/Valine.min.js"></script>
<script>
// (function(){
Expand Down
File renamed without changes.
File renamed without changes
Binary file added source/images/avatar.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
1 change: 1 addition & 0 deletions source/js/love.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions source/lib/anime.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions source/lib/font-awesome/css/all.min.css

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions source/lib/velocity/velocity.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions source/lib/velocity/velocity.ui.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5c71d9b

Please sign in to comment.