提交 f60620be 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

chore: Change the way of scripts are included

上级 477e5809
......@@ -70,6 +70,7 @@ footer:
copyright:
enable: true
# If not set, will be used `author` from Hexo main config.
# (e.g. liuyib. All Rights Reserved.)
text:
# Specify the date when the site was setup.
# If not set, the current year will be used.
......@@ -123,6 +124,7 @@ menu:
about: /about/ || user
# reading: /reading/ || book
# sitemap: /sitemap.xml || sitemap
# You can also add a item by yourself.
# xxx: /xxx/ || xxx
menu_settings:
......@@ -179,6 +181,8 @@ social:
wechat: yournumber || weixin
telegram: yournumber || telegram
qq: yournumber || qq
# You can also add a link by yourself.
# xxx: xxx || (origin:)xxx
social_setting:
# Only show social links by an icon.
......@@ -206,7 +210,8 @@ feed:
enable: false
# Enter your email subscription link (e.g. http://eepurl.com/guAE6j).
email:
# rss:
# Enter the rss address of you set (e.g. /atom.xml)
rss:
# The reading progress of post.
reading_progress:
......@@ -236,6 +241,7 @@ post_meta:
# Count the reading time of the post.
# Don't enable this before install dependencies
# by `npm install hexo-wordcount --save` in hexo directory.
# and you must restart your hexo server.
reading_time:
enable: false
# Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
......@@ -249,6 +255,7 @@ post_meta:
# Count the words of the post.
# Don't enable this before install dependencies
# by `npm install hexo-wordcount --save` in hexo directory.
# and you must restart your hexo server.
word_count:
enable: false
# Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
......@@ -304,7 +311,7 @@ reward:
# Gitment
# See: https://github.com/imsun/gitment
gitment:
enable: true
enable: false
# Github username.
owner:
# Github repository.
......
......@@ -16,8 +16,10 @@ html(lang=config.language)
if url
script(src=url_for(url))
if theme.scripts && theme.scripts.length > 0
each url in theme.scripts
script(src=url_for(url) + "?v=" + stun_env("version"))
include ../_scripts/common.pug
if is_post()
include ../_scripts/post.pug
//- Third party resource file
include ../_third-party/comments/index.pug
script(src=`${url_for(theme.js)}/utils.js?v=${stun_env("version")}`)
script(src=`${url_for(theme.js)}/scroll.js?v=${stun_env("version")}`)
script(src=`${url_for(theme.js)}/header.js?v=${stun_env("version")}`)
script(src=`${url_for(theme.js)}/sidebar.js?v=${stun_env("version")}`)
script(src=`${url_for(theme.js)}/post.js?v=${stun_env("version")}`)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册