From 2f166ec2779c7cc8c9b3c7dbd98d86b111a97fbf Mon Sep 17 00:00:00 2001 From: DefectingCat Date: Sat, 15 Feb 2020 17:36:59 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9D=A4=E5=A4=87=E4=BB=BD=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_data/custom.styl | 88 ++++++++ source/_data/fluid_config.yml | 323 +++++++++++++++++++++++++++ source/_data/fluid_static_prefix.yml | 66 ++++++ source/_data/zh-Hans.yml | 42 ++++ 4 files changed, 519 insertions(+) create mode 100644 source/_data/custom.styl create mode 100644 source/_data/fluid_config.yml create mode 100644 source/_data/fluid_static_prefix.yml create mode 100644 source/_data/zh-Hans.yml diff --git a/source/_data/custom.styl b/source/_data/custom.styl new file mode 100644 index 0000000..d1a1f0e --- /dev/null +++ b/source/_data/custom.styl @@ -0,0 +1,88 @@ +// Custom styles +//图片 +.post-content img + border-radius 0.8rem +.post-content img:hover + transition: all 0.5s + -webkit-transition: all 0.5s + -ms-transition: all 0.5s + transform: scale(1.05) + +/*ul and ol*/ +.markdown-body a + background-color: transparent; + text-decoration: none; + color: #00f4e8; + transition: all .12s; + +.markdown-body li:hover + text-shadow: 3px 3px 2px #2f2f2f57; + + /*ol使用css排序进行定义序号*/ +.markdown-body ol + counter-reset: xxx 0 !important; + +.markdown-body ol li:before + content: counter(xxx,decimal) "." !important; + counter-increment: xxx 1 !important; + position:absolute; + font-family:'Comic Sans MS','Open Sans','Microsoft Yahei','Microsoft Yahei',-apple-system,sans-serif !important; + color:#000; + top:0; + left:0; + text-align:center; + font-size:1.2em; + opacity:.5; + /*使用行高来调整前缀的上下位置*/ + line-height:1.33; + text-shadow:4px 4px 1px rgba(0,0,0,.1); + -webkit-transition:.5s;transition:.5s + +.markdown-body ol li:hover:before + -webkit-transform:scale(2);-ms-transform:scale(2);transform:scale(2); + opacity:1; + text-shadow:2px 2px 1px rgba(0,0,0,.1); + -webkit-transition:.1s;transition:.1s + +.markdown-body ol li + list-style:none; + position:relative; + padding:0 0 0 2.1em; + margin:0 0 0 10px; + text-shadow:0px 0px 0px rgba(0,0,0,.1); + -webkit-transition:.12s;transition:.12s; + + /*ul使用插入圆点来模拟无序列表*/ +.markdown-body ul li:before + position:absolute; + content:'\2022'; + font-family:Arial; + color:#000; + top:0; + left:0; + text-align:center; + font-size:1.5em; + opacity:.5; + /*使用行高来调整前缀的位置*/ + line-height:1; + text-shadow:4px 4px 1px rgba(0,0,0,.1); + -webkit-transition:.5s;transition:.5s + +.markdown-body ul li:hover:before + -webkit-transform:scale(2);-ms-transform:scale(2);transform:scale(2); + opacity:1; + text-shadow:2px 2px 1px rgba(0,0,0,.1); + -webkit-transition:.1s;transition:.1s +.markdown-body ul li + list-style:none; + position:relative; + padding:0 0 0 1.5em; + margin:0 0 0 10px; + text-shadow:0px 0px 0px rgba(0,0,0,.1); + -webkit-transition:.12s;transition:.12s; + +//CC +.note.note-warning + background-color: #a3f3f1a1; + border-color: #ff81c0 !important; + diff --git a/source/_data/fluid_config.yml b/source/_data/fluid_config.yml new file mode 100644 index 0000000..55a30a2 --- /dev/null +++ b/source/_data/fluid_config.yml @@ -0,0 +1,323 @@ +#--------------------------- +# Fluid +# Author: Fluid-dev organization +# Github: https://github.com/fluid-dev/hexo-theme-fluid +# +# 本配置的详细指南请见:https://fluid-dev.github.io/hexo-fluid-docs/guide/ +#--------------------------- + + +#--------------------------- +# 全局 +# Site +#--------------------------- +favicon: /defect/images/img/favicon.png # 网站标签页的 icon + +apple_touch_icon: /defect/images/img/apple-touch-icon.png # 用于苹果设备的 icon + +title_join_string: ' ~ ' # 浏览器标签页中的标题分隔符,效果: 文章名 ~ 站点名 + +force_https: false # 强制所有链接升级为 HTTPS(适用于图片等资源出现 HTTP 混入报错) + +highlight: # 代码高亮 + enable: true + theme: tranquil-heart # available: github-v2 | tomorrow | tomorrow-night | tomorrow-night-eighties,更多主题可从 https://jmblog.github.io/color-themes-for-google-code-prettify/ 获取,保存为 `*.min.css` 到 `source/lib/prettify/`,在其中 .prettyprint{ background: ***; ...} 的background 值后加上 !important,例如:.prettyprint{background:#fafbfc!important; ...} + +fun_features: # 一些好玩的功能 + typing: # 为 subtitle 添加打字机效果 + enable: true + typeSpeed: 70 # 打印速度 + cursorChar: "_" # 游标字符 + loop: false # 是否循环播放效果 + anchorjs: # 为文章内容中的标题添加锚图标 + enable: true + element: h1,h2,h3,h4,h5,h6 + placement: right # icon放置的位置: left | right + visible: false # 默认悬浮显示,可选:always(一会显示) | touch(移动端触摸显示) + icon: "❤" # 可选:§ | # | ❡ 等,留空则为默认效果 + mouse_click: # 鼠标点击动效 + enable: false + style: values # 目前设置两个值:values(价值观词汇) | love(爱心) + +color: # 主体颜色配置,可以从这里寻找启发: https://www.webdesignrankings.com/resources/lolcolors/ + body_bg_color: "#eee" + navbar_bg_color: "#9DC8C8" + navbar_text_color: "white" + text_color: "#3c4858" + link_color: "#3c4858" + link_hover_color: "#1abc9c" + board_color: "#fff" + +web_analytics: # 网页访问统计 + enable: false + baidu: # 百度统计的Key,参见 https://tongji.baidu.com/sc-web/10000033910/home/site/getjs?siteId=13751376 代码获取中 hm.js? 后边的字符串 + google: # Google统计的Tracking ID,参见 https://analytics.google.com/analytics/web/ + tencent: # 腾讯统计的H5 App id,参见 https://mta.qq.com/h5/manage/ctr_app_manage + woyaola: # 51.la站点统计ID,参见 https://www.51.la/user/site/index + cnzz: # 友盟/cnzz站点统计web_id,参见 https://web.umeng.com/main.php?c=site&a=show + +lazyload: # 对页面中的图片进行懒加载处理,可见范围外的图片不会加载 + enable: true + onlypost: false # 仅在文章页使用懒加载 + +smooth_scroll: # 平滑滚动效果 + enable: true + +daovoice: # 在线客服 Daovoice 参考:http://dashboard.daovoice.io + enable: false # 是否开启在线客服聊天 + appid: '' # 应用ID设置 + +#--------------------------- +# 页头 +# Header +#--------------------------- +navbar: + blog_title: # 导航栏左侧的标题,为空则按 hexo config.title 显示 + menu: # 可自行增减,若想减去某个入口,可以将值留空,显示文本关联 languages + home: / + archive: /archives/ + category: /categories/ + tag: /tags/ + about: /about/ + links: /links/ # 友链页,把前面#去掉即可展示 + +search: # 搜索栏 + enable: true + path: /local-search.xml # 文件引用地址,默认是下方生成位置,也可以将生成后的 local-search.xml 上传到其它位置引用,如:https://www.example.com/local-search.xml + generate_path: /local-search.xml # 文件生成位置,必须为相对位置 + field: post + content: true + +scroll_down_arrow: # 向下滚动的箭头 + enable: true + banner_height_limit: 90 # 头图高度不小于指定比例,才显示箭头 + scroll_after_turning_page: true # 翻页后自动滚动 + +banner_scroll: false # 头图是否跟随页面滚动 + + +#--------------------------- +# 页脚 +# Footer +#--------------------------- +footer: + statistics: # 统计网站 PV、UV,使用的是不蒜子,显示在页脚 + enable: false + pv_format: "总访问量 {} 次" # 显示的文本,{}是数字的占位符(必须包含),下同 + uv_format: "总访客数 {} 人" + + beian: # The footer of China's website policy, other areas keep disable + enable: false + icp_text: 京ICP证123456号 # ICP证号 + police_text: 京公网安备12345678号 # 公安备案号,不填则只显示ICP + police_code: 12345678 # 公安备案的编号,用于URL跳转查询 + police_icon: /img/police_beian.png # 公安备案的图片. 为空时不显示备案图片 + +scroll_top_arrow: # 向顶部滚动的箭头 + enable: true + + +#--------------------------- +# 首页 +# Index Page +#--------------------------- +index: + banner_img: /defect/images/img/index.png # 首页 Banner 头图,以下相同 + banner_img_height: 100 # 头图高度,屏幕百分比,available: 0 - 100 + slogan: # 首页副标题的独立设置 + enable: true # 为 false 则不显示任何内容 + text: # 为空则按 hexo config.subtitle 显示 + auto_excerpt: + enable: true + post_url_target: _self # available: _blank | _self + post_meta: # 是否显示文章信息(时间、分类、标签) + date: true + category: true + tag: true + + +#--------------------------- +# 文章页 +# Post Page +#--------------------------- +post: + banner_img: /defect/images/img/post.jpg + banner_img_height: 75 # available: 0 - 100 + meta: # 文章标题下方的信息 + date: # 文章日期 + enable: true + format: "dddd, MMMM Do YYYY, h:mm a" # 格式参照 ISO-8601 日期格式化 + wordcount: # 字数统计 + enable: true + format: "{} 字" # 显示的文本,{}是数字的占位符(必须包含),下同 + min2read: # 阅读时间 + enable: true + format: "{} 分钟" + views: # 阅读次数,统计基于不蒜子 + enable: false + format: "{} 次" + toc: # 右侧导航条 + enable: true + copyright: # 版权声明 + enable: true + content: 'CC BY-SA 3.0❤ ' + custom: # 文章底部自定义内容 + enable: false + content: '' # 自定义区域,支持 HTML,可自行插入赞赏码、公众号二维码等内容 + comments: # 评论 + enable: true # 开启评论 + type: disqus # 指定使用的评论模块 available: disqus | valine | gitalk | utterances | changyan | livere + image_zoom: # 文章图片可点击放大 + enable: true + math: # 数学公式,开启之前需要更换 Markdown 渲染器,否则复杂公式会有兼容问题,具体请见 https://fluid-dev.github.io/hexo-fluid-docs/guide/#数学公式 + enable: true + specific: true # 开启后,只有在文章 Front-matter 里指定 `math: true` 才会在文章页启动公式转换,以便在页面不包含公式时提高加载速度 + engine: mathjax # 公式引擎 available: mathjax | katex + +#--------------------------- +# 评论 +# Comments +#--------------------------- + +# 开启评论在上方的 post.comments 配置 + +# utterances +# You can install utterances with https://utteranc.es/ and generate your configuration +utterances: + repo: + issue_term: + label: utterances + theme: github-light + crossorigin: anonymous + +# Disqus +disqus: + shortname: defectink + +# Gitalk +# You can get yout ClientID and ClientSecret from https://github.com/settings/applications/new +# More info available at https://github.com/gitalk/gitalk#options +gitalk: + clientID: # GitHub Application Client ID + clientSecret: # GitHub Application Client Secret + repo: # The repo to store comments + owner: # GitHub repository owner. Can be personal user or organization. + admin: # GitHub repo owner and collaborators, only these guys can initialize github issues, should be like "['admin']" or "['admin1','admin2']" + id: location.pathname # The unique id of the page. Length must less than 50. + language: zh-CN # Localization language key, en, zh-CN and zh-TW are currently available. + labels: "['Gitalk']" # GitHub issue labels. + perPage: 15 # Pagination size, with maximum 100. + pagerDirection: last # Comment sorting direction, available values are last and first. + distractionFreeMode: false # Facebook-like distraction free mode. + createIssueManually: true # By default, Gitalk will create a corresponding github issue for your every single page automatically when the logined user is belong to the admin users. You can create it manually by setting this option to true. + +# Valine +# You can get your appid and appkey from https://leancloud.cn +# More info available at https://valine.js.org +valine: + appid: # your leancloud application appid + appkey: # your leancloud application appkey + notify: false # mail notifier, See: https://github.com/xCss/Valine/wiki + verify: false # Verification code + placeholder: 说点什么 # comment box placeholder + avatar: retro # gravatar style https://valine.js.org/avatar.html + pageSize: 10 # pagination size + +# Changyan +# You can get your appid from http://changyan.kuaizhan.com/setting/common/isv-mgr +# Install: http://changyan.kuaizhan.com/static/help/f-fitself.html +changyan: + appid: '' # your changyan application appid # 畅言ID + conf: '' # conf # 畅言设置 + notify: false # beian warning message # 备案提示 + libopen: true # open laboratory # 畅言实验室功能开关 + cyEmoji: true # comments emoji # 评论表情 + cyWallsplugin: true # Hot text matching # 热文配图 + cyReping: true # hot comments # 热门评论 + cyReward: true # reward # 打赏 + cyQing: true # Light comment # 轻评论 + cyHotusers: true # User evaluation # 热评用户 + cyHotnews: true # Hot news # 热门新闻 + cyHotnewswall: true # News wall # 新闻墙 + cyPk: '' # Topic debate # 辩论 + cyPoll: true # vote # 投票 + cyBarrage: true # Picture barrage # 图片弹幕 + cyTvbarrage: true # Video barrage # 视频弹幕 + +# Livere 来必力 +# You can get your uid from https://www.livere.com/my_Livere +livere: + uid: '' # your livere application uid # 来必力ID + + +#--------------------------- +# 归档页 +# Archive Page +#--------------------------- +archive: + banner_img: /defect/images/img/Sensei_sakura.png + banner_img_height: 100 # available: 0 - 100 + + +#--------------------------- +# 分类归档页 +# Categories Page +#--------------------------- +category: + banner_img: /defect/images/img/category.png + banner_img_height: 80 # available: 0 - 100 + + +#--------------------------- +# 标签归档页 +# Tags Page +#--------------------------- +tag: + banner_img: /defect/images/img/tags.png + banner_img_height: 80 # available: 0 - 100 + tagcloud: # 标签云 + min_font: 15 + max_font: 30 + unit: px # 字号单位 + start_color: "#BBBBEE" + end_color: "#337ab7" + + +#--------------------------- +# 关于页 +# About Page +#--------------------------- +about: # 以下仅为页面顶部的基本信息,更多内容请在 ./pages/about.md 中编辑,支持 markdown 和 HTML + md_path: ../../source/about/about.md # 关于页文档的相对路径,可以按相对文档设置主题之外的路径,从而避免更新冲突 + banner_img: /defect/images/img/about.jpg + banner_img_height: 100 # available: 0 - 100 + avatar: /defect/images/img/avatar.png # 头像 + name: Defectink + introduce: '!@#$%^&*' # 支持 HTML + icons: # 更多图标可从 https://fontawesome.com/v5.10.0/icons?d=gallery 查找,并以 "图标名: url" 的格式添加在下方 + "fab fa-github": https://github.com/DefectingCat + "fab fa-twitter": https://twitter.com/Defect___ + "fab fa-weixin": # 微信图标,这个是特殊图标,点击不会跳转而是悬浮二维码,所以链接需要对应二维码图片地址 + + +#--------------------------- +# 404页 +# 404 Page +#--------------------------- +page404: + banner_img: /defect/images/img/Sensei_dark.png + banner_img_height: 100 # available: 0 - 100 + subtitle: 'Page not found o(* ̄▽ ̄*)ブ' + + +#--------------------------- +# 友链页 +# Links Page +#--------------------------- +links: + banner_img: /defect/images/img/friend.jpg + banner_img_height: 100 # available: 0 - 100 + items: + Fluid Docs: [https://fluid-dev.github.io/hexo-fluid-docs/, 主题使用指南] + Fluid Repo: [https://github.com/fluid-dev/hexo-theme-fluid, 主题 GitHub 仓库] + Fluid Changelog: [https://github.com/fluid-dev/hexo-theme-fluid/blob/master/Changelog.md, 主题更新日志] diff --git a/source/_data/fluid_static_prefix.yml b/source/_data/fluid_static_prefix.yml new file mode 100644 index 0000000..34a5b79 --- /dev/null +++ b/source/_data/fluid_static_prefix.yml @@ -0,0 +1,66 @@ +#--------------------------- +# Fluid +# Author: Fluid-dev organization +# Github: https://github.com/fluid-dev/hexo-theme-fluid +#--------------------------- + +#--------------------------- +# 这里是配置 JS CSS 静态资源的 URL 前缀,可以自定义成 CDN 地址, +# 请注意,您最好使用与内部版本相同的版本,以避免潜在的问题, +# 在站点上启用 https 时,请使用 CDN 地址的 https 协议, +# 同样,这里的配置也支持覆盖功能 +# ** 如果你不知道如何设置,请不要做任何改动 ** +# +# Here is the url prefix to configure JS and CSS static assets. Set CDN addresses you want to customize. +# Be aware that you would better use the same version as internal ones to avoid potential problems. +# Please use the https protocol of CDN files when you enable https on your site. +# the configuration here supports overwrite +# DO NOT EDIT THE FOLLOWING SETTINGS UNLESS YOU KNOW WHAT YOU ARE DOING +#--------------------------- + +#--------------------------- +# 内部静态 +# Internal static +#--------------------------- + +internal_js: /js +internal_css: /css +internal_img: /defect/images/img + + +#--------------------------- +# 第三方库 +# Third-party library +#--------------------------- + +anchor: /lib/anchor + +font_awesome: /lib/font-awesome + +github_markdown: /lib/github-markdown + +jquery: /lib/jquery + +bootstrap: /lib/bootstrap + +mdbootstrap: /lib/mdbootstrap + +# umd +popper: /lib/popper + +prettify: /lib/prettify +# 高亮主题的路径,只支持 min.css,文件名需要与 _config.highlight.theme 对应 +# the path of highlight theme, only support `min.css` file,filename need to be the same as _config.highlight.theme +prettify_theme: /lib/prettify + +tocbot: /lib/tocbot + +typed: /lib/typed + +fancybox: /lib/fancybox + +smooth_scroll: /lib/smoothscroll + +mathjax: https://cdn.staticfile.org/mathjax/2.7.6/ + +katex: /lib/katex diff --git a/source/_data/zh-Hans.yml b/source/_data/zh-Hans.yml new file mode 100644 index 0000000..ad880d1 --- /dev/null +++ b/source/_data/zh-Hans.yml @@ -0,0 +1,42 @@ +search: + title: 搜索 + keyword: 关键词 + status: + success: v + error: x + +postTotal: 共计 %d 篇文章 + +paginator: + pre: 上一页 + next: 下一页 + +post: + toc: 目录 + +home: + title: 首页 + +archive: + title: 归档 + subtitle: 归档 + +tag: + title: 标签 + subtitle: 标签 + +category: + title: 分类 + subtitle: 分类 + +about: + title: 关于 + subtitle: 关于 + +page404: + title: 页面走丢啦~ + subtitle: 页面走丢啦~ + +links: + title: 友链 + subtitle: 友情链接