mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-10 21:17:07 +08:00
Compare commits
35 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eae694806c | ||
|
|
90726f1a59 | ||
|
|
ae73a2114f | ||
|
|
20dcc61e0d | ||
|
|
f36450dbc0 | ||
|
|
2fc895102d | ||
|
|
e26637c5a8 | ||
|
|
082df56112 | ||
|
|
27adaecf51 | ||
|
|
a33e7e1d89 | ||
|
|
da4a8d77d7 | ||
|
|
8cb366bdda | ||
|
|
7f8e431226 | ||
|
|
b32ff6920b | ||
|
|
25f128fb3d | ||
|
|
9e14fca4a7 | ||
|
|
336e221de5 | ||
|
|
32d1cd3f53 | ||
|
|
1e06a6ca5e | ||
|
|
6c26f20427 | ||
|
|
dc65869042 | ||
|
|
2b90e15596 | ||
|
|
2eb15123f9 | ||
|
|
eecfaaf124 | ||
|
|
05766e396f | ||
|
|
94c51b5d04 | ||
|
|
f6d70e5863 | ||
|
|
3d09a9331b | ||
|
|
83dc0559c0 | ||
|
|
91bb944931 | ||
|
|
bade41acd7 | ||
|
|
da8ffda39b | ||
|
|
51288ec8b6 | ||
|
|
3bf033c9e4 | ||
|
|
bb8e98c68a |
45
.github/ISSUE_TEMPLATE.md
vendored
Normal file
45
.github/ISSUE_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
<!--
|
||||
IMPORTANT: Please follow the template to create a new issue.
|
||||
重要:請依照該模板來提交。
|
||||
-->
|
||||
|
||||
## I want to create a new issue <!-- 我想要建立一個新的issue -->
|
||||
|
||||
<!-- Check all with "x" especially FAQ & Documentation!! (使用 "x" 選擇) -->
|
||||
<!-- 請確認是否都已經翻閱過如下的資料, 尤其是安裝文檔!! -->
|
||||
- [] Yes, I have read [Hexo Docs page](https://hexo.io/docs/), especially [Templates](https://hexo.io/docs/templates.html), [Variables](https://hexo.io/docs/variables.html), [Helpers](https://hexo.io/docs/helpers.html) and [Troubleshooting](https://hexo.io/docs/troubleshooting.html).
|
||||
- [] Yes, I have read [Hexo-theme-butterfly Documentation](https://jerryc.me/posts/21cfbf15/).
|
||||
- [] And yes, I already searched for current [issues](https://github.com/jerryc127/hexo-theme-butterfly/issues?utf8=%E2%9C%93&q=is%3Aissue) and this did not help me.
|
||||
|
||||
## Butterfly Information
|
||||
|
||||
<!-- Butterfly的版本 -->
|
||||
<!-- 檢視主題的package.json -->
|
||||
**Butterfly Version:**
|
||||
|
||||
<!-- Windows/macOS/Linux/Android/iOS -->
|
||||
**Platform:**
|
||||
|
||||
<!-- Chrome/Safari/FireFox/.. -->
|
||||
**Browser:**
|
||||
|
||||
## Expected behavior <!-- (預期行為) -->
|
||||
|
||||
## Actual behavior <!-- (實際行為) -->
|
||||
|
||||
<!-- Please give me the screenshots to locate the issue -->
|
||||
<!-- 請儘量提供截圖來定位問題 -->
|
||||
|
||||
## Steps to reproduce the behavior <!-- (重現步驟) -->
|
||||
|
||||
## Feature Request
|
||||
|
||||
<!-- If you have any ideas of theme-butterfly, please write down here and we can have a discussion. -->
|
||||
<!-- 如果你有任何關於Butterfly的功能方面的想法,可以在這個部分裡寫下來我們一起討論 -->
|
||||
|
||||
---
|
||||
|
||||
<!--
|
||||
Love hexo-theme-butterfly? Please consider starring the repo to support it!
|
||||
喜歡 hexo-theme-butterfly嗎? 考慮一下給它點個star來支援它吧!
|
||||
-->
|
||||
43
README.md
43
README.md
@@ -1,37 +1,50 @@
|
||||
# hexo-theme-butterfly
|
||||
|
||||
[预览](https://jerryc.me/)
|
||||
<a href="https://github.com/jerryc127/hexo-theme-butterfly/releases"><img alt="Version" src="https://img.shields.io/badge/release-2.1.0-blue"/></a>
|
||||
<a href="https://jerryc.me"><img alt="Author" src="https://img.shields.io/badge/author-JerryC-blur"/></a>
|
||||
<a href="https://hexo.io"><img alt="Hexo" src="https://img.shields.io/badge/hexo-3.0+-0e83c"/></a>
|
||||
<a href="https://nodejs.org/"><img alt="node.js" src="https://img.shields.io/badge/node.js-6.0-blur"/></a>
|
||||
|
||||
一款基于[hexo-theme-melody](https://github.com/Molunerfinn/hexo-theme-melody)修改的主题
|
||||
Demo: https://demo.jerryc.me/
|
||||
|
||||
## 安装
|
||||
JerryC: https://jerryc.me/
|
||||
|
||||
在你的博客根目录里
|
||||
|
||||
|
||||
Based on [hexo-theme-melody](https://github.com/Molunerfinn/hexo-theme-melody) theme.
|
||||
|
||||
## Installation
|
||||
|
||||
Stable branch:
|
||||
|
||||
```
|
||||
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/Butterfly
|
||||
```
|
||||
|
||||
如果想要安裝比較新的dev分支,可以
|
||||
Dev branch:
|
||||
|
||||
```
|
||||
git clone -b dev https://github.com/jerryc127/hexo-theme-butterfly.git themes/Butterfly
|
||||
```
|
||||
|
||||
## 应用主题
|
||||
修改hexo配置文件`_config.yml`,把主题改为`Butterfly`
|
||||
## Configuration
|
||||
|
||||
```
|
||||
theme: Butterfly
|
||||
```
|
||||
Set theme in the hexo work folder's root config file `_config.yml`:
|
||||
|
||||
>如果你没有pug以及stylus的渲染器,请下载安装: npm install hexo-renderer-jade hexo-renderer-stylus --save or yarn add hexo-renderer-jade hexo-renderer-stylus
|
||||
> theme: Butterfly
|
||||
|
||||
## 文档
|
||||
If you don't have pug & stylus renderer, try this:
|
||||
|
||||
可查看或[这里](https://docs.jerryc.me/)或[这里](https://jerryc.me/posts/21cfbf15)
|
||||
> npm install hexo-renderer-pug hexo-renderer-stylus
|
||||
|
||||
## Documentation
|
||||
|
||||
Documentation is [here](https://jerryc.me/posts/21cfbf15). it supports `zh-TW`
|
||||
|
||||
## Screenshots
|
||||
|
||||
## 截图
|
||||

|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
46
README_CN.md
Normal file
46
README_CN.md
Normal file
@@ -0,0 +1,46 @@
|
||||
# hexo-theme-butterfly
|
||||
|
||||
<a href="https://github.com/jerryc127/hexo-theme-butterfly/releases"><img alt="Version" src="https://img.shields.io/badge/release-2.1.0-blue"/></a>
|
||||
<a href="https://jerryc.me"><img alt="Author" src="https://img.shields.io/badge/author-JerryC-blur"/></a>
|
||||
<a href="https://hexo.io"><img alt="Hexo" src="https://img.shields.io/badge/hexo-3.0+-0e83c"/></a>
|
||||
<a href="https://nodejs.org/"><img alt="node.js" src="https://img.shields.io/badge/node.js-6.0-blur"/></a>
|
||||
|
||||
Demo: https://demo.jerryc.me/
|
||||
|
||||
JerryC: https://jerryc.me/
|
||||
|
||||
|
||||
一款基於[hexo-theme-melody](https://github.com/Molunerfinn/hexo-theme-melody)修改的主題
|
||||
|
||||
## 安裝
|
||||
|
||||
在你的博客根目錄裏
|
||||
|
||||
```
|
||||
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/Butterfly
|
||||
```
|
||||
|
||||
如果想要安裝比較新的dev分支,可以
|
||||
|
||||
```
|
||||
git clone -b dev https://github.com/jerryc127/hexo-theme-butterfly.git themes/Butterfly
|
||||
```
|
||||
|
||||
## 應用主題
|
||||
修改hexo配置文件`_config.yml`,把主題改為`Butterfly`
|
||||
|
||||
```
|
||||
theme: Butterfly
|
||||
```
|
||||
|
||||
>如果你沒有pug以及stylus的渲染器,請下載安裝: npm install hexo-renderer-pug hexo-renderer-stylus --save or yarn add hexo-renderer-pug hexo-renderer-stylus
|
||||
|
||||
## 文檔
|
||||
|
||||
可查看[這裏](https://jerryc.me/posts/21cfbf15)
|
||||
|
||||
## 截圖
|
||||

|
||||

|
||||
|
||||

|
||||
548
_config.yml
548
_config.yml
@@ -1,28 +1,19 @@
|
||||
# Theme color for customize
|
||||
# Notice: color value must in double quotes like "#000" or may cause error!
|
||||
# ---------------
|
||||
# theme_color:
|
||||
# enable: true
|
||||
# main: "#7A7FF1"
|
||||
# paginator: "#7A7FF1"
|
||||
# button_hover: "#FF7242"
|
||||
# text_selection: "#69c46d"
|
||||
# link_color: "#858585"
|
||||
# hr_color: "#A4D8FA"
|
||||
# read-mode-bg_color: '#FAF9DE'
|
||||
|
||||
# Main menu navigation
|
||||
# format: xxx: /xxx/||icon
|
||||
# ---------------
|
||||
# format: xxx: 連結 || icon
|
||||
# sub-menu
|
||||
# xxx || icon:
|
||||
# xxx || 連結 || icon
|
||||
menu:
|
||||
Home: /||fa fa-home
|
||||
Archives: /archives/||fa fa-archive
|
||||
Tags: /tags/||fa fa-tags
|
||||
Categories: /categories/||fa fa-folder-open
|
||||
Link: /link/||fa fa-link
|
||||
About: /about/||fa fa-heart
|
||||
# #XXX: /xxx
|
||||
|
||||
Home: / || fa fa-home
|
||||
Archives: /archives/ || fa fa-archive
|
||||
Tags: /tags/ || fa fa-tags
|
||||
Categories: /categories/ || fa fa-folder-open
|
||||
Link: /link/ || fa fa-link
|
||||
About: /about/ || fa fa-heart
|
||||
List||fa fa-list:
|
||||
- Music || /music/ || fa fa-music
|
||||
- Movie || /movies/ || fa fa-film
|
||||
|
||||
# Favicon
|
||||
# ---------------
|
||||
@@ -39,24 +30,33 @@ favicon: /img/favicon.ico
|
||||
# favicon_32_32: /img/pwa/32.png
|
||||
# favicon_16_16: /img/pwa/16.png
|
||||
# mask_icon: /img/pwa/safari-pinned-tab.svg
|
||||
# shortcut_icon: /img/favicon.ico
|
||||
|
||||
|
||||
# Highlight theme
|
||||
# ---------------
|
||||
highlight_theme: light
|
||||
highlight_copy: true
|
||||
highlight_theme: light # default / darker / pale night / light / ocean
|
||||
highlight_copy: true #代碼複製按鈕
|
||||
highlight_lang: true #代碼語言顯示
|
||||
highlight_shrink: false # true 全部代碼框不展開,需點擊 '>' 打開 / false 代碼框展開,有'>'點擊按鈕 | none 代碼框展開,不顯示 '>' 按鈕
|
||||
|
||||
code_word_wrap: false
|
||||
|
||||
# Nav settings
|
||||
# formal:
|
||||
# copy setting
|
||||
# 是否禁止複製(如果禁止,highlight_copy的功能將無效)
|
||||
# copyright 複製的内容後面加上版權信息
|
||||
copy:
|
||||
enable: true # true 開啓 / false 禁止
|
||||
copyright: false
|
||||
|
||||
# social settings
|
||||
# formal:
|
||||
# icon: link
|
||||
# ---------------
|
||||
social:
|
||||
fa fa-github: https://github.com/jerryc127
|
||||
fa fa-envelope: mailto:xxxxxxxx@gmail.com
|
||||
fa fa-rss: /atom.xml
|
||||
|
||||
#### search ####
|
||||
# Algolia search
|
||||
# ---------------
|
||||
algolia_search:
|
||||
@@ -69,7 +69,6 @@ algolia_search:
|
||||
hits_empty: "We didn't find any results for the search: ${query}" # if there are no result
|
||||
hits_stats: "${hits} results found in ${time} ms"
|
||||
|
||||
|
||||
# Local search
|
||||
# Please see doc for more details: https://jerryc.me/posts/21cfbf15/#本地搜索
|
||||
# ---------------
|
||||
@@ -84,73 +83,49 @@ local_search:
|
||||
# ---------------
|
||||
mathjax:
|
||||
enable: false
|
||||
cdn: https://cdn.jsdelivr.net/npm/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML
|
||||
# true 表示每一頁都加載mathjax.js
|
||||
# false 需要時加載,須在使用的Markdown Front-matter 加上 mathjax: true
|
||||
per_page: false
|
||||
|
||||
# KaTeX
|
||||
# ---------------
|
||||
katex:
|
||||
enable: false
|
||||
cdn:
|
||||
css: https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css
|
||||
# true 表示每一頁都加載katex.js
|
||||
# false 需要時加載,須在使用的Markdown Front-matter 加上 katex: true
|
||||
per_page: false
|
||||
hide_scrollbar: true
|
||||
|
||||
|
||||
|
||||
# Analysis
|
||||
# ---------------
|
||||
# baidu_analytics:
|
||||
|
||||
#Google Analytics
|
||||
google_analytics:
|
||||
|
||||
|
||||
# stylesheets loaded in the <head>
|
||||
# ---------------
|
||||
stylesheets:
|
||||
- /css/index.css
|
||||
|
||||
# scripts loaded in the end of the body
|
||||
# ---------------
|
||||
scripts:
|
||||
- /js/utils.js
|
||||
- /js/main.js
|
||||
|
||||
# cdn for third-party library
|
||||
# ---------------
|
||||
cdn:
|
||||
css:
|
||||
fontawesome: https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css
|
||||
# fontawesomeV5: https://use.fontawesome.com/releases/v5.8.1/css/all.css
|
||||
fancybox: https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css
|
||||
js:
|
||||
jquery: https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js
|
||||
fancybox: https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js
|
||||
js-cookies: https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js
|
||||
|
||||
# Post info settings
|
||||
# ---------------
|
||||
# avatar: /img/avatar.png
|
||||
avatar: https://cdn.jsdelivr.net/gh/jerryc127/CDN@latest/Photo/avatar.png
|
||||
avatar: /img/avatar.png
|
||||
|
||||
# the banner image of index
|
||||
# if the banner of another page not setting,it will show the top_img
|
||||
top_img: https://i.loli.net/2019/05/22/5ce53eb6dc82757840.jpg
|
||||
index_img: https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@2.1.0/top_img/index.jpg
|
||||
|
||||
#the banner image of post
|
||||
# if the post not set the post cover and post top image, it will show it
|
||||
post_img: https://cdn.jsdelivr.net/gh/jerryc127/CDN@latest/Photo/post.png
|
||||
# if the banner of page not setting,it will show the top_img
|
||||
default_top_img: https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@2.1.0/top_img/index.jpg
|
||||
|
||||
# the default cover of the post
|
||||
default_cover: https://cdn.jsdelivr.net/gh/jerryc127/CDN@latest/cover/default_bg.png
|
||||
default_cover: https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@2.1.0/top_img/default.png
|
||||
|
||||
# the banner image of archive page
|
||||
archive_img: https://cdn.jsdelivr.net/gh/jerryc127/CDN@latest/Photo/archive.jpg
|
||||
archive_img: https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@2.1.0/top_img/archive.jpg
|
||||
|
||||
# the banner image of tag page
|
||||
tag_img: https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@2.1.0/top_img/tag.png
|
||||
|
||||
# the banner image of category page
|
||||
category_img: https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@2.1.0/top_img/category.jpg
|
||||
|
||||
# 如果你有使用hexo-douban去生成movie界面,可配置這個
|
||||
movies_img: https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@2.1.0/top_img/movie.jpg
|
||||
|
||||
# if the photo link cannot connect,it will show that
|
||||
lodding_bg:
|
||||
flink: /img/friend_404.gif
|
||||
post_page: /img/404.jpg
|
||||
|
||||
flink: /img/friend_404.gif #404后圖片
|
||||
post_page: /img/404.jpg #404后圖片
|
||||
# post: /img/loading.gif ##加載動畫
|
||||
|
||||
post_meta:
|
||||
date_type: both # or created or updated 文章日期是创建日或者更新日或都显示
|
||||
@@ -174,13 +149,13 @@ post_copyright:
|
||||
license: CC BY-NC-SA 4.0
|
||||
license_url: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
||||
|
||||
# 自動節選
|
||||
auto_excerpt:
|
||||
enable: true
|
||||
length: 150
|
||||
|
||||
|
||||
# Share System
|
||||
# ---------------
|
||||
#### Share System ####
|
||||
# -----------------------------------------
|
||||
addThis:
|
||||
enable: false
|
||||
pubid:
|
||||
@@ -201,50 +176,45 @@ addtoany:
|
||||
- email
|
||||
- copy_link
|
||||
|
||||
# Comments System
|
||||
# ---------------
|
||||
#### Comments System ####
|
||||
# ------------------------------------
|
||||
disqus:
|
||||
enable: false
|
||||
shortname:
|
||||
|
||||
# laibili:
|
||||
# enable: false
|
||||
# uid:
|
||||
shortname:
|
||||
count: false # top_img顯示評論數
|
||||
|
||||
# gitment
|
||||
# enable: false
|
||||
# owner:
|
||||
# repo:
|
||||
# client_id:
|
||||
# client_secret:
|
||||
laibili:
|
||||
enable: false
|
||||
uid:
|
||||
|
||||
# gitalk:
|
||||
# enable: false
|
||||
# client_id:
|
||||
# client_secret:
|
||||
# repo:
|
||||
# owner:
|
||||
# admin:
|
||||
#### Using this js for redirect to gitalk container after login
|
||||
#### See https://github.com/gitalk/gitalk/issues/125
|
||||
# js: https://cdn.jsdelivr.net/gh/upupming/gitalk@36368e5dffd049e956cdbbd751ff96c28d8255cf/dist/gitalk.min.js
|
||||
gitalk:
|
||||
enable: false
|
||||
client_id:
|
||||
client_secret:
|
||||
repo:
|
||||
owner:
|
||||
admin:
|
||||
language: # en , zh-CN , zh-TW
|
||||
count: false # top_img顯示評論數
|
||||
|
||||
# valine comment system. https://valine.js.org
|
||||
valine:
|
||||
enable: false # if you want use valine,please set this value is true
|
||||
appId: # leancloud application app id
|
||||
appKey: # leancloud application app key
|
||||
appId: # leancloud application app id
|
||||
appKey: # leancloud application app key
|
||||
notify: false # valine mail notify (true/false) https://github.com/xCss/Valine/wiki
|
||||
verify: false # valine verify code (true/false)
|
||||
pageSize: 10 # comment list page size
|
||||
avatar: monsterid # gravatar style https://valine.js.org/#/avatar
|
||||
lang: en # i18n: zh-cn/en
|
||||
placeholder: Please leave your footprints # valine comment input placeholder(like: Please leave your footprints )
|
||||
guest_info: nick,mail,link #valine comment header inf
|
||||
guest_info: nick,mail,link #valine comment header info
|
||||
bg: /img/comment_bg.png # valine background
|
||||
count: false # top_img顯示評論數
|
||||
|
||||
# Footer Settings
|
||||
# ---------------
|
||||
since: 2018
|
||||
##### Footer Settings ####
|
||||
# ------------------------------------
|
||||
since: 2019
|
||||
|
||||
footer_custom_text:
|
||||
|
||||
@@ -253,18 +223,30 @@ footer_copyright:
|
||||
|
||||
ICP:
|
||||
enable: false
|
||||
url:
|
||||
url:
|
||||
text:
|
||||
icon: /img/icp.png
|
||||
|
||||
# busuanzi count for PV / UV in site
|
||||
busuanzi:
|
||||
site_uv: true
|
||||
site_pv: true
|
||||
page_pv: true
|
||||
#### Analysis ####
|
||||
# ---------------
|
||||
baidu_analytics:
|
||||
|
||||
# Google Analytics
|
||||
google_analytics:
|
||||
|
||||
# Tencent_analytics ID
|
||||
tencent_analytics:
|
||||
|
||||
# Ads
|
||||
# ---------------
|
||||
# Google Adsense
|
||||
google_adsense:
|
||||
enable: false
|
||||
js: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
|
||||
client:
|
||||
enable_page_level_ads: true
|
||||
|
||||
#### 站長驗證 ####
|
||||
# Google Webmaster tools verification setting
|
||||
# See: https://www.google.com/webmasters/
|
||||
google_site_verification:
|
||||
@@ -281,6 +263,7 @@ baidu_site_verification:
|
||||
# see http://zhanzhang.so.com/
|
||||
qihu_site_verification:
|
||||
|
||||
# 友情鏈接界面設置
|
||||
Flink:
|
||||
headline: 友情鏈接
|
||||
info_headline: 我的Blog資料
|
||||
@@ -290,25 +273,7 @@ Flink:
|
||||
info: Blog 簡介: 今日事,今日畢
|
||||
comment: 如果需要交換友鏈,請留言
|
||||
|
||||
|
||||
|
||||
runtimeshow:
|
||||
enable: true
|
||||
start_date: 6/7/2018 00:00:00
|
||||
|
||||
|
||||
nightshift:
|
||||
enable: true
|
||||
|
||||
|
||||
activate_power_mode:
|
||||
enable: false
|
||||
|
||||
|
||||
|
||||
announcement:
|
||||
content: 感謝訪問本站,若喜歡請收藏 ^_^
|
||||
|
||||
# 打賞按鈕
|
||||
reward:
|
||||
enable: true
|
||||
QR_code:
|
||||
@@ -319,64 +284,172 @@ reward:
|
||||
img: /img/alipay.jpg
|
||||
text: 支付寶
|
||||
|
||||
# 推薦文章
|
||||
related_post:
|
||||
enable: true
|
||||
limit: 6 # 顯示推薦文章數目
|
||||
date_type: created # or created or updated 文章日期顯示创建日或者更新日
|
||||
|
||||
# canvas_ribbon
|
||||
#### 美化/效果 ####
|
||||
#--------------------------------
|
||||
|
||||
# Theme color for customize
|
||||
# Notice: color value must in double quotes like "#000" or may cause error!
|
||||
# ---------------
|
||||
# theme_color:
|
||||
# enable: true
|
||||
# main: "#49B1F5"
|
||||
# paginator: "#00c4b6"
|
||||
# button_hover: "#FF7242"
|
||||
# text_selection: "#00c4b6"
|
||||
# link_color: "#99a9bf"
|
||||
# meta_color: '#858585'
|
||||
# hr_color: "#A4D8FA"
|
||||
# read-mode-bg_color: '#FAF9DE'
|
||||
# inline-code-color: '#F47466'
|
||||
|
||||
# 主頁設置
|
||||
# 默認top_img全屏,site_info在中間
|
||||
# 使用默認, 都無需填寫(建議默認)
|
||||
index_top_img_height: #主頁top_img高度 例如 300px/300em/300rem 不能使用百分比
|
||||
|
||||
# 主頁文章COVER顯示位置
|
||||
# 三個值可配置 left , right , both
|
||||
# left(全部圖片顯示在左邊),right(全部圖片顯示在右邊),both(左右左右順序顯示)
|
||||
index_post_cover: both
|
||||
|
||||
# category和tag頁的UI設置
|
||||
# index 值代表 UI將與首頁的UI一樣
|
||||
# 默認跟archives頁面UI一樣
|
||||
category_ui: # 留空或index
|
||||
tag_ui: # 留空或index
|
||||
|
||||
# 設置網站背景
|
||||
# 可設置圖片 或者 顔色
|
||||
# 圖片格式 background: url(http://xxxxxx.com/xxx.jpg)
|
||||
# 顔色 background: '#49B202'
|
||||
# 留空 顯示白色
|
||||
background:
|
||||
|
||||
# footer是否顯示圖片背景(與top_img一致)
|
||||
footer_bg: false
|
||||
|
||||
# 背景特效
|
||||
# 避免卡頓,建議只開啓一個
|
||||
# canvas_ribbon 禁止彩帶背景
|
||||
# See: https://github.com/hustcc/ribbon.js
|
||||
canvas_ribbon:
|
||||
enable: true
|
||||
enable: false
|
||||
size: 150
|
||||
alpha: 0.6
|
||||
zIndex: -1
|
||||
click_to_change: false
|
||||
mobile: false # false 手機端不顯示 true 手機端顯示
|
||||
|
||||
|
||||
# 動態彩帶
|
||||
canvas_ribbon_piao:
|
||||
enable: false
|
||||
mobile: false # false 手機端不顯示 true 手機端顯示
|
||||
|
||||
# canvas_nest
|
||||
# https://github.com/hustcc/canvas-nest.js
|
||||
canvas_nest:
|
||||
enable: false
|
||||
color: "0,0,255" #color of lines, default: '0,0,0'; RGB values: (R,G,B).(note: use ',' to separate.)
|
||||
opacity: 0.7 # the opacity of line (0~1), default: 0.5.
|
||||
zIndex: -1 # z-index property of the background, default: -1.
|
||||
count: 99 # the number of lines, default: 99.
|
||||
mobile: false # false 手機端不顯示 true 手機端顯示
|
||||
|
||||
# 避免重複網址分散seo
|
||||
canonical: true
|
||||
# 打字效果
|
||||
activate_power_mode:
|
||||
enable: false
|
||||
colorful: true # 冒光特效
|
||||
shake: true # 抖動特效
|
||||
|
||||
# 禁止百度轉碼
|
||||
disable_baidu_transformation: true
|
||||
# 鼠標點擊效果
|
||||
# 避免卡頓,建議只開啓一個
|
||||
# 點擊烟火特效
|
||||
fireworks:
|
||||
enable: false
|
||||
|
||||
twitter_meta: true
|
||||
Open_Graph_meta: true
|
||||
# 點擊出現愛心
|
||||
click_heart:
|
||||
enable: false
|
||||
|
||||
#閲讀模式
|
||||
readmode:
|
||||
enable: true
|
||||
# 點擊出現文字,文字可自行修改
|
||||
ClickShowText:
|
||||
enable: false
|
||||
text:
|
||||
- 富强
|
||||
- 民主
|
||||
- 文明
|
||||
- 和谐
|
||||
- 自由
|
||||
- 平等
|
||||
- 公正
|
||||
- 法治
|
||||
- 爱国
|
||||
- 敬业
|
||||
- 诚信
|
||||
- 友善
|
||||
fontSize: 15px
|
||||
|
||||
#全局字體
|
||||
# 頭像會一直轉圈
|
||||
avatar_effect: false
|
||||
|
||||
# 網站顯示模式
|
||||
# light 默認模式
|
||||
# dark 黑暗模式(不建議)
|
||||
display_mode: light
|
||||
|
||||
# 美化post頁顯示
|
||||
post_beautify:
|
||||
enable: false
|
||||
title-prefix-icon: '\f0c1'
|
||||
title-prefix-icon-color: "#F47466"
|
||||
|
||||
# 全局字體
|
||||
font:
|
||||
enable: false
|
||||
font-family: Lato, Helvetica Neue For Number, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, PingFang SC, Hiragino Sans GB,"Microsoft JhengHei", "MicrMicrosoft YaHei", Helvetica Neue, Helvetica, Arial, sans-serif
|
||||
code-font: consolas, Menlo, "PingFang SC", "Microsoft JhengHei","Microsoft YaHei", monospace, Helvetica Neue For Number
|
||||
font-family: Lato, Helvetica Neue For Number, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, PingFang SC, Hiragino Sans GB, MicrMicrosoft YaHei", Helvetica Neue, Helvetica, Arial, sans-serif
|
||||
code-font: consolas, Menlo, "PingFang SC", "Microsoft YaHei", monospace, Helvetica Neue For Number
|
||||
|
||||
#網站名字字體
|
||||
#左上角網站名字 主頁居中網站名字
|
||||
# 網站名字字體
|
||||
# 左上角網站名字 主頁居中網站名字
|
||||
blog_title_font:
|
||||
#字體鏈接
|
||||
font_link: https://fonts.googleapis.com/css?family=Titillium+Web
|
||||
font-family: Titillium Web, PingFang SC, Hiragino Sans GB, "Microsoft JhengHei", "Microsoft YaHei", Helvetica Neue, Helvetica, Arial, sans-serif
|
||||
font_link: https://fonts.googleapis.com/css?family=Titillium+Web #字體鏈接
|
||||
font-family: Titillium Web, PingFang SC, Hiragino Sans GB, "Microsoft YaHei", Helvetica Neue, Helvetica, Arial, sans-serif
|
||||
|
||||
#水平分隔綫
|
||||
# 水平分隔綫
|
||||
hr:
|
||||
enable: false
|
||||
#fontawesome上圖標的Unicode
|
||||
icon: '\f21c'
|
||||
icon: '\f21c' #fontawesome上圖標的Unicode
|
||||
icon-top: -20px
|
||||
|
||||
# 主頁subtitle
|
||||
subtitle:
|
||||
# 打字效果
|
||||
subtitle:
|
||||
enable: true
|
||||
sub1: 今日事,今日畢
|
||||
sub2: Never put off till tomorrow what you can do today #如果有符號 ' ,記得前面加上 \
|
||||
# source調用第三方服務
|
||||
# source: false 關閉調用
|
||||
# source: 1 調用金山詞霸的每日一句(簡體)
|
||||
# source: 2 調用一言网的一句話(簡體) #https://hitokoto.cn/
|
||||
# source: 3 調用一句网(簡體) http://yijuzhan.com/
|
||||
# source: 4 調用今日詩詞(簡體) https://www.jinrishici.com/
|
||||
# subtitle 會先顯示 source , 再顯示 sub 的内容
|
||||
source: false
|
||||
# (如果有英文逗號' , ',請使用轉義字符 ,)
|
||||
sub:
|
||||
- 今日事,今日畢
|
||||
- Never put off till tomorrow what you can do today
|
||||
|
||||
#側邊欄顯示設置
|
||||
#### 側邊欄 ####
|
||||
#-------------------------------------
|
||||
# 手機頁面( 顯示寬度 < 768px )是否顯示aside内容
|
||||
aside_mobile: true
|
||||
|
||||
# 側邊欄顯示設置
|
||||
aside:
|
||||
position: right # left or right
|
||||
card_author: true
|
||||
@@ -387,8 +460,27 @@ aside:
|
||||
card_archives: true
|
||||
card_webinfo: true
|
||||
|
||||
# 網站公告
|
||||
announcement:
|
||||
content: 感謝訪問本站,若喜歡請收藏 ^_^
|
||||
|
||||
## chinese traditional to Simplified
|
||||
# busuanzi count for PV / UV in site
|
||||
# 訪問人數
|
||||
busuanzi:
|
||||
site_uv: true
|
||||
site_pv: true
|
||||
page_pv: true
|
||||
|
||||
# 網頁開通時間
|
||||
# 格式: 月/日/年 時間
|
||||
# 也可以寫成 年/月/日 時間
|
||||
runtimeshow:
|
||||
enable: true
|
||||
start_date: 6/7/2018 00:00:00
|
||||
|
||||
#### 右下角按鈕 ####
|
||||
#----------------------------------------------
|
||||
# 簡繁轉換
|
||||
translate:
|
||||
enable: true
|
||||
# 默認按鈕顯示文字
|
||||
@@ -404,35 +496,151 @@ translate:
|
||||
#當文字是繁體時,按鈕顯示的文字
|
||||
msgToSimplifiedChinese: "简"
|
||||
|
||||
#閲讀模式
|
||||
readmode:
|
||||
enable: true
|
||||
|
||||
# 鼠標點擊效果
|
||||
fireworks:
|
||||
# 夜間模式
|
||||
darkmode:
|
||||
enable: true
|
||||
|
||||
# 自動切換 dark mode和 light mode
|
||||
# autoChangeMode: 1 跟隨系統而變化,不支持的瀏覽器/系統將按照時間晚上6點到早上6點之間切換為 dark mode
|
||||
# autoChangeMode: 2 只按照時間晚上6點到早上6點之間切換為 dark mode
|
||||
# autoChangeMode: false 取消自動切換
|
||||
autoChangeMode: false
|
||||
|
||||
#### other ####
|
||||
#------------------------------------------------
|
||||
|
||||
# 圖片大圖查看模式
|
||||
# 可選 medium_zoom 或者 fancybox
|
||||
# 只選一個 或者 兩個都不選
|
||||
#--------------------------------------------
|
||||
# medium_zoom https://github.com/francoischalifour/medium-zoom
|
||||
medium_zoom:
|
||||
enable: false
|
||||
|
||||
# fancybox http://fancyapps.com/fancybox/3/
|
||||
fancybox:
|
||||
enable: true
|
||||
|
||||
# Snackbar 彈窗
|
||||
# https://github.com/polonel/SnackBar
|
||||
# position 彈窗位置
|
||||
# 可選 top-left / top-center / top-right / bottom-left / bottom-center / bottom-right
|
||||
snackbar:
|
||||
enable: false
|
||||
position: bottom-left
|
||||
bg_light: "#49b1f5" #light mode時彈窗背景
|
||||
bg_dark: "#2d3035" #dark mode時彈窗背景
|
||||
|
||||
#百度推送
|
||||
baidu_push:
|
||||
enable: false
|
||||
|
||||
#https://instant.page/
|
||||
#prefetch預加載
|
||||
# https://instant.page/
|
||||
# prefetch預加載
|
||||
instantpage:
|
||||
enable: true
|
||||
|
||||
# Note (Bootstrap Callout)
|
||||
# https://muse.theme-next.org/docs/tag-plugins/note
|
||||
note:
|
||||
# Note tag style values:
|
||||
# - simple bs-callout old alert style. Default.
|
||||
# - modern bs-callout new (v2-v3) alert style.
|
||||
# - flat flat callout style with background, like on Mozilla or StackOverflow.
|
||||
# - disabled disable all CSS styles import of note tag.
|
||||
style: simple
|
||||
style: flat
|
||||
icons: true
|
||||
border_radius: 3
|
||||
# Offset lighter of background in % for modern and flat styles (modern: -12 | 12; flat: -18 | 6).
|
||||
# Offset also applied to label tag variables. This option can work with disabled note tag.
|
||||
light_bg_offset: 0
|
||||
|
||||
|
||||
#圖片懶加載
|
||||
# 圖片懶加載
|
||||
# https://github.com/aFarkas/lazysizes
|
||||
lazyload:
|
||||
enable: true
|
||||
script: https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js
|
||||
|
||||
# 避免重複網址分散seo
|
||||
canonical: true
|
||||
|
||||
# 禁止百度轉碼
|
||||
disable_baidu_transformation: true
|
||||
|
||||
# twitter分享自動帶上樣式
|
||||
# https://i.loli.net/2019/09/08/qm3RfvUCKbct1Wz.png
|
||||
twitter_meta: true
|
||||
|
||||
# facebook QQ 等 分享自動帶上樣式
|
||||
# https://i.loli.net/2019/09/08/2wbFJEKloisRvhj.png
|
||||
Open_Graph_meta: true
|
||||
|
||||
# CDN
|
||||
# 網站必須
|
||||
# 可根據需要自行添加js/css
|
||||
CDN_USE:
|
||||
css:
|
||||
- /css/index.css
|
||||
- https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css
|
||||
# - https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css #fontawesomeV5_css
|
||||
|
||||
js:
|
||||
- https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js #/js/third-party/jquery.min.js
|
||||
- /js/utils.js
|
||||
- /js/main.js
|
||||
|
||||
# CDN
|
||||
# 非必要不要修改
|
||||
CDN:
|
||||
#comments
|
||||
blueimp_md5: https://cdn.jsdelivr.net/npm/blueimp-md5@2.10.0/js/md5.min.js
|
||||
gitalk: https://cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.min.js
|
||||
gitalk_css: https://cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.css
|
||||
valine: https://cdn.jsdelivr.net/npm/valine/dist/Valine.min.js
|
||||
|
||||
# share
|
||||
addtoany: https://static.addtoany.com/menu/page.js
|
||||
sharejs: https://cdn.jsdelivr.net/npm/social-share.js/dist/js/social-share.min.js
|
||||
sharejs_css: https://cdn.jsdelivr.net/npm/social-share.js/dist/css/share.min.css
|
||||
|
||||
#search
|
||||
algolia_search: https://cdn.jsdelivr.net/npm/instantsearch.js@2.10.5/dist/instantsearch.min.js
|
||||
algolia_search_css: https://cdn.jsdelivr.net/npm/instantsearch.js@2.10.5/dist/instantsearch.min.css
|
||||
|
||||
mathjax: https://cdn.jsdelivr.net/npm/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML
|
||||
katex: https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css
|
||||
katex_copytex: https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.js
|
||||
katex_copytex_css: https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.css
|
||||
|
||||
#不蒜子計數器
|
||||
busuanzi: //busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js
|
||||
|
||||
# 背景特效
|
||||
canvas_ribbon: https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@2.1.0/js/canvas-ribbon.js
|
||||
canvas_ribbon_piao: https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@2.1.0/js/piao.js
|
||||
canvas_nest: https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@2.1.0/js/canvas-nest.js
|
||||
|
||||
lazyload: https://cdn.jsdelivr.net/npm/lazysizes@latest/lazysizes.min.js
|
||||
instantpage: https://cdn.jsdelivr.net/npm/instant.page@latest/instantpage.min.js
|
||||
|
||||
typed: https://cdn.jsdelivr.net/npm/typed.js
|
||||
js_cookies: https://cdn.jsdelivr.net/npm/js-cookie/dist/js.cookie.min.js
|
||||
|
||||
fancybox_css: https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css
|
||||
fancybox: https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js
|
||||
medium_zoom: https://cdn.jsdelivr.net/npm/medium-zoom/dist/medium-zoom.min.js
|
||||
|
||||
snackbar_css: https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.css
|
||||
snackbar: https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.js
|
||||
|
||||
#鼠标点击特效
|
||||
anime: https://cdn.jsdelivr.net/npm/animejs@latest/anime.min.js
|
||||
activate_power_mode: https://cdn.jsdelivr.net/npm/activate-power-mode/dist/activate-power-mode.min.js
|
||||
fireworks: https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@2.1.0/js/fireworks.js
|
||||
click_heart: https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@2.1.0/js/click_heart.js
|
||||
ClickShowText: https://cdn.jsdelivr.net/gh/jerryc127/butterfly_cdn@2.1.0/js/ClickShowText.js
|
||||
|
||||
translate: /js/tw_cn.js
|
||||
|
||||
@@ -20,7 +20,6 @@ page:
|
||||
sticky: Sticky
|
||||
no_title: No title
|
||||
archives: Archives
|
||||
read_more: Read more
|
||||
|
||||
post:
|
||||
created: Created
|
||||
@@ -28,6 +27,7 @@ post:
|
||||
wordcount: Word count
|
||||
min2read: "Reading time: %s min"
|
||||
page_pv: Post View
|
||||
comments: comments
|
||||
copyright:
|
||||
author: Author
|
||||
link: Link
|
||||
@@ -74,8 +74,7 @@ share: Share
|
||||
|
||||
bookmark:
|
||||
title: Bookmark
|
||||
message_prev: Press
|
||||
message_next: to bookmark this page
|
||||
|
||||
|
||||
rightside:
|
||||
readmode_title: Read Mode
|
||||
@@ -83,5 +82,24 @@ rightside:
|
||||
font_minus_title: Decrease font size
|
||||
translate_title: Traditional Chinese and Simplified Chinese Conversion
|
||||
night_mode_title: Dark Mode
|
||||
back_to_top: Back to top
|
||||
toc: Table of Contents
|
||||
scroll_to_comment: Scroll to comment
|
||||
setting: Setting
|
||||
|
||||
runtime_unit: days
|
||||
|
||||
copy_copyright:
|
||||
author: Author
|
||||
link: Link
|
||||
source: Source
|
||||
info: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
|
||||
|
||||
Snackbar:
|
||||
bookmark:
|
||||
message_prev: Press
|
||||
message_next: to bookmark this page
|
||||
chs_to_cht: Traditional Chinese Activated Manually
|
||||
cht_to_chs: Simplified Chinese Activated Manually
|
||||
day_to_night: Light Mode Activated Manually
|
||||
night_to_day: Dark Mode Activated Manually
|
||||
|
||||
@@ -20,7 +20,6 @@ page:
|
||||
sticky: Sticky
|
||||
no_title: No title
|
||||
archives: Archives
|
||||
read_more: Read more
|
||||
|
||||
post:
|
||||
created: Created
|
||||
@@ -28,6 +27,7 @@ post:
|
||||
wordcount: Word count
|
||||
min2read: "Reading time: %s min"
|
||||
page_pv: Post View
|
||||
comments: comments
|
||||
copyright:
|
||||
author: Author
|
||||
link: Link
|
||||
@@ -73,8 +73,6 @@ donate: Donate
|
||||
share: Share
|
||||
bookmark:
|
||||
title: Bookmark
|
||||
message_prev: Press
|
||||
message_next: to bookmark this page
|
||||
|
||||
rightside:
|
||||
readmode_title: Read Mode
|
||||
@@ -82,5 +80,24 @@ rightside:
|
||||
font_minus_title: Decrease font size
|
||||
translate_title: Traditional Chinese and Simplified Chinese Conversion
|
||||
night_mode_title: Dark Mode
|
||||
back_to_top: Back to top
|
||||
toc: Table of Contents
|
||||
scroll_to_comment: Scroll to comment
|
||||
setting: Setting
|
||||
|
||||
runtime_unit: days
|
||||
|
||||
copy_copyright:
|
||||
author: Author
|
||||
link: Link
|
||||
source: Source
|
||||
info: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
|
||||
|
||||
Snackbar:
|
||||
bookmark:
|
||||
message_prev: Press
|
||||
message_next: to bookmark this page
|
||||
chs_to_cht: Traditional Chinese Activated Manually
|
||||
cht_to_chs: Simplified Chinese Activated Manually
|
||||
day_to_night: Light Mode Activated Manually
|
||||
night_to_day: Dark Mode Activated Manually
|
||||
|
||||
@@ -20,7 +20,6 @@ page:
|
||||
sticky: 置顶
|
||||
no_title: 无题
|
||||
archives: 时间轴
|
||||
read_more: 阅读更多
|
||||
|
||||
post:
|
||||
created: 发表于
|
||||
@@ -28,6 +27,7 @@ post:
|
||||
wordcount: 字数总计
|
||||
min2read: "阅读时长: %s 分钟"
|
||||
page_pv: 阅读量
|
||||
comments: 评论数
|
||||
copyright:
|
||||
author: 文章作者
|
||||
link: 文章链接
|
||||
@@ -74,8 +74,7 @@ donate: 打赏
|
||||
share: 分享
|
||||
bookmark:
|
||||
title: 添加书签
|
||||
message_prev: 按
|
||||
message_next: 键将本页加入书签
|
||||
|
||||
|
||||
rightside:
|
||||
readmode_title: 阅读模式
|
||||
@@ -83,5 +82,24 @@ rightside:
|
||||
font_minus_title: 缩小字体
|
||||
translate_title: 简繁转换
|
||||
night_mode_title: 夜间模式
|
||||
back_to_top: 回到顶部
|
||||
toc: 目录
|
||||
scroll_to_comment: 直达评论
|
||||
setting: 设置
|
||||
|
||||
runtime_unit: 天
|
||||
|
||||
copy_copyright:
|
||||
author: 作者
|
||||
link: 链接
|
||||
source: 来源
|
||||
info: 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
|
||||
|
||||
Snackbar:
|
||||
bookmark:
|
||||
message_prev: 按
|
||||
message_next: 键将本页加入书签
|
||||
chs_to_cht: 你已切换为繁体
|
||||
cht_to_chs: 你已切换为简体
|
||||
day_to_night: 你已切换为深色模式
|
||||
night_to_day: 你已切换为浅色模式
|
||||
|
||||
@@ -15,12 +15,11 @@ page:
|
||||
articles: 文章總覽
|
||||
tag: 標籤
|
||||
category: 分類
|
||||
archives: 歸檔
|
||||
archives: 時間軸
|
||||
|
||||
sticky: 置頂
|
||||
no_title: 無題
|
||||
archives: 時間軸
|
||||
read_more: 閲讀更多
|
||||
|
||||
post:
|
||||
created: 發表於
|
||||
@@ -28,6 +27,7 @@ post:
|
||||
wordcount: 字數總計
|
||||
min2read: "閲讀時長: %s 分鐘"
|
||||
page_pv: 閲讀量
|
||||
comments: 評論數
|
||||
copyright:
|
||||
author: 文章作者
|
||||
link: 文章鏈接
|
||||
@@ -75,8 +75,7 @@ donate: 打賞
|
||||
share: 分享
|
||||
bookmark:
|
||||
title: 添加書籤
|
||||
message_prev: 按
|
||||
message_next: 鍵將本頁加入書籤
|
||||
|
||||
|
||||
rightside:
|
||||
readmode_title: 閲讀模式
|
||||
@@ -84,5 +83,26 @@ rightside:
|
||||
font_minus_title: 縮小字體
|
||||
translate_title: 簡繁轉換
|
||||
night_mode_title: 夜間模式
|
||||
back_to_top: 回到頂部
|
||||
toc: 目錄
|
||||
scroll_to_comment: 直達評論
|
||||
setting: 設置
|
||||
|
||||
runtime_unit: 天
|
||||
|
||||
copy_copyright:
|
||||
author: 作者
|
||||
link: 鏈接
|
||||
source: 來源
|
||||
info: 著作權歸作者所有。商業轉載請聯繫作者獲得授權,非商業轉載請註明出處。
|
||||
|
||||
Snackbar:
|
||||
bookmark:
|
||||
message_prev: 按
|
||||
message_next: 鍵將本頁加入書籤
|
||||
chs_to_cht: 你已切換為繁體
|
||||
cht_to_chs: 你已切換為簡體
|
||||
day_to_night: 你已切換為深色模式
|
||||
night_to_day: 你已切換為淺色模式
|
||||
|
||||
|
||||
runtime_unit: 天
|
||||
@@ -8,4 +8,4 @@ block content
|
||||
+articleSort(page.posts)
|
||||
include includes/pagination.pug
|
||||
#aside_content.aside_content
|
||||
include includes/aside.pug
|
||||
include includes/widget/index.pug
|
||||
|
||||
@@ -1,11 +1,19 @@
|
||||
extends includes/layout.pug
|
||||
|
||||
block content
|
||||
include ./includes/mixins/article-sort.pug
|
||||
#category
|
||||
.article-sort-title= _p('page.category') + ' - ' + page.category
|
||||
+articleSort(page.posts)
|
||||
include includes/pagination.pug
|
||||
#aside_content.aside_content
|
||||
include includes/aside.pug
|
||||
|
||||
if theme.category_ui == 'index'
|
||||
include ./includes/mixins/UI.pug
|
||||
#recent-posts.recent-posts.category_ui
|
||||
+UI_NEW(page.posts)
|
||||
include includes/pagination.pug
|
||||
#aside_content.aside_content
|
||||
include includes/widget/index.pug
|
||||
else
|
||||
include ./includes/mixins/article-sort.pug
|
||||
#category
|
||||
.article-sort-title= _p('page.category') + ' - ' + page.category
|
||||
+articleSort(page.posts)
|
||||
include includes/pagination.pug
|
||||
#aside_content.aside_content
|
||||
include includes/widget/index.pug
|
||||
|
||||
@@ -1,22 +1,21 @@
|
||||
.flink
|
||||
each i in site.data.link
|
||||
p.comment-word= i.class_name
|
||||
h1= i.class_name
|
||||
.post-cards
|
||||
ul.md-links
|
||||
each item in i.link_list
|
||||
li.md-links-item
|
||||
a(href=item.link title=item.name target="_blank")
|
||||
if theme.lazyload.enable
|
||||
img.lozad(data-src=item.avatar onerror=`onerror=null;src='${theme.lodding_bg.flink}'` height="72px")
|
||||
img.lazyload(data-src=item.avatar onerror=`this.onerror=null;this.src='` + url_for(theme.lodding_bg.flink) + `'` alt=item.name )
|
||||
else
|
||||
img(src=item.avatar onerror=`onerror=null;src='${theme.lodding_bg.flink}'` height="72px")
|
||||
div(class="md-links-title")= item.name
|
||||
<br/>
|
||||
div(class="md-links-des")=item.descr
|
||||
img(src=item.avatar onerror=`this.onerror=null;this.src='` + url_for(theme.lodding_bg.flink) + `'` alt=item.name )
|
||||
.md-links-title= item.name
|
||||
.md-links-des= item.descr
|
||||
|
||||
hr
|
||||
div
|
||||
p(style="font-size:15px;font-weight:bold")= theme.Flink.info_headline
|
||||
h2= theme.Flink.info_headline
|
||||
ul
|
||||
li= theme.Flink.name
|
||||
li= theme.Flink.address
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
extends includes/layout.pug
|
||||
|
||||
block content
|
||||
include includes/gallery/layout.pug
|
||||
@@ -1,20 +1,17 @@
|
||||
if (theme.algolia_search.enable)
|
||||
script(async src=url_for('/js/search/algolia.js'))
|
||||
if (theme.mathjax && theme.mathjax.enable)
|
||||
if(!is_tag() && !is_category() && !is_archive())
|
||||
include ./third-party/mathjax.pug
|
||||
if (theme.katex && theme.katex.enable)
|
||||
if(!is_tag() && !is_category() && !is_archive())
|
||||
include ./third-party/katex.pug
|
||||
if (theme.local_search && theme.local_search.enable)
|
||||
script(async src=url_for('/js/search/local-search.js'))
|
||||
if (theme.medium_zoom && theme.medium_zoom.enable)
|
||||
script(src=url_for(theme.CDN.medium_zoom))
|
||||
|
||||
if (theme.fancybox && theme.fancybox.enable)
|
||||
script(src=url_for(theme.CDN.fancybox))
|
||||
|
||||
include ./math/index.pug
|
||||
|
||||
if theme.fireworks && theme.fireworks.enable
|
||||
script(src='https://cdn.jsdelivr.net/npm/animejs@latest/anime.min.js')
|
||||
script(src=url_for('/js/third-party/fireworks.js'))
|
||||
script(src=url_for(theme.CDN.anime))
|
||||
script(src=url_for(theme.CDN.fireworks))
|
||||
|
||||
if theme.nightshift.enable
|
||||
script(src=url_for('js/nightshift.js'))
|
||||
if (theme.snackbar && theme.snackbar.enable)
|
||||
script(src=url_for(theme.CDN.snackbar))
|
||||
|
||||
if (theme.canvas_ribbon && theme.canvas_ribbon.enable)
|
||||
include ./third-party/canvas-ribbon.pug
|
||||
@@ -22,77 +19,36 @@ if (theme.canvas_ribbon && theme.canvas_ribbon.enable)
|
||||
if (theme.canvas_ribbon_piao && theme.canvas_ribbon_piao.enable)
|
||||
include ./third-party/canvas-ribbon-piao.pug
|
||||
|
||||
if theme.baidu_push && theme.baidu_push.enable
|
||||
script(src=url_for('js/baidupush.js'))
|
||||
if (theme.canvas_nest && theme.canvas_nest.enable)
|
||||
include ./third-party/canvas-nest.pug
|
||||
|
||||
if theme.activate_power_mode.enable
|
||||
script(src=url_for('js/activate-power-mode.js'))
|
||||
- var colorful = theme.activate_power_mode.colorful == false ? false : true
|
||||
- var shake = theme.activate_power_mode.shake == false ? false : true
|
||||
script(src=url_for(theme.CDN.activate_power_mode))
|
||||
script.
|
||||
POWERMODE.colorful = true; // make power mode colorful
|
||||
POWERMODE.shake = true; // turn off shake
|
||||
POWERMODE.colorful = !{colorful};
|
||||
POWERMODE.shake = !{shake};
|
||||
document.body.addEventListener('input', POWERMODE);
|
||||
|
||||
if theme.translate && theme.translate.enable
|
||||
script(src=url_for('/js/tw_cn.js'))
|
||||
script.
|
||||
translateInitilization()
|
||||
script(src=url_for(theme.CDN.translate))
|
||||
|
||||
|
||||
if is_home() && theme.subtitle.enable
|
||||
script(src="https://cdn.jsdelivr.net/npm/typed.js@2.0.9")
|
||||
script.
|
||||
var typed = new Typed(".subtitle", {
|
||||
strings: ['!{theme.subtitle.sub1}','!{theme.subtitle.sub2}'],
|
||||
startDelay: 300,
|
||||
typeSpeed: 100,
|
||||
loop: true,
|
||||
backSpeed: 50
|
||||
});
|
||||
|
||||
if is_home()
|
||||
script.
|
||||
//首頁fullpage
|
||||
function alignContent() {
|
||||
for (var n = $(window).height(), e = document.querySelectorAll(".full_page"), i = 0; i < e.length; i++)
|
||||
e[i].style.height = n + "px";
|
||||
$("#site-info").each(function () {
|
||||
var x = $(this).height();
|
||||
$(this).css("top", (n-x)/2)
|
||||
})
|
||||
}
|
||||
|
||||
function recent_post_padding() {
|
||||
$(".recent-post-info").each(function () {
|
||||
var k = $(".recent-post-item").height();
|
||||
var e = $(this).height();
|
||||
$(this).css({"padding-top": (k-e)/2 , "padding-bottom": (k-e)/2 })
|
||||
})
|
||||
}
|
||||
|
||||
alignContent();
|
||||
|
||||
//recent-post-item垂直置中
|
||||
if ($(window).width() > 768) {
|
||||
recent_post_padding();
|
||||
}
|
||||
|
||||
$(window).bind("resize", function () {
|
||||
|
||||
alignContent()
|
||||
|
||||
if ($(window).width() > 768) {
|
||||
recent_post_padding();
|
||||
}
|
||||
})
|
||||
if is_home()
|
||||
include index-js.pug
|
||||
|
||||
if theme.busuanzi.site_uv || theme.busuanzi.site_pv || theme.busuanzi.page_pv
|
||||
script(async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js")
|
||||
script(async src=url_for(theme.CDN.busuanzi))
|
||||
|
||||
if theme.instantpage.enable
|
||||
script(src="https://cdn.jsdelivr.net/npm/instant.page@1.2.2/instantpage.min.js" type="module")
|
||||
script(src=url_for(theme.CDN.instantpage) type="module")
|
||||
|
||||
if theme.lazyload.enable
|
||||
script(src=url_for(theme.lazyload.script))
|
||||
script.
|
||||
const observer = lozad(); // lazy loads elements with default selector as '.lozad'
|
||||
observer.observe();
|
||||
script(src=url_for(theme.CDN.lazyload) async="")
|
||||
|
||||
//- 鼠標特效
|
||||
if theme.click_heart && theme.click_heart.enable
|
||||
script(src=url_for(theme.CDN.click_heart))
|
||||
|
||||
if theme.ClickShowText && theme.ClickShowText.enable
|
||||
script(src=url_for(theme.CDN.ClickShowText))
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
if theme.aside.card_author
|
||||
include widget/card_author.pug
|
||||
|
||||
if theme.aside.card_announcement
|
||||
include widget/card_announcement.pug
|
||||
|
||||
if theme.aside.card_recent_post
|
||||
include widget/card_recent_post.pug
|
||||
|
||||
if theme.aside.card_categories
|
||||
include widget/card_categories.pug
|
||||
|
||||
if theme.aside.card_tags
|
||||
include widget/card_tags.pug
|
||||
|
||||
if theme.aside.card_archives
|
||||
include widget/card_archives.pug
|
||||
|
||||
if theme.aside.card_webinfo
|
||||
include widget/card_webinfo.pug
|
||||
|
||||
@@ -8,6 +8,13 @@ if theme.gitalk && theme.gitalk.enable
|
||||
owner: '!{theme.gitalk.owner}',
|
||||
admin: '!{theme.gitalk.admin}',
|
||||
id: md5(decodeURI(location.pathname)),
|
||||
language: '!{lang}'
|
||||
language: '!{theme.gitalk.language}',
|
||||
updateCountCallback: commentCount
|
||||
})
|
||||
gitalk.render('gitalk-container')
|
||||
gitalk.render('gitalk-container')
|
||||
|
||||
function commentCount(n){
|
||||
document.getElementsByClassName('gitalk-comment-count')[0].innerHTML= n
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
if theme.gitment && theme.gitment.enable
|
||||
#gitment-container
|
||||
script.
|
||||
var gitment = new Gitment({
|
||||
id: md5(decodeURI(location.pathname)),
|
||||
owner: '!{theme.gitment.owner}',
|
||||
repo: '!{theme.gitment.repo}',
|
||||
oauth: {
|
||||
client_id: '!{theme.gitment.client_id}',
|
||||
client_secret: '!{theme.gitment.client_secret}'
|
||||
}
|
||||
})
|
||||
gitment.render('gitment-container')
|
||||
@@ -1,35 +1,19 @@
|
||||
if theme.disqus && theme.disqus.enable
|
||||
- var d = theme.disqus && theme.disqus.enable
|
||||
- var l = theme.laibili && theme.laibili.enable
|
||||
- var gt = theme.gitalk && theme.gitalk.enable
|
||||
- var v = theme.valine && theme.valine.enable
|
||||
|
||||
if d || l || gt || v
|
||||
hr
|
||||
#post-comment
|
||||
.comment_headling
|
||||
i.fa.fa-comments.fa-fw(aria-hidden="true")
|
||||
span= ' ' + _p('comment')
|
||||
include ./disqus.pug
|
||||
else if theme.laibili && theme.laibili.enable
|
||||
hr
|
||||
#post-comment
|
||||
.comment_headling
|
||||
i.fa.fa-comments.fa-fw(aria-hidden="true")
|
||||
span= ' ' + _p('comment')
|
||||
include ./laibili.pug
|
||||
else if theme.gitment && theme.gitment.enable
|
||||
hr
|
||||
#post-comment
|
||||
.comment_headling
|
||||
i.fa.fa-comments.fa-fw(aria-hidden="true")
|
||||
span= ' ' + _p('comment')
|
||||
include ./gitment.pug
|
||||
else if theme.gitalk && theme.gitalk.enable
|
||||
hr
|
||||
#post-comment
|
||||
.comment_headling
|
||||
i.fa.fa-comments.fa-fw(aria-hidden="true")
|
||||
span= ' ' + _p('comment')
|
||||
include ./gitalk.pug
|
||||
else if theme.valine && theme.valine.enable
|
||||
hr
|
||||
#post-comment
|
||||
.comment_headling
|
||||
i.fa.fa-comments.fa-fw(aria-hidden="true")
|
||||
span= ' ' + _p('comment')
|
||||
include ./valine.pug
|
||||
if d
|
||||
include ./disqus.pug
|
||||
else if l
|
||||
include ./laibili.pug
|
||||
else if gt
|
||||
include ./gitalk.pug
|
||||
else if v
|
||||
include ./valine.pug
|
||||
@@ -1,9 +1,9 @@
|
||||
if theme.valine && theme.valine.enable
|
||||
#vcomment.vcomment
|
||||
script(src='https://cdn.jsdelivr.net/npm/valine/dist/Valine.min.js')
|
||||
script(src=url_for(theme.CDN.valine))
|
||||
script.
|
||||
var notify = '#{ theme.valine.notify }' == true ? true : false;
|
||||
var verify = '#{ theme.valine.verify }' == true ? true : false;
|
||||
var notify = #{ theme.valine.notify } == true ? true : false;
|
||||
var verify = #{ theme.valine.verify } == true ? true : false;
|
||||
var GUEST_INFO = ['nick','mail','link'];
|
||||
var guest_info = '#{ theme.valine.guest_info }'.split(',').filter(function(item){
|
||||
return GUEST_INFO.indexOf(item) > -1
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
}
|
||||
var translate = 'undefined';
|
||||
if (theme.translate && theme.translate.enable){
|
||||
var defaultEncoding;
|
||||
translate = JSON.stringify({
|
||||
defaultEncoding: theme.translate.defaultEncoding,
|
||||
translateDelay: theme.translate.translateDelay,
|
||||
@@ -38,8 +37,51 @@
|
||||
})
|
||||
}
|
||||
|
||||
var copyright = 'undefined' ;
|
||||
if (theme.copy.enable && theme.copy.copyright){
|
||||
copyright = JSON.stringify({
|
||||
languages: {
|
||||
author: _p("copy_copyright.author") + ': ' + config.author,
|
||||
link: _p("copy_copyright.link") + ': ' + without_html,
|
||||
source: _p("copy_copyright.source") + ': ' + config.title,
|
||||
info: _p("copy_copyright.info")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
var ClickShowText = 'undefined';
|
||||
if (theme.ClickShowText && theme.ClickShowText.enable) {
|
||||
ClickShowText = JSON.stringify({
|
||||
text: theme.ClickShowText.text.join(","),
|
||||
fontSize: theme.ClickShowText.fontSize
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
var Snackbar = 'undefined';
|
||||
if (theme.snackbar && theme.snackbar.enable) {
|
||||
Snackbar = JSON.stringify({
|
||||
bookmark: {
|
||||
title: _p("Snackbar.bookmark.title"),
|
||||
message_prev: _p("Snackbar.bookmark.message_prev"),
|
||||
message_next: _p("Snackbar.bookmark.message_next")
|
||||
},
|
||||
chs_to_cht: _p("Snackbar.chs_to_cht"),
|
||||
cht_to_chs: _p("Snackbar.cht_to_chs"),
|
||||
day_to_night: _p("Snackbar.day_to_night"),
|
||||
night_to_day: _p("Snackbar.night_to_day"),
|
||||
bgLight: theme.snackbar.bg_light,
|
||||
bgDark: theme.snackbar.bg_dark,
|
||||
position: theme.snackbar.position,
|
||||
})
|
||||
}
|
||||
|
||||
var runtime = theme.runtimeshow.enable
|
||||
var fancybox = theme.fancybox.enable
|
||||
var medium_zoom = theme.medium_zoom.enable
|
||||
var baiduPush = theme.baidu_push && theme.baidu_push.enable
|
||||
var isHome = is_home() ? true : false
|
||||
var isPost = is_post() ? true : false
|
||||
|
||||
|
||||
script.
|
||||
@@ -48,19 +90,26 @@ script.
|
||||
algolia: !{algolia},
|
||||
localSearch: !{localSearch},
|
||||
translate: !{translate},
|
||||
highlight_copy: '!{theme.highlight_copy}',
|
||||
copy: {
|
||||
success: '!{_p("copy.success")}',
|
||||
error: '!{_p("copy.error")}',
|
||||
noSupport: '!{_p("copy.noSupport")}'
|
||||
},
|
||||
bookmark: {
|
||||
title: '!{_p("bookmark.title")}',
|
||||
message_prev: '!{_p("bookmark.message_prev")}',
|
||||
message_next: '!{_p("bookmark.message_next")}'
|
||||
title: '!{_p("Snackbar.bookmark.title")}',
|
||||
message_prev: '!{_p("Snackbar.bookmark.message_prev")}',
|
||||
message_next: '!{_p("Snackbar.bookmark.message_next")}'
|
||||
},
|
||||
runtime_unit: '!{_p("runtime_unit")}'
|
||||
|
||||
runtime_unit: '!{_p("runtime_unit")}',
|
||||
runtime: !{runtime},
|
||||
copyright: !{copyright},
|
||||
ClickShowText: !{ClickShowText},
|
||||
medium_zoom: !{medium_zoom},
|
||||
fancybox: !{fancybox},
|
||||
Snackbar: !{Snackbar},
|
||||
baiduPush: !{baiduPush},
|
||||
isHome: !{isHome},
|
||||
isPost: !{isPost}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#footer.layout
|
||||
#footer-wrap
|
||||
- var now = new Date()
|
||||
- var nowYear = now.getFullYear()
|
||||
if theme.since && theme.since != nowYear
|
||||
@@ -19,4 +19,6 @@
|
||||
if theme.ICP.enable
|
||||
.icp
|
||||
a(href=theme.ICP.url)
|
||||
if theme.ICP.icon
|
||||
img.icp-icon(src=url_for(theme.ICP.icon))
|
||||
span=theme.ICP.text
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
#gallery!= page.content
|
||||
@@ -1,118 +1,79 @@
|
||||
if is_home()
|
||||
- var top_img = theme.index_img || theme.default_top_img
|
||||
else if is_archive()
|
||||
- var top_img = theme.archive_img || theme.default_top_img
|
||||
else if is_tag()
|
||||
- var top_img = theme.tag_img || theme.default_top_img
|
||||
else if is_category()
|
||||
- var top_img = theme.category_img || theme.default_top_img
|
||||
else if is_current('/movies/', [strict])
|
||||
- var top_img = theme.movies_img || theme.default_top_img
|
||||
else if !is_post()
|
||||
- var top_img = page.top_img || theme.default_top_img
|
||||
|
||||
- var without_index = url.replace('index.html', '')
|
||||
- var without_html = without_index.replace('.html', '')
|
||||
- var photo_check = page.cover || theme.avatar
|
||||
- var photo_link = url_check (photo_check) ? photo_check : config.url + photo_check
|
||||
|
||||
meta(http-equiv="x-dns-prefetch-control" content="on")
|
||||
if theme.canonical
|
||||
link(rel="canonical" href=without_html)
|
||||
//- 預解析
|
||||
include ./head/dns_prefetch.pug
|
||||
|
||||
if theme.twitter_meta
|
||||
meta(name="twitter:card" content="summary_large_image")
|
||||
meta(name="twitter:title" content=pageTitle_no_include_blog_name)
|
||||
meta(name="twitter:description" content=pageDescription)
|
||||
meta(name="twitter:image" content=photo_link)
|
||||
//- PWA
|
||||
if (theme.pwa && theme.pwa.enable)
|
||||
include ./head/pwa.pug
|
||||
|
||||
if theme.Open_Graph_meta
|
||||
if is_post()
|
||||
meta(property="og:type" content="article")
|
||||
else
|
||||
meta(property="og:type" content="website")
|
||||
//- 網站驗證
|
||||
include ./head/site_verification.pug
|
||||
|
||||
meta(property="og:title" content=pageTitle_no_include_blog_name)
|
||||
meta(property="og:url" content=without_html)
|
||||
meta(property="og:site_name" content=config.title)
|
||||
meta(property="og:description" content=pageDescription)
|
||||
meta(property="og:image" content=photo_link)
|
||||
//- Open_Graph
|
||||
include ./head/Open_Graph.pug
|
||||
|
||||
if theme.disable_baidu_transformation
|
||||
meta(http-equiv="Cache-Control" content="no-transform")
|
||||
meta(http-equiv="Cache-Control" content="no-siteapp")
|
||||
|
||||
if page.hide == true
|
||||
meta(name="robots" content="noindex")
|
||||
|
||||
script(src=url_for(theme.CDN.js_cookies))
|
||||
|
||||
if (theme.darkmode && theme.darkmode.enable) || theme.autoChangeMode !== false
|
||||
include ./head/darkmode.pug
|
||||
|
||||
each item in theme.CDN_USE.css
|
||||
link(rel='stylesheet', href=url_for(item))
|
||||
|
||||
if (theme.fancybox && theme.fancybox.enable)
|
||||
link(rel='stylesheet', href=url_for(theme.CDN.fancybox_css))
|
||||
|
||||
if (theme.snackbar && theme.snackbar.enable)
|
||||
link(rel='stylesheet', href=url_for(theme.CDN.snackbar_css))
|
||||
|
||||
if theme.canonical
|
||||
link(rel="canonical" href=without_html)
|
||||
|
||||
if is_post()
|
||||
if(page.prev)
|
||||
link(rel="prev" title=page.prev.title href=url_for(page.prev.permalink) )
|
||||
if(page.next)
|
||||
link(rel="next" title=page.next.title href=url_for(page.next.permalink) )
|
||||
|
||||
|
||||
if theme.algolia_search.enable
|
||||
link(rel="dns-prefetch" href="https://cdn.jsdelivr.net")
|
||||
link(rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.1.1/dist/instantsearch.min.css")
|
||||
script(src="https://cdn.jsdelivr.net/npm/instantsearch.js@2.1.1/dist/instantsearch.min.js" defer)
|
||||
link(rel="stylesheet" type="text/css" href=url_for(theme.CDN.algolia_search_css))
|
||||
script(src=url_for(theme.CDN.algolia_search) defer)
|
||||
|
||||
if (theme.gitment && theme.gitment.enable)
|
||||
link(rel="dns-prefetch" href="https://unpkg.com")
|
||||
link(rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/gitment/style/default.min.css")
|
||||
script(src="https://cdn.jsdelivr.net/npm/gitment/dist/gitment.browser.min.js")
|
||||
script(src="https://cdn.jsdelivr.net/npm/blueimp-md5@2.10.0/js/md5.min.js")
|
||||
if (theme.gitalk && theme.gitalk.enable)
|
||||
link(rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.css")
|
||||
if(theme.gitalk.js)
|
||||
script(src=theme.gitalk.js)
|
||||
else
|
||||
script(src="https://cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.min.js")
|
||||
script(src="https://cdn.jsdelivr.net/npm/blueimp-md5@2.10.0/js/md5.min.js")
|
||||
link(rel="stylesheet" type="text/css" href=url_for(theme.CDN.gitalk_css))
|
||||
script(src=url_for(theme.CDN.gitalk) defer)
|
||||
script(src=url_for(theme.CDN.blueimp_md5) defer)
|
||||
|
||||
//- google_adsense
|
||||
include ./head/google_adsense.pug
|
||||
|
||||
//- analytics
|
||||
include ./head/analytics.pug
|
||||
|
||||
if (theme.pwa && theme.pwa.enable)
|
||||
link(rel="manifest" href=theme.pwa.manifest)
|
||||
if(theme.pwa.theme_color)
|
||||
meta(name="theme-color" content=theme.pwa.theme_color)
|
||||
if(theme.pwa.theme_color)
|
||||
meta(name="msapplication-TileColor" content=theme.pwa.theme_color)
|
||||
if(theme.pwa.apple_touch_icon)
|
||||
link(rel="apple-touch-icon" sizes="180x180" href=theme.pwa.apple_touch_icon)
|
||||
if(theme.pwa.favicon_32_32)
|
||||
link(rel="icon" type="image/png" sizes="32x32" href=theme.pwa.favicon_32_32)
|
||||
if(theme.pwa.favicon_16_16)
|
||||
link(rel="icon" type="image/png" sizes="16x16" href=theme.pwa.favicon_16_16)
|
||||
if(theme.pwa.mask_icon)
|
||||
link(rel="mask-icon" href=theme.pwa.mask_icon color="#5bbad5")
|
||||
|
||||
|
||||
if theme.baidu_analytics
|
||||
link(rel="dns-prefetch" href="https://hm.baidu.com")
|
||||
script.
|
||||
var _hmt = _hmt || [];
|
||||
(function() {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?!{theme.baidu_analytics}";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
if theme.google_analytics
|
||||
link(rel="dns-prefetch" href="https://www.google-analytics.com")
|
||||
script.
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', '!{theme.google_analytics}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
if theme.google_site_verification
|
||||
meta(name="google-site-verification" content=theme.google_site_verification)
|
||||
|
||||
if theme.bing_site_verification
|
||||
meta(name="msvalidate.01" content=theme.bing_site_verification)
|
||||
|
||||
if theme.baidu_site_verification
|
||||
meta(name="baidu-site-verification" content=theme.baidu_site_verification)
|
||||
|
||||
if theme.qihu_site_verification
|
||||
meta(name="360-site-verification" content=theme.qihu_site_verification)
|
||||
|
||||
|
||||
- var preload_archive_img = theme.archive_img ||theme.top_img || config.top_img
|
||||
- var preload_img = page.top_img || theme.top_img || config.top_img
|
||||
|
||||
if (is_archive() && preload_archive_img)
|
||||
link(rel="preload" href=url_for(preload_archive_img) as="image" )
|
||||
else if (!is_post() && preload_img)
|
||||
link(rel="preload" href=url_for(preload_img) as="image" )
|
||||
if !is_post()
|
||||
link(rel="preload" href=url_for(top_img) as="image" )
|
||||
|
||||
if theme.blog_title_font.font_link
|
||||
link(rel='stylesheet', href=url_for(theme.blog_title_font.font_link))
|
||||
19
layout/includes/head/Open_Graph.pug
Normal file
19
layout/includes/head/Open_Graph.pug
Normal file
@@ -0,0 +1,19 @@
|
||||
- var photo_check = is_post() ? page.cover || theme.avatar : theme.avatar
|
||||
- var photo_link = url_check (photo_check) ? photo_check : config.url + photo_check
|
||||
- var contentType = is_post() ? 'article' : 'website'
|
||||
|
||||
//- twitter meta
|
||||
if theme.twitter_meta
|
||||
meta(name="twitter:card" content="summary")
|
||||
meta(name="twitter:title" content=pageTitle_no_include_blog_name)
|
||||
meta(name="twitter:description" content=pageDescription)
|
||||
meta(name="twitter:image" content=photo_link)
|
||||
|
||||
//- Open_Graph
|
||||
if theme.Open_Graph_meta
|
||||
meta(property="og:type" content=contentType)
|
||||
meta(property="og:title" content=pageTitle_no_include_blog_name)
|
||||
meta(property="og:url" content=without_html)
|
||||
meta(property="og:site_name" content=config.title)
|
||||
meta(property="og:description" content=pageDescription)
|
||||
meta(property="og:image" content=photo_link)
|
||||
22
layout/includes/head/analytics.pug
Normal file
22
layout/includes/head/analytics.pug
Normal file
@@ -0,0 +1,22 @@
|
||||
if theme.baidu_analytics
|
||||
script.
|
||||
var _hmt = _hmt || [];
|
||||
(function() {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?!{theme.baidu_analytics}";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
|
||||
if theme.google_analytics
|
||||
script.
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', '!{theme.google_analytics}', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
if theme.tencent_analytics
|
||||
script(src=`http://tajs.qq.com/stats?sId=` + theme.tencent_analytics charset="UTF-8")
|
||||
48
layout/includes/head/darkmode.pug
Normal file
48
layout/includes/head/darkmode.pug
Normal file
@@ -0,0 +1,48 @@
|
||||
script.
|
||||
const autoChangeMode = '#{theme.autoChangeMode}'
|
||||
var t = Cookies.get("theme");
|
||||
if (autoChangeMode == '1'){
|
||||
const isDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches
|
||||
const isLightMode = window.matchMedia("(prefers-color-scheme: light)").matches
|
||||
const isNotSpecified = window.matchMedia("(prefers-color-scheme: no-preference)").matches
|
||||
const hasNoSupport = !isDarkMode && !isLightMode && !isNotSpecified
|
||||
|
||||
if (t === undefined){
|
||||
if (isLightMode) activateLightMode()
|
||||
else if (isDarkMode) activateDarkMode()
|
||||
else if (isNotSpecified || hasNoSupport){
|
||||
console.log('You specified no preference for a color scheme or your browser does not support it. I Schedule dark mode during night time.')
|
||||
now = new Date();
|
||||
hour = now.getHours();
|
||||
isNight = hour < 6 || hour >= 18
|
||||
isNight ? activateDarkMode() : activateLightMode()
|
||||
}
|
||||
} else if (t == 'light') activateLightMode()
|
||||
else activateDarkMode()
|
||||
|
||||
|
||||
} else if (autoChangeMode == '2'){
|
||||
now = new Date();
|
||||
hour = now.getHours();
|
||||
isNight = hour < 6 || hour >= 18
|
||||
if(t === undefined) isNight? activateDarkMode() : activateLightMode()
|
||||
else if (t === 'light') activateLightMode()
|
||||
else activateDarkMode()
|
||||
} else {
|
||||
if ( t == 'dark' ) activateDarkMode()
|
||||
else if ( t == 'light') activateLightMode()
|
||||
}
|
||||
|
||||
function activateDarkMode(){
|
||||
document.documentElement.setAttribute('data-theme', 'dark')
|
||||
if (document.querySelector('meta[name="theme-color"]') !== null){
|
||||
document.querySelector('meta[name="theme-color"]').setAttribute('content','#000')
|
||||
}
|
||||
}
|
||||
function activateLightMode(){
|
||||
document.documentElement.setAttribute('data-theme', 'light')
|
||||
if (document.querySelector('meta[name="theme-color"]') !== null){
|
||||
document.querySelector('meta[name="theme-color"]').setAttribute('content','#fff')
|
||||
}
|
||||
}
|
||||
|
||||
16
layout/includes/head/dns_prefetch.pug
Normal file
16
layout/includes/head/dns_prefetch.pug
Normal file
@@ -0,0 +1,16 @@
|
||||
link(rel="preconnect" href="//cdn.jsdelivr.net")
|
||||
|
||||
if theme.google_analytics
|
||||
link(rel="preconnect" href="https://www.google-analytics.com" crossorigin)
|
||||
|
||||
if theme.baidu_analytics
|
||||
link(rel="preconnect" href="https://hm.baidu.com")
|
||||
|
||||
if theme.tencent_analytics
|
||||
link(rel="preconnect" href="http://ta.qq.com")
|
||||
|
||||
if theme.blog_title_font.font_link
|
||||
link(rel="preconnect" href="https://fonts.googleapis.com" crossorigin)
|
||||
|
||||
if theme.busuanzi.site_uv || theme.busuanzi.site_pv || theme.busuanzi.page_pv
|
||||
link(rel="preconnect" href="//busuanzi.ibruce.info")
|
||||
7
layout/includes/head/google_adsense.pug
Normal file
7
layout/includes/head/google_adsense.pug
Normal file
@@ -0,0 +1,7 @@
|
||||
if (theme.google_adsense && theme.google_adsense.enable)
|
||||
script(async src=theme.google_adsense.js)
|
||||
script.
|
||||
(adsbygoogle = window.adsbygoogle || []).push({
|
||||
google_ad_client: '!{theme.google_adsense.client}',
|
||||
enable_page_level_ads: '!{theme.google_adsense.enable_page_level_ads}'
|
||||
});
|
||||
13
layout/includes/head/pwa.pug
Normal file
13
layout/includes/head/pwa.pug
Normal file
@@ -0,0 +1,13 @@
|
||||
link(rel="manifest" href=theme.pwa.manifest)
|
||||
if(theme.pwa.theme_color)
|
||||
meta(name="theme-color" content=theme.pwa.theme_color)
|
||||
if(theme.pwa.theme_color)
|
||||
meta(name="msapplication-TileColor" content=theme.pwa.theme_color)
|
||||
if(theme.pwa.apple_touch_icon)
|
||||
link(rel="apple-touch-icon" sizes="180x180" href=theme.pwa.apple_touch_icon)
|
||||
if(theme.pwa.favicon_32_32)
|
||||
link(rel="icon" type="image/png" sizes="32x32" href=theme.pwa.favicon_32_32)
|
||||
if(theme.pwa.favicon_16_16)
|
||||
link(rel="icon" type="image/png" sizes="16x16" href=theme.pwa.favicon_16_16)
|
||||
if(theme.pwa.mask_icon)
|
||||
link(rel="mask-icon" href=theme.pwa.mask_icon color="#5bbad5")
|
||||
11
layout/includes/head/site_verification.pug
Normal file
11
layout/includes/head/site_verification.pug
Normal file
@@ -0,0 +1,11 @@
|
||||
if theme.google_site_verification
|
||||
meta(name="google-site-verification" content=theme.google_site_verification)
|
||||
|
||||
if theme.bing_site_verification
|
||||
meta(name="msvalidate.01" content=theme.bing_site_verification)
|
||||
|
||||
if theme.baidu_site_verification
|
||||
meta(name="baidu-site-verification" content=theme.baidu_site_verification)
|
||||
|
||||
if theme.qihu_site_verification
|
||||
meta(name="360-site-verification" content=theme.qihu_site_verification)
|
||||
@@ -1,26 +1,16 @@
|
||||
#page-header
|
||||
span.pull-left
|
||||
a#site-name.blog_title(href=url_for('/')) #[=config.title]
|
||||
//- i.fa.fa-bars.toggle-menu.pull-right(aria-hidden="true")
|
||||
.open.toggle-menu.pull-right
|
||||
.menu-icon-first
|
||||
.menu-icon-second
|
||||
.menu-icon-third
|
||||
|
||||
span.pull-right.menus
|
||||
.mobile_author_icon
|
||||
img.lozad(src=theme.avatar || url_for('/img/avatar.png') onerror=`onerror=null;src='${theme.lodding_bg.flink}'`)
|
||||
.mobile_author-info__description= config.description
|
||||
hr
|
||||
.menus_item
|
||||
each value, label in theme.menu
|
||||
a.site-page(href=value.split('||')[0])
|
||||
i.fa-fw(class=value.split('||')[1])
|
||||
span=' '+label
|
||||
script.
|
||||
document.body.addEventListener('touchstart', function(){ });
|
||||
span.pull-right
|
||||
header
|
||||
#page-header
|
||||
span#blog_name.pull_left
|
||||
a#site-name.blog_title(href=url_for('/')) #[=config.title]
|
||||
span.toggle-menu.pull_right.close
|
||||
a.site-page
|
||||
i.fa.fa-bars.fa-fw(aria-hidden="true")
|
||||
span.pull_right.menus
|
||||
.menus_items
|
||||
include menu_item.pug
|
||||
|
||||
if (theme.algolia_search.enable || theme.local_search && theme.local_search.enable)
|
||||
span#search_button.pull_right
|
||||
a.site-page.social-icon.search
|
||||
i.fa.fa-search.fa-fw
|
||||
span=' '+_p('search')
|
||||
|
||||
90
layout/includes/index-js.pug
Normal file
90
layout/includes/index-js.pug
Normal file
@@ -0,0 +1,90 @@
|
||||
if theme.subtitle.enable
|
||||
script(src=url_for(theme.CDN.typed))
|
||||
- var source = theme.subtitle.source
|
||||
|
||||
if source == '1' || source == '2'
|
||||
script(src="https://cdn.jsdelivr.net/npm/bluebird@3/js/browser/bluebird.min.js")
|
||||
script(src="https://cdn.jsdelivr.net/npm/whatwg-fetch@2.0.3/fetch.min.js")
|
||||
|
||||
if source == '1'
|
||||
script.
|
||||
fetch('https://api.ooopn.com/ciba/api.php',)
|
||||
.then(function (res){
|
||||
return res.json();
|
||||
})
|
||||
.then(function (data) {
|
||||
var sub = '!{theme.subtitle.sub}'.length == 0 ? new Array() : '!{theme.subtitle.sub}'.split(",");
|
||||
var both = sub.unshift(data['ciba-en'],data.ciba)
|
||||
var typed = new Typed(".subtitle", {
|
||||
strings: sub,
|
||||
startDelay: 300,
|
||||
typeSpeed: 100,
|
||||
loop: true,
|
||||
backSpeed: 50
|
||||
});
|
||||
})
|
||||
.catch(function (err) {
|
||||
console.error(err);
|
||||
})
|
||||
else if source == '2'
|
||||
script.
|
||||
fetch('https://v1.hitokoto.cn')
|
||||
.then(function (res){
|
||||
return res.json();
|
||||
})
|
||||
.then(function (data) {
|
||||
var sub = '!{theme.subtitle.sub}'.length == 0 ? new Array() : '!{theme.subtitle.sub}'.split(",");
|
||||
var both = sub.unshift(data.hitokoto)
|
||||
var typed = new Typed(".subtitle", {
|
||||
strings: sub,
|
||||
startDelay: 300,
|
||||
typeSpeed: 100,
|
||||
loop: true,
|
||||
backSpeed: 50
|
||||
});
|
||||
})
|
||||
.catch(function (err) {
|
||||
console.error(err);
|
||||
})
|
||||
else if source == "3"
|
||||
script(type="text/javascript" src="http://yijuzhan.com/api/word.php?m=js")
|
||||
script.
|
||||
var con = str[0];
|
||||
var author = "出自 " + str[1];
|
||||
var sub = '!{theme.subtitle.sub}'.length == 0 ? new Array() : '!{theme.subtitle.sub}'.split(",");
|
||||
var both = sub.unshift(con,author)
|
||||
var typed = new Typed(".subtitle", {
|
||||
strings: sub,
|
||||
startDelay: 300,
|
||||
typeSpeed: 100,
|
||||
loop: true,
|
||||
backSpeed: 50
|
||||
});
|
||||
else if source == '4'
|
||||
script(type="text/javascript" src="https://sdk.jinrishici.com/v2/browser/jinrishici.js" charset="utf-8")
|
||||
script.
|
||||
jinrishici.load(function(result) {
|
||||
var sub = '!{theme.subtitle.sub}'.length == 0 ? new Array() : '!{theme.subtitle.sub}'.split(",");
|
||||
var content = result.data.content;
|
||||
var both = sub.unshift(content)
|
||||
var typed = new Typed(".subtitle", {
|
||||
strings: sub,
|
||||
startDelay: 300,
|
||||
typeSpeed: 100,
|
||||
loop: true,
|
||||
backSpeed: 50
|
||||
});
|
||||
})
|
||||
|
||||
else
|
||||
script.
|
||||
var typed = new Typed(".subtitle", {
|
||||
strings: '!{theme.subtitle.sub}'.split(","),
|
||||
startDelay: 300,
|
||||
typeSpeed: 100,
|
||||
loop: true,
|
||||
backSpeed: 50
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -16,69 +16,68 @@
|
||||
- config.subtitle ? home_subtitle_true = ' - ' + config.subtitle : home_subtitle_true = ''
|
||||
//- home時pageTitle顯示 JerryC - subtitle,其他顯示 pageTitle | JerryC
|
||||
- is_home() ? pageTitle = config.title + home_subtitle_true : pageTitle = pageTitle_saved
|
||||
//- 判断keywords
|
||||
|
||||
- var pageDescription = page.description || page.title || config.description || ''
|
||||
- var pageKeywords = (config.keywords || []).join(',')
|
||||
- var pageDescription = page.description || page.title || config.description
|
||||
- var pageKeywords = Array.isArray(config.keywords) ? (config.keywords).join(','): ([]).join(',') || config.keywords
|
||||
- if (page.tags && page.tags.data) pageKeywords = page.tags.data.map(function(tag) {return tag.name;}).join(',')
|
||||
- var pageAuthor = config.email ? config.author + ',' + config.email : config.author
|
||||
- var pageCopyright = config.copyright || config.author
|
||||
|
||||
doctype html
|
||||
html(lang=config.language)
|
||||
html(lang=config.language data-theme=theme.display_mode)
|
||||
head
|
||||
meta(charset='UTF-8')
|
||||
meta(http-equiv="X-UA-Compatible" content="IE=edge")
|
||||
meta(name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1")
|
||||
meta(name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5")
|
||||
title= pageTitle
|
||||
meta(name="description" content=pageDescription)
|
||||
meta(name="keywords" content=pageKeywords)
|
||||
if pageKeywords
|
||||
meta(name="keywords" content=pageKeywords)
|
||||
meta(name="author" content=pageAuthor)
|
||||
meta(name="copyright" content=pageCopyright)
|
||||
meta(name ="format-detection" content="telephone=no")
|
||||
!=favicon_tag(config.favicon || theme.favicon || '/favicon.ico')
|
||||
if theme.stylesheets !== undefined && theme.stylesheets.length > 0
|
||||
each url in theme.stylesheets
|
||||
link(rel='stylesheet', href=url_for(url))
|
||||
each item in theme.cdn.css
|
||||
if item !== undefined
|
||||
link(rel='stylesheet', href=item)
|
||||
include ./head.pug
|
||||
include ./config.pug
|
||||
body
|
||||
if theme.fireworks && theme.fireworks.enable
|
||||
canvas.fireworks
|
||||
if (is_post() && page.toc != false && theme.toc.enable)
|
||||
i.fa.fa-arrow-right#toggle-sidebar(aria-hidden="true")
|
||||
include ./sidebar.pug
|
||||
if (!is_post())
|
||||
include ./nav.pug
|
||||
#content-outer
|
||||
block top_img
|
||||
//- !=partial('includes/header.pug', {}, {cache: true})
|
||||
include ./header.pug
|
||||
include ./mobile-sidebar.pug
|
||||
#body-wrap
|
||||
if theme.background
|
||||
- var source = theme.background
|
||||
- var is_photo = source.substring(3,0) === 'url' ? 'photo':'color'
|
||||
#web_bg(data-type=is_photo)
|
||||
if (is_post() && page.toc != false && theme.toc.enable)
|
||||
i.fa.fa-arrow-right#toggle-sidebar(aria-hidden="true")
|
||||
include ./sidebar.pug
|
||||
if (!is_post())
|
||||
#content-inner.layout_page
|
||||
if body
|
||||
div!= body
|
||||
else
|
||||
block content
|
||||
else
|
||||
#content-inner.layout.layout_post
|
||||
if body
|
||||
div!= body
|
||||
else
|
||||
block content
|
||||
footer
|
||||
include ./footer.pug
|
||||
i.fa.fa-arrow-up#go-up(aria-hidden="true")
|
||||
include ./nav.pug
|
||||
main#content-outer
|
||||
block top_img
|
||||
if (!is_post())
|
||||
#content-inner.layout_page
|
||||
if body
|
||||
div!= body
|
||||
else
|
||||
block content
|
||||
else
|
||||
#content-inner.layout.layout_post
|
||||
if body
|
||||
div!= body
|
||||
else
|
||||
block content
|
||||
|
||||
- var footer_bg = theme.footer_bg == false ? '' : bg_img
|
||||
- var is_bg = theme.footer_bg == false ? 'color' : 'photo'
|
||||
footer#footer(style=footer_bg data-type=is_bg)
|
||||
include ./footer.pug
|
||||
include ./rightside.pug
|
||||
if (is_post())
|
||||
include ./post-bottom.pug
|
||||
each item in theme.cdn.js
|
||||
if item !== undefined
|
||||
script(src=url_for(item))
|
||||
if theme.scripts !== undefined && theme.scripts.length > 0
|
||||
//- scripts list from config.yml
|
||||
each url in theme.scripts
|
||||
script(src=url_for(url))
|
||||
each item in theme.CDN_USE.js
|
||||
script(src=url_for(item))
|
||||
include ./additional-js.pug
|
||||
include ./search/index.pug
|
||||
|
||||
|
||||
15
layout/includes/math/index.pug
Normal file
15
layout/includes/math/index.pug
Normal file
@@ -0,0 +1,15 @@
|
||||
if theme.mathjax && theme.mathjax.enable
|
||||
if theme.mathjax.per_page
|
||||
if(!is_tag() && !is_category() && !is_archive() && !is_home())
|
||||
include ./mathjax.pug
|
||||
else
|
||||
if page.mathjax
|
||||
include ./mathjax.pug
|
||||
|
||||
if theme.katex && theme.katex.enable
|
||||
if theme.katex.per_page
|
||||
if(!is_tag() && !is_category() && !is_archive() && !is_home())
|
||||
include ./katex.pug
|
||||
else
|
||||
if page.katex
|
||||
include ./katex.pug
|
||||
7
layout/includes/math/katex.pug
Normal file
7
layout/includes/math/katex.pug
Normal file
@@ -0,0 +1,7 @@
|
||||
link(rel="stylesheet" type="text/css" href=theme.CDN.katex)
|
||||
script(src=url_for(theme.CDN.katex_copytex))
|
||||
link(rel="stylesheet" type="text/css" href=theme.CDN.katex_copytex_css)
|
||||
script.
|
||||
$(function () {
|
||||
$('span.katex-display').wrap('<div class="katex-wrap"></div>')
|
||||
})
|
||||
@@ -24,4 +24,4 @@ script(type="text/x-mathjax-config").
|
||||
}
|
||||
});
|
||||
|
||||
script(src=theme.mathjax.cdn)
|
||||
script(src=theme.CDN.mathjax)
|
||||
18
layout/includes/menu_item.pug
Normal file
18
layout/includes/menu_item.pug
Normal file
@@ -0,0 +1,18 @@
|
||||
each value, label in theme.menu
|
||||
if !Array.isArray(value)
|
||||
.menus_item
|
||||
a.site-page(href=url_for(trim(value.split('||')[0])))
|
||||
i.fa-fw(class=trim(value.split('||')[1]))
|
||||
span=' '+label
|
||||
else
|
||||
.menus_item
|
||||
a.site-page
|
||||
i.fa-fw(class=trim(label.split('||')[1]) aria-hidden="true")
|
||||
span=' '+ trim(label.split('||')[0])
|
||||
i.fa.fa-chevron-down.menus-expand(aria-hidden="true")
|
||||
ul.menus_item_child
|
||||
each i in value
|
||||
li
|
||||
a.site-page(href=url_for(trim(i.split('||')[1])))
|
||||
i.fa-fw(class=trim(i.split('||')[2]))
|
||||
span=' '+trim(i.split('||')[0])
|
||||
41
layout/includes/mixins/UI.pug
Normal file
41
layout/includes/mixins/UI.pug
Normal file
@@ -0,0 +1,41 @@
|
||||
mixin UI_NEW(posts)
|
||||
- posts.each(function(article,index){
|
||||
.recent-post-item.article-container
|
||||
- var link = article.link || article.path
|
||||
if index%2 == 0
|
||||
.post_cover.left_radius
|
||||
a(href=url_for(link) title=article.title || _p('no_title'))
|
||||
- var post_cover = article.cover
|
||||
if theme.lazyload.enable
|
||||
img.post_bg.lazyload(data-src=`${post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
else
|
||||
img.post_bg(src=`${post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
else
|
||||
.post_cover.right_radius
|
||||
a(href=url_for(link) title=article.title || _p('no_title'))
|
||||
- var post_cover = article.cover
|
||||
if theme.lazyload.enable
|
||||
img.post_bg.lazyload(data-src=`${post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
else
|
||||
img.post_bg(src=`${post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
.recent-post-info
|
||||
a.article-title(href=url_for(link) title= article.title || _p('no_title'))= article.title || _p('no_title')
|
||||
if (theme.post_meta.date_type)
|
||||
- var date_type = theme.post_meta.date_type == 'updated' ? 'updated' : 'date'
|
||||
time.post-meta__date #[i.fa.fa-calendar(aria-hidden="true")] #[=date(article[date_type], config.date_format)]
|
||||
if (theme.post_meta.categories && article.categories.data.length > 0)
|
||||
span.article-meta
|
||||
span.article-meta__separator |
|
||||
each item, index in article.categories.data
|
||||
i.fa.fa-inbox.article-meta__icon(aria-hidden="true")
|
||||
a(href=url_for(item.path)).article-meta__categories #[=item.name]
|
||||
if (index < article.categories.data.length - 1)
|
||||
i.fa.fa-angle-right(aria-hidden="true")
|
||||
if theme.auto_excerpt && theme.auto_excerpt.enable
|
||||
- const content = strip_html(article.content)
|
||||
- let expert = content.substring(0, theme.auto_excerpt.length)
|
||||
- content.length > theme.auto_excerpt.length ? expert += ' ...' : ''
|
||||
.content!= expert
|
||||
else
|
||||
.content!= article.description
|
||||
- })
|
||||
@@ -7,6 +7,12 @@ mixin articleSort(posts)
|
||||
- year = tempYear
|
||||
.article-sort-item.year= year
|
||||
.article-sort-item
|
||||
time.article-sort-item__time= date(article.date)
|
||||
a.article-sort-item__title(href=url_for(article.path))= article.title || 'No Title'
|
||||
.article-sort-img
|
||||
a.article-sort-item__img(href=url_for(article.path))
|
||||
img(src=article.cover alt=article.title || 'No Title')
|
||||
.article-sort-post
|
||||
a.article-sort-item__post(href=url_for(article.path))
|
||||
i.fa.fa-clock-o(aria-hidden="true")
|
||||
time.article-sort-item__time= date(article.date)
|
||||
.article-sort-item__title= article.title || 'No Title'
|
||||
- })
|
||||
46
layout/includes/mobile-sidebar.pug
Normal file
46
layout/includes/mobile-sidebar.pug
Normal file
@@ -0,0 +1,46 @@
|
||||
#mobile-sidebar
|
||||
#menu_mask
|
||||
#mobile-sidebar-menus
|
||||
.mobile_author_icon
|
||||
img.avatar-img(src=url_for(theme.avatar) onerror=`onerror=null;src='${theme.lodding_bg.flink}'` alt="avatar")
|
||||
.mobile_post_data
|
||||
if site.posts.length
|
||||
.mobile_data_item.is-center
|
||||
.mobile_data_link
|
||||
a(href=url_for(config.archive_dir) + '/')
|
||||
.headline= _p('aside.articles')
|
||||
.length_num= site.posts.length
|
||||
|
||||
if site.tags.length
|
||||
.mobile_data_item.is-center
|
||||
.mobile_data_link
|
||||
a(href=url_for(config.tag_dir) + '/' )
|
||||
.headline= _p('aside.tags')
|
||||
.length_num= site.tags.length
|
||||
|
||||
if site.categories.length
|
||||
.mobile_data_item.is-center
|
||||
.mobile_data_link
|
||||
a(href=url_for(config.category_dir) + '/')
|
||||
.headline= _p('aside.categories')
|
||||
.length_num= site.categories.length
|
||||
hr
|
||||
.menus_items
|
||||
include menu_item.pug
|
||||
|
||||
|
||||
|
||||
- const showToc = is_post() && page.toc != false && theme.toc.enable
|
||||
-
|
||||
let tocNumber
|
||||
if (page.toc_number !== undefined) tocNumber = page.toc_number
|
||||
else if (theme.toc.number !== undefined) tocNumber = theme.toc.number
|
||||
else tocNumber = true
|
||||
-
|
||||
if (showToc)
|
||||
#mobile-sidebar-toc
|
||||
.toc_mobile_headline= _p('sidebar.catalog')
|
||||
if (page.encrypt == true)
|
||||
.sidebar-toc__content.toc-div-class(style="display:none")!=toc(page.origin,{"class":"toc_mobile_items",list_number:tocNumber})
|
||||
else
|
||||
.sidebar-toc__content!=toc(page.content,{"class":"toc_mobile_items",list_number:tocNumber})
|
||||
@@ -1,14 +1,9 @@
|
||||
if (is_archive())
|
||||
- var top_img = theme.archive_img ||theme.top_img || config.top_img
|
||||
else
|
||||
- var top_img = page.top_img||theme.top_img || config.top_img
|
||||
|
||||
- var bg_img = top_img && top_img !== true ? `background-image: url(${top_img})` : ''
|
||||
|
||||
|
||||
if is_home()
|
||||
nav#nav.full_page(style=bg_img)
|
||||
include ./header.pug
|
||||
#site-info
|
||||
#site-title
|
||||
span.blogtitle= page.title || page.tag || page.category || config.title
|
||||
@@ -19,14 +14,13 @@ if is_home()
|
||||
#site-social-icons
|
||||
each url, icon in theme.social
|
||||
a.social-icon(href=url target="_blank")
|
||||
i(class=icon)
|
||||
i(class=icon aria-hidden="true")
|
||||
|
||||
.scroll-down
|
||||
i.fa.fa-angle-down.scroll-down-effects
|
||||
|
||||
else
|
||||
nav#nav.bg_local(style=bg_img)
|
||||
include ./header.pug
|
||||
nav#nav.not_index_bg(style=bg_img)
|
||||
#page_site-info
|
||||
#site-title
|
||||
if (is_archive())
|
||||
|
||||
6
layout/includes/page_tag.pug
Normal file
6
layout/includes/page_tag.pug
Normal file
@@ -0,0 +1,6 @@
|
||||
- site.tags.sort('path').each(function (tags){
|
||||
- var fontSize = Math.floor(Math.random() * 15 + 15) + "px"; //15 ~ 30
|
||||
- var color = "rgb(" + Math.floor(Math.random() * 201) + ", " + Math.floor(Math.random() * 201) +", " + Math.floor(Math.random() * 201) +")"; // 0,0,0 -> 200,200,200
|
||||
|
||||
a(href=url_for(tags.path) style='font-size:' + fontSize + ';color:' + color)=tags.name
|
||||
-})
|
||||
@@ -1,8 +1,9 @@
|
||||
-
|
||||
var options = {
|
||||
prev_text: '<i class="fa fa-chevron-left"></i>',
|
||||
next_text: '<i class="fa fa-chevron-right"></i>',
|
||||
mid_size: 1
|
||||
prev_text: '<i class="fa fa-fw fa-chevron-left" aria-hidden="true"></i>',
|
||||
next_text: '<i class="fa fa-fw fa-chevron-right" aria-hidden="true"></i>',
|
||||
mid_size: 1,
|
||||
escape: false
|
||||
}
|
||||
|
||||
if(!is_post())
|
||||
@@ -13,11 +14,11 @@ else
|
||||
nav#pagination.pagination_post
|
||||
if(page.prev)
|
||||
if(page.next)
|
||||
.prev-post.pull-left
|
||||
- var pagination_cover = page.prev.cover || random_cover()
|
||||
.prev-post.pull_left
|
||||
- var pagination_cover = page.prev.cover
|
||||
a(href=url_for(page.prev.path))
|
||||
if theme.lazyload.enable
|
||||
img.prev_cover.lozad(data-src=`${pagination_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'` )
|
||||
img.prev_cover.lazyload(data-src=`${pagination_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'` )
|
||||
else
|
||||
img.prev_cover(src=`${pagination_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'` )
|
||||
|
||||
@@ -26,10 +27,10 @@ else
|
||||
span=page.prev.title
|
||||
else
|
||||
.prev-post.pull-full
|
||||
- var pagination_cover = page.prev.cover || random_cover()
|
||||
- var pagination_cover = page.prev.cover
|
||||
a(href=url_for(page.prev.path))
|
||||
if theme.lazyload.enable
|
||||
img.prev_cover.lozad(data-src=`${pagination_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
img.prev_cover.lazyload(data-src=`${pagination_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
else
|
||||
img.prev_cover(src=`${pagination_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
.label=_p('pagination.prev')
|
||||
@@ -38,11 +39,11 @@ else
|
||||
|
||||
if(page.next)
|
||||
if(page.prev)
|
||||
.next-post.pull-right
|
||||
- var pagination_cover = page.next.cover || random_cover()
|
||||
.next-post.pull_right
|
||||
- var pagination_cover = page.next.cover
|
||||
a(href=url_for(page.next.path))
|
||||
if theme.lazyload.enable
|
||||
img.next_cover.lozad(data-src=`${pagination_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
img.next_cover.lazyload(data-src=`${pagination_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
else
|
||||
img.next_cover(src=`${pagination_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
.label=_p('pagination.next')
|
||||
@@ -50,10 +51,10 @@ else
|
||||
span=page.next.title
|
||||
else
|
||||
.next-post.pull-full
|
||||
- var pagination_cover = page.next.cover || random_cover()
|
||||
- var pagination_cover = page.next.cover
|
||||
a(href=url_for(page.next.path))
|
||||
if theme.lazyload.enable
|
||||
img.next_cover.lozad(data-src=`${pagination_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
img.next_cover.lazyload(data-src=`${pagination_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
else
|
||||
img.next_cover(src=`${pagination_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
.label=_p('pagination.next')
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#post_bottom
|
||||
#post_bottom_items
|
||||
a#to_comment(href="#post-comment")
|
||||
i.scroll_to_comment.fa.fa-comments
|
||||
i#mobile_toc.fa.fa-list
|
||||
#toc_mobile
|
||||
.toc_mobile_headline= _p('sidebar.catalog')
|
||||
!=toc(page.content,{"class":"toc_mobile_items"})
|
||||
@@ -1,38 +1,25 @@
|
||||
each article , index in page.posts.data
|
||||
.recent-post-item.article-container
|
||||
- var link = article.link || article.path
|
||||
- var title = article.title || _p('no_title')
|
||||
if index%2 == 0
|
||||
.post_cover.is_left
|
||||
a(href=url_for(link) title=article.title || _p('no_title'))
|
||||
.post_cover.left_radius
|
||||
a(href=url_for(link) title=title)
|
||||
- var post_cover = article.cover
|
||||
- var default_post_cover = random_cover()
|
||||
if (post_cover)
|
||||
if theme.lazyload.enable
|
||||
img.post_bg.lozad(data-src=`${post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
else
|
||||
img.post_bg(src=`${post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
if theme.lazyload.enable
|
||||
img.post_bg.lazyload(data-src=`${post_cover}` onerror=`this.onerror=null;this.src='`+ url_for(theme.lodding_bg.post_page) + `'` alt=title)
|
||||
else
|
||||
if theme.lazyload.enable
|
||||
img.post_bg.lozad(data-src=`${default_post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
else
|
||||
img.post_bg(src=`${default_post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
img.post_bg(src=`${post_cover}` onerror=`this.onerror=null;this.src='`+ url_for(theme.lodding_bg.post_page) + `'` alt=title)
|
||||
else
|
||||
.post_cover.is_right
|
||||
a(href=url_for(link) title=article.title || _p('no_title'))
|
||||
.post_cover.right_radius
|
||||
a(href=url_for(link) title=title)
|
||||
- var post_cover = article.cover
|
||||
- var default_post_cover = random_cover()
|
||||
if (post_cover)
|
||||
if theme.lazyload.enable
|
||||
img.post_bg.lozad(data-src=`${post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
else
|
||||
img.post_bg(src=`${post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
if theme.lazyload.enable
|
||||
img.post_bg.lazyload(data-src=`${post_cover}` onerror=`this.onerror=null;this.src='`+ url_for(theme.lodding_bg.post_page) + `'` alt=title)
|
||||
else
|
||||
if theme.lazyload.enable
|
||||
img.post_bg.lozad(data-src=`${default_post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
else
|
||||
img.post_bg(src=`${default_post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'`)
|
||||
img.post_bg(src=`${post_cover}` onerror=`this.onerror=null;this.src='`+ url_for(theme.lodding_bg.post_page) + `'` alt=title)
|
||||
.recent-post-info
|
||||
a.article-title(href=url_for(link) title= article.title || _p('no_title'))= article.title || _p('no_title')
|
||||
a.article-title(href=url_for(link) title=title)= title
|
||||
if (article.top)
|
||||
span.article-meta
|
||||
i.fa.fa-thumb-tack.article-meta__icon.sticky
|
||||
@@ -49,21 +36,11 @@ each article , index in page.posts.data
|
||||
a(href=url_for(item.path)).article-meta__categories #[=item.name]
|
||||
if (index < article.categories.data.length - 1)
|
||||
i.fa.fa-angle-right(aria-hidden="true")
|
||||
//- if (theme.post_meta.tags && article.tags.data.length > 0)
|
||||
//- span.article-meta.tags
|
||||
//- span.article-meta__separator |
|
||||
//- each item, index in article.tags.data
|
||||
//- i.fa.fa-tag.article-meta__icon(aria-hidden="true")
|
||||
//- a(href=url_for(item.path)).article-meta__tags #[=item.name]
|
||||
//- if (index < article.tags.data.length - 1)
|
||||
//- span.article-meta__link -
|
||||
if theme.auto_excerpt && theme.auto_excerpt.enable
|
||||
- const content = strip_html(article.content)
|
||||
- let expert = content.substring(0, theme.auto_excerpt.length)
|
||||
- content.length > theme.auto_excerpt.length ? expert += ' ...' : ''
|
||||
.content!= expert
|
||||
.more_setting
|
||||
a.more.more--border.more--primary.more--animated(href=url_for(link) + '#more' style="margin-top: 14px")= _p('read_more')
|
||||
else
|
||||
.content!= article.description
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
.post-reward
|
||||
a.reward-buttom
|
||||
a.reward-button.button--primary.button--animated
|
||||
i.fa.fa-qrcode
|
||||
= ' ' + _p('donate')
|
||||
.reward-main
|
||||
ul.reward-all
|
||||
each item in theme.reward.QR_code
|
||||
li.reward-item
|
||||
img.lozad.post-qr-code__img(src=(item.itemlist||item).img)
|
||||
img.lazyload.post-qr-code__img(src=url_for((item.itemlist||item).img) alt=(item.itemlist||item).text)
|
||||
.post-qr-code__desc=(item.itemlist||item).text
|
||||
|
||||
|
||||
@@ -1,9 +1,21 @@
|
||||
section#rightside.rightside
|
||||
if theme.readmode.enable && is_post()
|
||||
i#readmode.fa.fa-book(title=_p('rightside.readmode_title'))
|
||||
i#font_plus.fa.fa-plus(title=_p('rightside.font_plus_title'))
|
||||
i#font_minus.fa.fa-minus(title=_p('rightside.font_minus_title'))
|
||||
if theme.translate && theme.translate.enable
|
||||
a#translateLink.translate_chn_to_cht(href="javascript:translatePage();" title=_p('rightside.translate_title'))= theme.translate.default
|
||||
if theme.nightshift.enable
|
||||
i#nightshift.fa.fa-moon-o.nightshift(title=_p('rightside.night_mode_title'))
|
||||
#rightside-config-hide
|
||||
if theme.readmode.enable && is_post()
|
||||
i#readmode.fa.fa-book(title=_p('rightside.readmode_title'))
|
||||
if is_post()
|
||||
i#font_plus.fa.fa-plus(title=_p('rightside.font_plus_title'))
|
||||
i#font_minus.fa.fa-minus(title=_p('rightside.font_minus_title'))
|
||||
if theme.translate && theme.translate.enable
|
||||
a#translateLink.translate_chn_to_cht(href="javascript:translatePage();" title=_p('rightside.translate_title') target="_self")= theme.translate.default
|
||||
if theme.darkmode && theme.darkmode.enable
|
||||
- var display_mode = theme.display_mode == 'dark' ? 'fa fa-sun-o' : 'fa fa-moon-o'
|
||||
i#darkmode.darkmode(class=display_mode title=_p('rightside.night_mode_title'))
|
||||
#rightside-config-show
|
||||
#rightside_config(title=_p("rightside.setting"))
|
||||
i.fa.fa-cog(aria-hidden="true")
|
||||
if is_post() && page.comments !== false && (d || l || gt || v)
|
||||
a#to_comment(href="#post-comment" title=_p("rightside.scroll_to_comment"))
|
||||
i.scroll_to_comment.fa.fa-comments
|
||||
if is_post() && page.toc != false && theme.toc.enable
|
||||
i#mobile-toc-button.fa.fa-list-ul.close(title=_p("rightside.toc") aria-hidden="true")
|
||||
i.fa.fa-arrow-up#go-up(title=_p("rightside.back_to_top") aria-hidden="true")
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
a(class="a2a_button_" + name)
|
||||
|
||||
a.a2a_dd(href="https://www.addtoany.com/share")
|
||||
script(async src="https://static.addtoany.com/menu/page.js")
|
||||
script(async src=url_for(theme.CDN.addtoany))
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if (theme.sharejs && theme.sharejs.enable)
|
||||
.social-share(data-image= page.cover|| theme.avatar data-sites= theme.sharejs.sites)
|
||||
link(rel="stylesheet" href="https://cdn.jsdelivr.net/npm/social-share.js@1.0.16/dist/css/share.min.css")
|
||||
script(src="https://cdn.jsdelivr.net/npm/social-share.js@1.0.16/dist/js/social-share.min.js")
|
||||
link(rel="stylesheet" href=url_for(theme.CDN.sharejs_css))
|
||||
script(src=url_for(theme.CDN.sharejs))
|
||||
@@ -16,5 +16,9 @@
|
||||
span.progress-notice= _p('sidebar.have_read')
|
||||
span.progress-num 0
|
||||
span.progress-percentage %
|
||||
div.sidebar-toc__progress-bar
|
||||
div.sidebar-toc__content!=toc(page.content, {list_number: tocNumber})
|
||||
div.sidebar-toc__progress-bar
|
||||
if (page.encrypt == true)
|
||||
div.sidebar-toc__content.toc-div-class(style="display:none")!=toc(page.origin, {list_number: tocNumber})
|
||||
else
|
||||
div.sidebar-toc__content!=toc(page.content, {list_number: tocNumber})
|
||||
|
||||
1
layout/includes/third-party/canvas-nest.pug
vendored
Normal file
1
layout/includes/third-party/canvas-nest.pug
vendored
Normal file
@@ -0,0 +1 @@
|
||||
script#canvas_nest(color=theme.canvas_nest.color opacity=theme.canvas_nest.opacity zIndex=theme.canvas_nest.zIndex count=theme.canvas_nest.count mobile=`${theme.canvas_nest.mobile}` src=url_for(theme.CDN.canvas_nest))
|
||||
@@ -1 +1 @@
|
||||
script(id="ribbon" src=url_for('https://cdn.jsdelivr.net/gh/jerryc127/CDN@latest/js/piao.js'))
|
||||
script(id="ribbon_piao" mobile=`${theme.canvas_ribbon_piao.mobile}` src=url_for(theme.CDN.canvas_ribbon_piao))
|
||||
@@ -1,3 +1,3 @@
|
||||
script(id="ribbon" src=url_for('/js/third-party/canvas-ribbon.js') size=theme.canvas_ribbon.size
|
||||
alpha=theme.canvas_ribbon.alpha zIndex=theme.canvas_ribbon.zIndex data-click=`${theme.canvas_ribbon.click_to_change}`)
|
||||
script(id="ribbon" src=url_for(theme.CDN.canvas_ribbon) size=theme.canvas_ribbon.size
|
||||
alpha=theme.canvas_ribbon.alpha zIndex=theme.canvas_ribbon.zIndex mobile=`${theme.canvas_ribbon.mobile}` data-click=`${theme.canvas_ribbon.click_to_change}`)
|
||||
|
||||
|
||||
7
layout/includes/third-party/katex.pug
vendored
7
layout/includes/third-party/katex.pug
vendored
@@ -1,7 +0,0 @@
|
||||
link(rel="stylesheet" type="text/css" href=theme.katex.cdn.css)
|
||||
script(src='https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.js')
|
||||
link(rel="stylesheet" type="text/css" href='https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.css')
|
||||
script.
|
||||
$(function () {
|
||||
$('span.katex-display').wrap('<div class="katex-wrap"></div>')
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
.card_widget.card-announcement
|
||||
.card-widget.card-announcement
|
||||
.card-content
|
||||
.item_headline
|
||||
.item-headline
|
||||
i.fa.fa-bullhorn.card-announcement-animation(aria-hidden="true")
|
||||
span= _p('aside.card_announcement')
|
||||
.announcement_content= theme.announcement.content
|
||||
@@ -1,6 +1,6 @@
|
||||
.card_widget.card-archives
|
||||
.card-widget.card-archives
|
||||
.card-content
|
||||
.item_headline
|
||||
.item-headline
|
||||
i.fa.fa-archive(aria-hidden="true")
|
||||
span= _p('aside.card_archives')
|
||||
div.archives_item!= list_archives({type:'monthly',format: 'YYYY年MM月'})
|
||||
!= list_archives({type:'monthly',format: 'YYYY年MM月'})
|
||||
|
||||
@@ -1,41 +1,36 @@
|
||||
.card_widget.card-author
|
||||
.card-widget.card-info
|
||||
.card-content
|
||||
.post_data
|
||||
.data-item.text-center
|
||||
img.lozad(src=theme.avatar || url_for('/img/avatar.png') onerror=`onerror=null;src='${theme.lodding_bg.flink}'`)
|
||||
p.author-info__name.text-center= config.author
|
||||
p.author-info__description.text-center= config.description
|
||||
.card-info-avatar.is-center
|
||||
img.avatar-img(src=url_for(theme.avatar) onerror=`this.onerror=null;this.src='` + url_for(theme.lodding_bg.flink) + `'` alt="avatar")
|
||||
.author-info__name= config.author
|
||||
.author-info__description= config.description
|
||||
|
||||
.post_data.data_config
|
||||
.card-info-data
|
||||
if site.posts.length
|
||||
.data-item.text-center
|
||||
.data_link
|
||||
a(href=url_for(config.archive_dir) + '/')
|
||||
p.headline= _p('aside.articles')
|
||||
p.length_num= site.posts.length
|
||||
.card-info-data-item.is-center
|
||||
a(href=url_for(config.archive_dir) + '/')
|
||||
.headline= _p('aside.articles')
|
||||
.length_num= site.posts.length
|
||||
|
||||
if site.tags.length
|
||||
.data-item.text-center
|
||||
.data_link
|
||||
a(href=url_for(config.tag_dir) + '/' )
|
||||
p.headline= _p('aside.tags')
|
||||
p.length_num= site.tags.length
|
||||
.card-info-data-item.is-center
|
||||
a(href=url_for(config.tag_dir) + '/' )
|
||||
.headline= _p('aside.tags')
|
||||
.length_num= site.tags.length
|
||||
|
||||
if site.categories.length
|
||||
.data-item.text-center
|
||||
.data_link
|
||||
a(href=url_for(config.category_dir) + '/')
|
||||
p.headline= _p('aside.categories')
|
||||
p.length_num= site.categories.length
|
||||
.card-info-data-item.is-center
|
||||
a(href=url_for(config.category_dir) + '/')
|
||||
.headline= _p('aside.categories')
|
||||
.length_num= site.categories.length
|
||||
|
||||
.post_data.text-center
|
||||
a#bookmark-it.data-item.bookmark.bookmarke--primary.bookmark--animated(href="javascript:;" title= _p('aside.card_bookmark') )= _p('aside.card_bookmark') || 'Follow Me'
|
||||
|
||||
|
||||
.card-info-bookmark.is-center
|
||||
a#bookmark-it.bookmark.button--primary.button--animated(href="javascript:;" title= _p('aside.card_bookmark') target="_self")
|
||||
i.fa.fa-bookmark(aria-hidden="true")
|
||||
span= _p('aside.card_bookmark') || 'Follow Me'
|
||||
|
||||
if(theme.social)
|
||||
.post_data.data_config
|
||||
#aside-social-icons
|
||||
.card-info-social-icons.is-center
|
||||
each url, icon in theme.social
|
||||
a.social-icon.data-item(href=url target="_blank")
|
||||
i(class=icon)
|
||||
a.social-icon(href=url target="_blank")
|
||||
i(class=icon aria-hidden="true")
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
if site.categories.length
|
||||
.card_widget.card-categories
|
||||
.card-widget.card-categories
|
||||
.card-content
|
||||
.item_headline
|
||||
.item-headline
|
||||
i.fa.fa-folder-open(aria-hidden="true")
|
||||
span= _p('aside.card_categories')
|
||||
ul.aside_category_item
|
||||
ul.aside-category-item
|
||||
mixin displayCategories(parent = undefined)
|
||||
- site.categories.find({ parent }).sort("name").each(function(category) {
|
||||
- var childCount = site.categories.find({ parent: category._id }).count();
|
||||
li.aside_category_list
|
||||
a.aside_category_list_link(href=url_for(category.path))
|
||||
span.aside_category_list_name= category.name
|
||||
span.aside_category_list_length= category.length
|
||||
li.aside-category-list
|
||||
a.aside-category-list_link(href=url_for(category.path))
|
||||
span.aside-category-list_name= category.name
|
||||
span.aside-category-list_length= category.length
|
||||
|
||||
if childCount > 0
|
||||
ul.aside_category_item.child
|
||||
ul.aside-category-item.child
|
||||
+displayCategories(category._id)
|
||||
- })
|
||||
|
||||
|
||||
@@ -1,30 +1,24 @@
|
||||
.card_widget.card-recent-post
|
||||
.card-widget.card-recent-post
|
||||
.card-content
|
||||
.item_headline
|
||||
.item-headline
|
||||
i.fa.fa-history(aria-hidden="true")
|
||||
span= _p('aside.card_recent_post')
|
||||
.aside_recent_item
|
||||
.aside-recent-item
|
||||
- site.posts.sort('date', -1).limit(5).each(function(article){
|
||||
.aside_recent_post
|
||||
.aside-recent-post
|
||||
- var link = article.link || article.path
|
||||
- var title = article.title || _p('no_title')
|
||||
a(href=url_for(link))
|
||||
- var post_cover = article.cover
|
||||
- var default_post_cover = random_cover()
|
||||
.aside_post_cover
|
||||
if (post_cover)
|
||||
if theme.lazyload.enable
|
||||
img.aside_post_bg.lozad(data-src=`${post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'` title=article.title || _p('no_title'))
|
||||
else
|
||||
img.aside_post_bg(src=`${post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'` title=article.title || _p('no_title'))
|
||||
.aside-post-cover
|
||||
if theme.lazyload.enable
|
||||
img.aside-post-bg.lazyload(data-src=`${post_cover}` onerror=`this.onerror=null;this.src='`+ url_for(theme.lodding_bg.post_page) + `'` title=title alt=title)
|
||||
else
|
||||
if theme.lazyload.enable
|
||||
img.aside_post_bg.lozad(data-src=`${default_post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'` title=article.title || _p('no_title'))
|
||||
else
|
||||
img.aside_post_bg(src=`${default_post_cover}` onerror=`onerror=null;src='${theme.lodding_bg.post_page}'` title=article.title || _p('no_title'))
|
||||
div#aside_title
|
||||
.aside_post_title(href=url_for(link) title=article.title || _p('no_title'))= article.title || _p('no_title')
|
||||
img.aside-post-bg(src=`${post_cover}` onerror=`this.onerror=null;this.src='`+ url_for(theme.lodding_bg.post_page) + `'` title=title alt=title)
|
||||
.aside-post-title
|
||||
.aside-post_title(href=url_for(link) title=article.title || _p('no_title'))= article.title || _p('no_title')
|
||||
if (theme.post_meta.date_type)
|
||||
- var date_type = theme.post_meta.date_type == 'updated' ? 'updated' : 'date'
|
||||
time.aside_post_meta.post-meta__date #[=date(article[date_type], config.date_format)]
|
||||
time.aside-post_meta.post-meta__date #[=date(article[date_type], config.date_format)]
|
||||
|
||||
- })
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
if site.tags.length
|
||||
.card_widget.card-tags
|
||||
.card-widget.card-tags
|
||||
.card-content
|
||||
.item_headline
|
||||
.item-headline
|
||||
i.fa.fa-tags(aria-hidden="true")
|
||||
span= _p('aside.card_tags')
|
||||
.card-tag-cloud!= tagcloud({min_font: 16, max_font: 24, amount: 200, color: true, start_color: '#999', end_color: '#000'})
|
||||
.card-tag-cloud!= tagcloud({min_font: 16, max_font: 24, amount: 200, color: true, start_color: '#999', end_color: '#99a9bf'})
|
||||
|
||||
@@ -1,24 +1,22 @@
|
||||
.card_widget.card-webinfo
|
||||
.card-widget.card-webinfo
|
||||
.card-content
|
||||
.item_headline
|
||||
.item-headline
|
||||
i.fa.fa-line-chart(aria-hidden="true")
|
||||
span= _p('aside.card_webinfo.headline')
|
||||
.webinfo
|
||||
.webinfo_item
|
||||
.webinfo_article_name= _p('aside.card_webinfo.article_name') + " :"
|
||||
.webinfo_article_count= site.posts.length
|
||||
.webinfo-item
|
||||
.webinfo-article-name= _p('aside.card_webinfo.article_name') + " :"
|
||||
.webinfo-article-count= site.posts.length
|
||||
if theme.runtimeshow.enable
|
||||
.webinfo_item
|
||||
.webinfo_runtime_name= _p('aside.card_webinfo.runtime_name') + " :"
|
||||
#webinfo_runtime_count.webinfo_runtime_count
|
||||
script#runtionshow(src=url_for('js/runtimeshow.js') start_date=theme.runtimeshow.start_date)
|
||||
|
||||
.webinfo-item
|
||||
.webinfo-runtime-name= _p('aside.card_webinfo.runtime_name') + " :"
|
||||
#webinfo-runtime-count.webinfo-runtime-count(start_date=theme.runtimeshow.start_date)
|
||||
if theme.busuanzi.site_uv
|
||||
.webinfo_item
|
||||
.webinfo_site_uv_name= _p('aside.card_webinfo.site_uv_name') + " :"
|
||||
.webinfo_site_uv_count#busuanzi_value_site_uv
|
||||
.webinfo-item
|
||||
.webinfo-site-uv-name= _p('aside.card_webinfo.site_uv_name') + " :"
|
||||
.webinfo-site-uv-count#busuanzi_value_site_uv
|
||||
if theme.busuanzi.site_pv
|
||||
.webinfo_item
|
||||
.webinfo_site_name= _p('aside.card_webinfo.site_pv_name') + " :"
|
||||
.webinfo_site_pv_count#busuanzi_value_site_pv
|
||||
.webinfo-item
|
||||
.webinfo-site-name= _p('aside.card_webinfo.site_pv_name') + " :"
|
||||
.webinfo-site-pv-count#busuanzi_value_site_pv
|
||||
|
||||
|
||||
21
layout/includes/widget/index.pug
Normal file
21
layout/includes/widget/index.pug
Normal file
@@ -0,0 +1,21 @@
|
||||
if theme.aside.card_author
|
||||
include ./card_author.pug
|
||||
|
||||
if theme.aside.card_announcement
|
||||
include ./card_announcement.pug
|
||||
|
||||
if theme.aside.card_recent_post
|
||||
include ./card_recent_post.pug
|
||||
|
||||
if theme.aside.card_categories
|
||||
include ./card_categories.pug
|
||||
|
||||
if theme.aside.card_tags
|
||||
include ./card_tags.pug
|
||||
|
||||
if theme.aside.card_archives
|
||||
include ./card_archives.pug
|
||||
|
||||
if theme.aside.card_webinfo
|
||||
include ./card_webinfo.pug
|
||||
|
||||
@@ -5,4 +5,4 @@ block content
|
||||
include includes/recent-posts.pug
|
||||
include includes/pagination.pug
|
||||
#aside_content.aside_content
|
||||
include includes/aside.pug
|
||||
include includes/widget/index.pug
|
||||
@@ -6,18 +6,19 @@ block content
|
||||
.tag-cloud__title= _p('page.tag')
|
||||
| -
|
||||
span.tag-cloud__amount= site.tags.length
|
||||
.tag-cloud-tags!= tags(site.tags)
|
||||
.tag-cloud-tags
|
||||
include includes/page_tag.pug
|
||||
if page.comments !== false
|
||||
include includes/comments/index.pug
|
||||
#aside_content.aside_content
|
||||
include includes/aside.pug
|
||||
include includes/widget/index.pug
|
||||
|
||||
else if page.type === 'link'
|
||||
include flink.pug
|
||||
if page.comments !== false
|
||||
include includes/comments/index.pug
|
||||
#aside_content.aside_content
|
||||
include includes/aside.pug
|
||||
include includes/widget/index.pug
|
||||
else if page.type === 'categories'
|
||||
#post-content.category-content
|
||||
.category-lists
|
||||
@@ -28,7 +29,7 @@ block content
|
||||
if page.comments !== false
|
||||
include includes/comments/index.pug
|
||||
#aside_content.aside_content
|
||||
include includes/aside.pug
|
||||
include includes/widget/index.pug
|
||||
else
|
||||
article#page
|
||||
h1= page.title
|
||||
@@ -37,4 +38,4 @@ block content
|
||||
if page.comments !== false
|
||||
include includes/comments/index.pug
|
||||
#aside_content.aside_content
|
||||
include includes/aside.pug
|
||||
include includes/widget/index.pug
|
||||
|
||||
@@ -1,51 +1,77 @@
|
||||
extends includes/layout.pug
|
||||
|
||||
block top_img
|
||||
- var top_img = page.top_img || page.cover || theme.post_meta.top_img || theme.post_img || theme.top_img || config.top_img
|
||||
- var top_img = page.top_img || page.cover || theme.post_meta.top_img || theme.default_top_img
|
||||
- var bg_img = top_img !== true ? `background-image: url(${top_img})` : ''
|
||||
div#top-container(style=bg_img)
|
||||
include ./includes/header.pug
|
||||
#post-info
|
||||
#post-title
|
||||
.posttitle=page.title || _p('no_title')
|
||||
.posttitle= page.title || _p('no_title')
|
||||
#post-meta
|
||||
if (theme.post_meta.date_type)
|
||||
if (theme.post_meta.date_type === 'both')
|
||||
time.post-meta__date
|
||||
i.fa.fa-calendar(aria-hidden="true")
|
||||
i.fa.fa-calendar.fa-fw(aria-hidden="true")
|
||||
=' '+_p('post.created')+' '+date(page.date, config.date_format)
|
||||
span.post-meta__separator |
|
||||
i.fa.fa-history(aria-hidden="true")
|
||||
i.fa.fa-history.fa-fw(aria-hidden="true")
|
||||
=' '+_p('post.updated')+' '+date(page.updated, config.date_format)
|
||||
else
|
||||
- var date_type = theme.post_meta.date_type === 'updated' ? 'updated' : 'date'
|
||||
time.post-meta__date #[i.fa.fa-calendar(aria-hidden="true")] #[=date(page[date_type], config.date_format)]
|
||||
time.post-meta__date #[i.fa.fa-calendar.fa-fw(aria-hidden="true")] #[=date(page[date_type], config.date_format)]
|
||||
|
||||
if (theme.post_meta.categories && page.categories.data.length > 0)
|
||||
if (theme.post_meta.date_type)
|
||||
span.post-meta__separator.mobile_hidden |
|
||||
span.mobile_hidden
|
||||
span.post-meta__separator |
|
||||
span
|
||||
each item, index in page.categories.data
|
||||
i.fa.fa-inbox.post-meta__icon(aria-hidden="true")
|
||||
i.fa.fa-inbox.post-meta__icon.fa-fw(aria-hidden="true")
|
||||
a(href=url_for(item.path)).post-meta__categories #[=item.name]
|
||||
if (index < page.categories.data.length - 1)
|
||||
i.fa.fa-angle-right(aria-hidden="true")
|
||||
if (theme.wordcount && theme.wordcount.enable)
|
||||
.post-meta-wordcount
|
||||
span= _p('post.wordcount') + ': '
|
||||
i.fa.fa-angle-right.fa-fw(aria-hidden="true")
|
||||
.post-meta-wordcount
|
||||
if (theme.wordcount && theme.wordcount.enable)
|
||||
i.fa.fa-file-word-o.post-meta__icon.fa-fw(aria-hidden="true")
|
||||
span= _p('post.wordcount') + ':'
|
||||
span.word-count= wordcount(page.content)
|
||||
span.post-meta__separator |
|
||||
i.fa.fa-clock-o.post-meta__icon.fa-fw(aria-hidden="true")
|
||||
span= _p('post.min2read', min2read(page.content, {cn: 350, en: 160}))
|
||||
if theme.busuanzi.page_pv
|
||||
.post-meta-pv-cv
|
||||
if (theme.wordcount && theme.wordcount.enable && theme.busuanzi.page_pv)
|
||||
span.post-meta__separator |
|
||||
span= _p('post.page_pv') + ': '
|
||||
if theme.busuanzi.page_pv
|
||||
span
|
||||
i.fa.fa-eye.post-meta__icon.fa-fw(aria-hidden="true")
|
||||
=_p('post.page_pv') + ':'
|
||||
span#busuanzi_value_page_pv
|
||||
if (theme.disqus && theme.disqus.enable && theme.disqus.count && page.comments !== false)
|
||||
if (theme.busuanzi && theme.busuanzi.page_pv)
|
||||
span.post-meta__separator |
|
||||
i.fa.fa-comment-o.post-meta__icon.fa-fw(aria-hidden="true")
|
||||
span= _p('post.comments') + ':'
|
||||
a(href=url_for(page.path) + '#post-comment')
|
||||
span.disqus-comment-count(data-disqus-url=page.permalink)
|
||||
if (theme.valine && theme.valine.enable && theme.valine.count && page.comments !== false)
|
||||
if (theme.busuanzi && theme.busuanzi.page_pv)
|
||||
span.post-meta__separator |
|
||||
i.fa.fa-comments-o.post-meta__icon.fa-fw(aria-hidden="true")
|
||||
span= _p('post.comments') + ':'
|
||||
a(href=url_for(page.path) + '#post-comment' itemprop="discussionUrl")
|
||||
span.valine-comment-count.comment-count(data-xid=url_for(page.path) itemprop="commentCount")
|
||||
if (theme.gitalk && theme.gitalk.enable && theme.gitalk.count && page.comments !== false)
|
||||
if (theme.busuanzi && theme.busuanzi.page_pv)
|
||||
span.post-meta__separator |
|
||||
i.fa.fa-comments-o.post-meta__icon.fa-fw(aria-hidden="true")
|
||||
span= _p('post.comments') + ':'
|
||||
a(href=url_for(page.path) + '#post-comment')
|
||||
span.gitalk-comment-count.comment-count
|
||||
|
||||
|
||||
block content
|
||||
article#post(class="")
|
||||
#post-content.article-container!= page.content
|
||||
if (theme.post_copyright && theme.post_copyright.enable)
|
||||
if (theme.post_copyright && theme.post_copyright.enable && page.copyright != false)
|
||||
.post-copyright
|
||||
.post-copyright__author
|
||||
span.post-copyright-meta= _p('post.copyright.author') + ": "
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
extends includes/layout.pug
|
||||
|
||||
block content
|
||||
include ./includes/mixins/article-sort.pug
|
||||
#tag
|
||||
.article-sort-title= _p('page.tag') + ' - ' + page.tag
|
||||
+articleSort(page.posts)
|
||||
include includes/pagination.pug
|
||||
#aside_content.aside_content
|
||||
include includes/aside.pug
|
||||
if theme.tag_ui == 'index'
|
||||
include ./includes/mixins/UI.pug
|
||||
#recent-posts.recent-posts
|
||||
+UI_NEW(page.posts)
|
||||
include includes/pagination.pug
|
||||
#aside_content.aside_content
|
||||
include includes/widget/index.pug
|
||||
else
|
||||
include ./includes/mixins/article-sort.pug
|
||||
#tag
|
||||
.article-sort-title= _p('page.tag') + ' - ' + page.tag
|
||||
+articleSort(page.posts)
|
||||
include includes/pagination.pug
|
||||
#aside_content.aside_content
|
||||
include includes/widget/index.pug
|
||||
|
||||
5
package.json
Normal file
5
package.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "hexo-theme-butterfly",
|
||||
"version": "2.1.0",
|
||||
"description": "A Hexo Theme: Butterfly"
|
||||
}
|
||||
@@ -1,16 +1,6 @@
|
||||
hexo.extend.tag.register('gallery', args => {
|
||||
const url = args[0]
|
||||
const title = args[1] || 'No title'
|
||||
return `
|
||||
<div
|
||||
class="gallery-item"
|
||||
style="background-image: url('${url}')"
|
||||
data-title="${title}"
|
||||
data-url="${url}"
|
||||
>
|
||||
<div class="gallery-item__title">
|
||||
${title}
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
function gallery(args, content) {
|
||||
return `<div class="justified-gallery">${hexo.render.renderSync({text: content, engine: 'markdown'})}
|
||||
</div>`;
|
||||
}
|
||||
|
||||
hexo.extend.tag.register('gallery', gallery, {ends: true});
|
||||
63
scripts/hide_post.js
Normal file
63
scripts/hide_post.js
Normal file
@@ -0,0 +1,63 @@
|
||||
/**
|
||||
* global hexo
|
||||
* from printempw/hexo-hide-posts
|
||||
* modify by Jerry
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var public_generators = [];
|
||||
|
||||
hexo.extend.filter.register('before_generate', function () {
|
||||
this._bindLocals();
|
||||
|
||||
const all_posts = this.locals.get('posts');
|
||||
const hidden_posts = all_posts.find({
|
||||
'hide': true
|
||||
});
|
||||
const normal_posts = all_posts.filter(post => !post['hide']);
|
||||
|
||||
this.locals.set('all_posts', all_posts);
|
||||
this.locals.set('hidden_posts', hidden_posts);
|
||||
this.locals.set('posts', normal_posts);
|
||||
});
|
||||
|
||||
hexo.extend.filter.register('after_init', function () {
|
||||
|
||||
const original = {};
|
||||
for (const name in hexo.extend.generator.list()) {
|
||||
original[name] = hexo.extend.generator.get(name);
|
||||
}
|
||||
|
||||
hexo.extend.generator.register('post', async function (locals) {
|
||||
const fg = original.post.bind(this);
|
||||
|
||||
const generated_public = await fg(locals);
|
||||
const generated_hidden = await fg(Object.assign({}, locals, {
|
||||
posts: locals.hidden_posts
|
||||
}));
|
||||
|
||||
// Remove post.prev and post.next for hidden posts
|
||||
generated_hidden.forEach(ele => {
|
||||
ele.data.prev = ele.data.next = null;
|
||||
});
|
||||
|
||||
return generated_public.concat(generated_hidden);
|
||||
});
|
||||
|
||||
// Then we hack into other generators if necessary
|
||||
public_generators.filter(
|
||||
name => Object.keys(original).includes(name)
|
||||
).forEach(name => {
|
||||
// Overwrite original generator
|
||||
hexo.extend.generator.register(name, function (locals) {
|
||||
const fg = original[name].bind(this);
|
||||
|
||||
return fg(Object.assign({}, locals, {
|
||||
posts: new locals.posts.constructor(
|
||||
locals.posts.data.concat(locals.hidden_posts.data)
|
||||
)
|
||||
}));
|
||||
});
|
||||
});
|
||||
});
|
||||
57
scripts/highlight.js
Normal file
57
scripts/highlight.js
Normal file
@@ -0,0 +1,57 @@
|
||||
'use strict';
|
||||
hexo.extend.filter.register('after_post_render', data => {
|
||||
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
const $ = cheerio.load(data.content, {
|
||||
decodeEntities: false
|
||||
});
|
||||
var theme = hexo.theme.config;
|
||||
|
||||
if (theme.highlight_shrink === 'none' && !theme.highlight_lang && !theme.highlight_copy) {
|
||||
return;
|
||||
}
|
||||
|
||||
$('figure.highlight').wrap('<div class="code-area-wrap"></div>')
|
||||
var $highlight_layout = $('<div class="highlight-tools"></div>')
|
||||
|
||||
$('figure').before($highlight_layout)
|
||||
|
||||
if (theme.highlight_shrink == true) {
|
||||
var $code_expand = $('<i class="fa fa-angle-down code-expand code-closed" aria-hidden="true"></i>')
|
||||
$('.highlight-tools').append($code_expand)
|
||||
} else if (theme.highlight_shrink === false) {
|
||||
var $code_expand = $('<i class="fa fa-angle-down code-expand" aria-hidden="true"></i>')
|
||||
$('.highlight-tools').append($code_expand)
|
||||
}
|
||||
|
||||
if (theme.highlight_lang) {
|
||||
var $highlight_lang = $('<div class="code_lang"></div>')
|
||||
$('.highlight-tools').append($highlight_lang)
|
||||
var lang_name_index;
|
||||
var lang_name;
|
||||
$('figure').each(function () {
|
||||
lang_name_index = lang_name = $(this).attr('class').split(' ')[1];
|
||||
if (lang_name_index == 'js')
|
||||
lang_name = 'Javascript'
|
||||
if (lang_name_index == 'md')
|
||||
lang_name = 'Markdown'
|
||||
if (lang_name_index == 'plain')
|
||||
lang_name = 'Code'
|
||||
if (lang_name_index == 'py')
|
||||
lang_name = 'Python'
|
||||
|
||||
$(this).prev().find(".code_lang").text(lang_name)
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
if (theme.highlight_copy) {
|
||||
var $copyIcon = $('<i class="fa fa-clipboard" aria-hidden="true"></i>')
|
||||
var $notice = $('<div class="copy-notice"></div>')
|
||||
$('.highlight-tools').append($notice)
|
||||
$('.highlight-tools').append($copyIcon)
|
||||
}
|
||||
|
||||
data.content = $.html();
|
||||
}, 100);
|
||||
103
scripts/list_archives.js
Normal file
103
scripts/list_archives.js
Normal file
@@ -0,0 +1,103 @@
|
||||
"use strict";
|
||||
|
||||
hexo.extend.helper.register("list_archives", function(options = {}) {
|
||||
const { config } = this;
|
||||
const archiveDir = config.archive_dir;
|
||||
const { timezone } = config;
|
||||
const lang = this.page.lang || this.page.language || config.language;
|
||||
let { format } = options;
|
||||
const type = options.type || "monthly";
|
||||
const { style = "list", transform, separator = ", " } = options;
|
||||
const showCount = Object.prototype.hasOwnProperty.call(options, "show_count")
|
||||
? options.show_count
|
||||
: true;
|
||||
const order = options.order || -1;
|
||||
const limit = 8;
|
||||
let result = "";
|
||||
|
||||
var more_button;
|
||||
if (lang === "zh-CN") {
|
||||
more_button = "查看更多";
|
||||
} else if (lang === "zh-TW") {
|
||||
more_button = "查看更多";
|
||||
} else {
|
||||
more_button = "More";
|
||||
}
|
||||
|
||||
if (!format) {
|
||||
format = type === "monthly" ? "MMMM YYYY" : "YYYY";
|
||||
}
|
||||
|
||||
const posts = this.site.posts.sort("date", order);
|
||||
if (!posts.length) return result;
|
||||
|
||||
const data = [];
|
||||
let length = 0;
|
||||
|
||||
posts.forEach(post => {
|
||||
// Clone the date object to avoid pollution
|
||||
let date = post.date.clone();
|
||||
|
||||
if (timezone) date = date.tz(timezone);
|
||||
if (lang) date = date.locale(lang);
|
||||
|
||||
const year = date.year();
|
||||
const month = date.month() + 1;
|
||||
const name = date.format(format);
|
||||
const lastData = data[length - 1];
|
||||
|
||||
if (!lastData || lastData.name !== name) {
|
||||
length = data.push({
|
||||
name,
|
||||
year,
|
||||
month,
|
||||
count: 1
|
||||
});
|
||||
} else {
|
||||
lastData.count++;
|
||||
}
|
||||
});
|
||||
|
||||
const link = item => {
|
||||
let url = `${archiveDir}/${item.year}/`;
|
||||
|
||||
if (type === "monthly") {
|
||||
if (item.month < 10) url += "0";
|
||||
url += `${item.month}/`;
|
||||
}
|
||||
|
||||
return this.url_for(url);
|
||||
};
|
||||
|
||||
result += `<ul class="archive-list">`;
|
||||
|
||||
for (let i = 0, len = data.length; i < Math.min(len, limit); i++) {
|
||||
const item = data[i];
|
||||
|
||||
result += `<li class="archive-list-item">`;
|
||||
|
||||
result += `<a class="archive-list-link" href="${link(item)}">`;
|
||||
result += `<span class="archive-list-date">`;
|
||||
result += transform ? transform(item.name) : item.name;
|
||||
result += `</span>`;
|
||||
|
||||
if (showCount) {
|
||||
result += `<span class="archive-list-count">${item.count}</span>`;
|
||||
}
|
||||
result += "</a>";
|
||||
result += "</li>";
|
||||
}
|
||||
|
||||
if (data.length > limit) {
|
||||
result += `<li class="archive-list-item">`;
|
||||
result +=
|
||||
`<a class="archive-list-link-more" href="` +
|
||||
"/" +
|
||||
`${archiveDir}" >`;
|
||||
result += more_button;
|
||||
result += "</a>";
|
||||
result += "</li>";
|
||||
}
|
||||
result += "</ul>";
|
||||
return result;
|
||||
});
|
||||
53
scripts/photo.js
Normal file
53
scripts/photo.js
Normal file
@@ -0,0 +1,53 @@
|
||||
'use strict'
|
||||
hexo.extend.filter.register('after_post_render', data => {
|
||||
const theme = hexo.theme.config;
|
||||
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
const $ = cheerio.load(data.content, { decodeEntities: false });
|
||||
|
||||
const images = $('img').not($('a>img'));
|
||||
|
||||
if (theme.fancybox.enable) {
|
||||
images.each((i, o) => {
|
||||
var lazyload_src = $(o).attr('src') ? $(o).attr('src') : $(o).attr("data-src")
|
||||
var alt = $(o).attr('alt')
|
||||
if (alt !== undefined) {
|
||||
$(o).attr('title', alt)
|
||||
}
|
||||
var $a = $(
|
||||
'<a href="' +
|
||||
lazyload_src +
|
||||
'" data-fancybox="group" data-caption="' +
|
||||
$(o).attr('alt') +
|
||||
'" class="fancybox"></a>'
|
||||
)
|
||||
$(o).wrap($a)
|
||||
});
|
||||
|
||||
}
|
||||
if (theme.medium_zoom.enable) {
|
||||
images.each((i, o) => {
|
||||
$(o).addClass('mediumZoom')
|
||||
})
|
||||
|
||||
var imgList = $(".justified-gallery img")
|
||||
if (imgList.length) {
|
||||
imgList.each((i, o) => {
|
||||
var $a = $('<div></div>')
|
||||
$(o).wrap($a)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
if (!theme.medium_zoom.enable && !theme.fancybox.enable) {
|
||||
var imgList = $(".justified-gallery > p >img")
|
||||
if (imgList.length) {
|
||||
imgList.each((i, o) => {
|
||||
$(o).wrap('<div></div>')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
data.content = $.html();
|
||||
}, 100);
|
||||
@@ -1,20 +1,25 @@
|
||||
'use strict';
|
||||
let cheerio;
|
||||
const url_for = require('hexo-util').url_for.bind(hexo);
|
||||
|
||||
hexo.extend.filter.register('after_post_render', data => {
|
||||
var theme = hexo.theme.config;
|
||||
var bg = theme.lodding_bg.post;
|
||||
if (!theme.lazyload.enable) return;
|
||||
|
||||
if (!cheerio) cheerio = require('cheerio');
|
||||
const cheerio = require('cheerio');
|
||||
|
||||
const $ = cheerio.load(data.content, {decodeEntities: false});
|
||||
const images = $('img');
|
||||
const images = $('img').not($('.justified-gallery img'));
|
||||
if (!images.length) return;
|
||||
|
||||
images.each((i, o) => {
|
||||
let src = $(o).attr('src');
|
||||
$(o).attr('data-src', src).removeAttr('src');
|
||||
$(o).addClass('lozad');
|
||||
if (bg){
|
||||
$(o).attr('src',url_for(bg))
|
||||
}
|
||||
$(o).addClass('lazyload');
|
||||
});
|
||||
|
||||
data.content = $.html();
|
||||
}, 0);
|
||||
}, 100);
|
||||
@@ -1,4 +1,9 @@
|
||||
hexo.extend.helper.register('random_cover', function () {
|
||||
hexo.extend.filter.register('before_post_render', function(data){
|
||||
data.cover = data.cover || random_cover()
|
||||
return data;
|
||||
});
|
||||
|
||||
var random_cover = function () {
|
||||
var cover;
|
||||
var num;
|
||||
if (!Array.isArray(hexo.theme.config.default_cover)) {
|
||||
@@ -10,4 +15,4 @@ hexo.extend.helper.register('random_cover', function () {
|
||||
return cover
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
@@ -1,3 +1,10 @@
|
||||
const moment = require('moment-timezone');
|
||||
const {
|
||||
isMoment
|
||||
} = moment;
|
||||
|
||||
|
||||
|
||||
hexo.extend.helper.register('related_posts', function (currentPost, allPosts) {
|
||||
var relatedPosts = [];
|
||||
currentPost.tags.forEach(function (tag) {
|
||||
@@ -7,7 +14,9 @@ hexo.extend.helper.register('related_posts', function (currentPost, allPosts) {
|
||||
title: post.title,
|
||||
path: post.path,
|
||||
cover: post.cover,
|
||||
weight: 1
|
||||
weight: 1,
|
||||
updated: post.updated,
|
||||
created: post.created
|
||||
};
|
||||
var index = findItem(relatedPosts, 'path', post.path);
|
||||
if (index != -1) {
|
||||
@@ -20,80 +29,93 @@ hexo.extend.helper.register('related_posts', function (currentPost, allPosts) {
|
||||
};
|
||||
});
|
||||
});
|
||||
if (relatedPosts.length == 0) { return '' };
|
||||
if (relatedPosts.length == 0) {
|
||||
return ''
|
||||
};
|
||||
var result = "";
|
||||
var limit_num = hexo.theme.config.related_post.limit || 6
|
||||
var lang = hexo.theme.config.rootConfig.language;
|
||||
const hexoConfig = hexo.theme.config.rootConfig;
|
||||
const config = hexo.theme.config;
|
||||
|
||||
var limit_num = config.related_post.limit || 6
|
||||
var lang = hexoConfig.language;
|
||||
var date_type = config.related_post.date_type || 'created'
|
||||
var headline_lang;
|
||||
if (lang === 'zh-CN') {
|
||||
headline_lang = '相关推荐';
|
||||
} else if ( lang === 'zh-TW') {
|
||||
} else if (lang === 'zh-TW') {
|
||||
headline_lang = '相關推薦';
|
||||
} else {
|
||||
headline_lang = 'Recommend';
|
||||
}
|
||||
|
||||
|
||||
relatedPosts = relatedPosts.sort(compare('weight'));
|
||||
var lazy_src = hexo.theme.config.lazyload.enable ? lazy_src = 'data-src' : lazy_src = 'src'
|
||||
var lazy_class = hexo.theme.config.lazyload.enable ? lazy_class = 'lozad' : lazy_class = ''
|
||||
var lazy_src = config.lazyload.enable ? lazy_src = 'data-src' : lazy_src = 'src'
|
||||
var lazy_class = config.lazyload.enable ? lazy_class = 'lazyload' : lazy_class = ''
|
||||
|
||||
if (relatedPosts.length > 0) {
|
||||
result += '<div class="relatedPosts">'
|
||||
result += '<div class="relatedPosts_headline"><i class="fa fa-fw fa-thumbs-up" aria-hidden="true"></i><span>' + ' ' + headline_lang + '</span></div>'
|
||||
result += '<div class="relatedPosts_list">'
|
||||
|
||||
for (var i = 0; i < Math.min(relatedPosts.length, limit_num); i++) {
|
||||
|
||||
var cover = relatedPosts[i].cover || random_cover()
|
||||
|
||||
result += '<div class="relatedPosts_item"><a href="' + hexo.theme.config.rootConfig.root + relatedPosts[i].path + '" title="' + relatedPosts[i].title + '">';
|
||||
result += '<img class="relatedPosts_cover '+ lazy_class + '"' + lazy_src + '="' + cover + '">';
|
||||
result += '<div class="relatedPosts_title">' + relatedPosts[i].title + '</div>';
|
||||
result += '</a></div>'
|
||||
for (var i = 0; i < Math.min(relatedPosts.length, limit_num); i++) {
|
||||
|
||||
var cover = relatedPosts[i].cover
|
||||
|
||||
result += '<div class="relatedPosts_item"><a href="' + hexoConfig.root + relatedPosts[i].path + '" title="' + relatedPosts[i].title + '">';
|
||||
result += '<img class="relatedPosts_cover ' + lazy_class + '"' + lazy_src + '="' + cover + '">';
|
||||
if (date_type == 'created') {
|
||||
result += '<div class="relatedPosts_main is-center"><div class="relatedPosts_date"><i class="fa fa-calendar fa-fw" aria-hidden="true"></i>' + ' ' + dateHelper(relatedPosts[i].created) + '</div>'
|
||||
} else {
|
||||
result += '<div class="relatedPosts_main"><div class="relatedPosts_date"><i class="fa fa-history fa-fw" aria-hidden="true"></i>' + ' ' + dateHelper(relatedPosts[i].updated) + '</div>'
|
||||
}
|
||||
result += '<div class="relatedPosts_title">' + relatedPosts[i].title + '</div>';
|
||||
result += '</div></a></div>'
|
||||
};
|
||||
|
||||
result += '</div><div class="clear_both"></div></div>'
|
||||
return result;
|
||||
|
||||
}
|
||||
result += '</div><div class="clear_both"></div></div>'
|
||||
return result;
|
||||
|
||||
}
|
||||
});
|
||||
hexo.extend.helper.register('echo', function(path){
|
||||
return path;
|
||||
hexo.extend.helper.register('echo', function (path) {
|
||||
return path;
|
||||
});
|
||||
function isTagRelated (tagName, TBDtags) {
|
||||
|
||||
function isTagRelated(tagName, TBDtags) {
|
||||
var result = false;
|
||||
TBDtags.forEach(function (tag) {
|
||||
if (tagName == tag.name) {
|
||||
result = true;
|
||||
};
|
||||
if (tagName == tag.name) {
|
||||
result = true;
|
||||
};
|
||||
})
|
||||
return result;
|
||||
}
|
||||
function findItem (arrayToSearch, attr, val) {
|
||||
|
||||
function findItem(arrayToSearch, attr, val) {
|
||||
for (var i = 0; i < arrayToSearch.length; i++) {
|
||||
if (arrayToSearch[i][attr] == val) {
|
||||
return i
|
||||
};
|
||||
if (arrayToSearch[i][attr] == val) {
|
||||
return i
|
||||
};
|
||||
};
|
||||
return -1;
|
||||
}
|
||||
function compare (attr) {
|
||||
|
||||
function compare(attr) {
|
||||
return function (a, b) {
|
||||
var val1 = a[attr];
|
||||
var val2 = b[attr];
|
||||
return val2 - val1;
|
||||
var val1 = a[attr];
|
||||
var val2 = b[attr];
|
||||
return val2 - val1;
|
||||
}
|
||||
}
|
||||
|
||||
function random_cover() {
|
||||
var post_cover;
|
||||
var num;
|
||||
if (!Array.isArray(hexo.theme.config.default_cover)) {
|
||||
post_cover = hexo.theme.config.default_cover
|
||||
return post_cover
|
||||
} else {
|
||||
num = Math.floor(Math.random() * (hexo.theme.config.default_cover.length));
|
||||
post_cover = hexo.theme.config.default_cover[num];
|
||||
return post_cover
|
||||
}
|
||||
function dateHelper(date) {
|
||||
const moment = getMoment(date, hexo.theme.config.rootConfig.language);
|
||||
return moment.format(hexo.theme.config.rootConfig.date_format);
|
||||
}
|
||||
|
||||
function getMoment(date, lang) {
|
||||
if (date == null) date = moment();
|
||||
if (!isMoment(date)) date = moment(isDate(date) ? date : new Date(date));
|
||||
if (lang) date = date.locale(lang);
|
||||
return date;
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
hexo.extend.helper.register('tags', function (site_tags) {
|
||||
var result = "";
|
||||
site_tags.sort('path').each(function (tags) {
|
||||
var fontSize = Math.floor(Math.random() * 15 + 15) + "px"; //15 ~ 30
|
||||
var color =
|
||||
"rgb(" +
|
||||
Math.floor(Math.random() * 201) +
|
||||
", " +
|
||||
Math.floor(Math.random() * 201) +
|
||||
", " +
|
||||
Math.floor(Math.random() * 201) +
|
||||
")"; // 0,0,0 -> 200,200,200
|
||||
result += '<a href="' + hexo.theme.config.rootConfig.root + tags.path + '" style="font-size:' + fontSize + ';color:' + color + '">' + tags.name + '</a>'
|
||||
})
|
||||
return result;
|
||||
})
|
||||
@@ -4,15 +4,26 @@ html
|
||||
|
||||
body
|
||||
position: relative
|
||||
display: flex
|
||||
flex-direction: column
|
||||
min-height: 100%
|
||||
background: #fff
|
||||
background: $white
|
||||
color: $font-black
|
||||
font-size: $font-size
|
||||
font-family: $font-family
|
||||
line-height: $text-line-height
|
||||
|
||||
if !hexo-config('copy.enable')
|
||||
user-select: none
|
||||
-moz-user-select: none
|
||||
-webkit-user-select: none
|
||||
-ms-user-select: none
|
||||
|
||||
#body-wrap
|
||||
position: relative
|
||||
display: flex
|
||||
flex: 1 auto
|
||||
flex-direction: column
|
||||
transition: all .5s
|
||||
|
||||
*::-webkit-scrollbar
|
||||
width: 8px
|
||||
height: 8px
|
||||
@@ -23,6 +34,17 @@ body
|
||||
*::-webkit-scrollbar-track
|
||||
background-color: transparent
|
||||
|
||||
#web_bg
|
||||
position: fixed
|
||||
z-index: -999
|
||||
width: 100%
|
||||
height: 100%
|
||||
background: $web-bg
|
||||
background-attachment: local
|
||||
background-position: center
|
||||
background-size: cover
|
||||
background-repeat: no-repeat
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
@@ -30,11 +52,11 @@ h4,
|
||||
h5,
|
||||
h6
|
||||
position: relative
|
||||
margin: 0.2rem 0
|
||||
margin: 1rem 0 .7rem
|
||||
color: lighten($font-color, 15%)
|
||||
font-weight: bold
|
||||
|
||||
code
|
||||
code
|
||||
font-size: inherit !important
|
||||
|
||||
#content-outer
|
||||
@@ -43,34 +65,16 @@ h6
|
||||
*
|
||||
box-sizing: border-box
|
||||
|
||||
#content-inner
|
||||
.img-alt
|
||||
text-decoration: none
|
||||
color: $a-link-color
|
||||
|
||||
#toggle-sidebar
|
||||
position: fixed
|
||||
bottom: $sidebar-icon-top
|
||||
left: $sidebar-icon-left
|
||||
z-index: 100
|
||||
font-size: $sidebar-icon-size
|
||||
cursor: pointer
|
||||
transition: all 0.2s
|
||||
opacity: 0
|
||||
|
||||
#go-up
|
||||
position: fixed
|
||||
right: $go-up-right
|
||||
bottom: $go-up-bottom
|
||||
font-size: $sidebar-icon-size
|
||||
opacity: 0
|
||||
cursor: pointer
|
||||
transition: all .2s
|
||||
|
||||
.fancybox-caption
|
||||
text-align: center
|
||||
|
||||
|
||||
hr
|
||||
position: relative
|
||||
margin: 2rem auto
|
||||
@@ -93,9 +97,12 @@ hr
|
||||
font-size: 20px
|
||||
transition: all 1s ease-in-out
|
||||
|
||||
iframe
|
||||
margin: 0 0 1rem
|
||||
|
||||
// collapse/expand beautify
|
||||
details
|
||||
padding: 0.3rem
|
||||
padding: .3rem
|
||||
border: 2px solid darken($light-grey, 10%)
|
||||
|
||||
summary
|
||||
@@ -104,13 +111,14 @@ details
|
||||
// set <caption> of <figure> to center-align
|
||||
// use class="not-code" to avoid conflicts because code also use <figure> tag
|
||||
.not-code
|
||||
margin: 0.5em
|
||||
padding: 0.5em
|
||||
margin: .5em
|
||||
padding: .5em
|
||||
border: thin silver solid
|
||||
text-align: center
|
||||
|
||||
table
|
||||
overflow: auto
|
||||
margin: 0 0 1rem
|
||||
width: 100%
|
||||
border-spacing: 0
|
||||
border-collapse: collapse
|
||||
@@ -120,7 +128,7 @@ table
|
||||
|
||||
th,
|
||||
td
|
||||
padding: 0.3rem 0.6rem
|
||||
padding: .3rem .6rem
|
||||
border: 1px solid darken($light-grey, 10%)
|
||||
vertical-align: top
|
||||
|
||||
@@ -128,14 +136,239 @@ table
|
||||
background: $selection
|
||||
color: $pale-grey
|
||||
|
||||
.text-center
|
||||
// 字體
|
||||
.full_page #site-title,
|
||||
.full_page #site-sub-title,
|
||||
#site-name,
|
||||
#aside_content .author-info__name,
|
||||
#aside_content .author-info__description
|
||||
font-family: $site-name-font
|
||||
|
||||
.is_right
|
||||
text-align: right
|
||||
|
||||
.is_left
|
||||
text-align: left
|
||||
|
||||
.is-center
|
||||
text-align: center
|
||||
.pull-left
|
||||
|
||||
.is_visible
|
||||
display: block !important
|
||||
|
||||
.is_invisible
|
||||
display: none !important
|
||||
|
||||
.is_hidden
|
||||
overflow: hidden
|
||||
|
||||
.pull_left
|
||||
float: left
|
||||
|
||||
.pull-right
|
||||
.pull_right
|
||||
float: right
|
||||
|
||||
// button hover
|
||||
.button--primary
|
||||
color: $ruby
|
||||
|
||||
.button--animated
|
||||
transition-duration: 1s
|
||||
transition-property: color
|
||||
|
||||
&:before
|
||||
position: absolute
|
||||
top: 0
|
||||
right: 0
|
||||
bottom: 0
|
||||
left: 0
|
||||
z-index: -1
|
||||
background: $ruby
|
||||
content: ''
|
||||
transition-timing-function: ease-out
|
||||
transition-duration: .5s
|
||||
transition-property: transform
|
||||
transform: scaleX(0)
|
||||
transform-origin: 0 50%
|
||||
|
||||
&:hover
|
||||
&:before
|
||||
transition-timing-function: cubic-bezier(.45, 1.64, .47, .66)
|
||||
transform: scaleX(1)
|
||||
|
||||
// third-party
|
||||
.fireworks
|
||||
position: fixed
|
||||
z-index: -1
|
||||
z-index: 99999
|
||||
pointer-events: none
|
||||
|
||||
img[src=''],
|
||||
img:not([src])
|
||||
opacity: 0
|
||||
|
||||
.justified-gallery
|
||||
margin: 1rem 0
|
||||
|
||||
img
|
||||
opacity: 0
|
||||
|
||||
.fancybox
|
||||
width: auto
|
||||
text-align: inherit
|
||||
|
||||
.img-alt
|
||||
display: none
|
||||
|
||||
.medium-zoom-image--opened
|
||||
z-index: 99999 !important
|
||||
margin: 0 !important
|
||||
|
||||
.medium-zoom-overlay
|
||||
z-index: 99999 !important
|
||||
|
||||
// hexo tag video
|
||||
.video-container
|
||||
position: relative
|
||||
overflow: hidden
|
||||
margin-bottom: .8rem
|
||||
padding-top: 56.25%
|
||||
height: 0
|
||||
|
||||
iframe
|
||||
position: absolute
|
||||
top: 0
|
||||
left: 0
|
||||
margin-top: 0
|
||||
width: 100%
|
||||
height: 100%
|
||||
|
||||
.layout_page,
|
||||
.layout_post,
|
||||
#footer
|
||||
animation: main 1s
|
||||
|
||||
#nav,
|
||||
#top-container
|
||||
animation: header 1s
|
||||
|
||||
#site-title
|
||||
animation: titlescale 1s
|
||||
|
||||
canvas,
|
||||
#web_bg
|
||||
animation: to_show 4s
|
||||
|
||||
.card-announcement-animation
|
||||
color: #FF0000
|
||||
animation: announ_animation .8s linear infinite
|
||||
|
||||
.scroll-down-effects
|
||||
animation: scroll-down-effect 1.5s infinite
|
||||
|
||||
if hexo-config('avatar_effect') == true
|
||||
.avatar-img
|
||||
animation: avatar_turn_around 2s linear infinite
|
||||
|
||||
.reward-main
|
||||
animation: donate_effcet .3s .1s ease both
|
||||
|
||||
@keyframes scroll-down-effect
|
||||
0%
|
||||
top: 0
|
||||
opacity: .4
|
||||
|
||||
50%
|
||||
top: -16px
|
||||
opacity: 1
|
||||
|
||||
100%
|
||||
top: 0
|
||||
opacity: .4
|
||||
|
||||
@keyframes header
|
||||
0%
|
||||
opacity: 0
|
||||
transform: translateY(-50px)
|
||||
|
||||
100%
|
||||
opacity: 1
|
||||
transform: translateY(0)
|
||||
|
||||
@keyframes headerNoOpacity
|
||||
0%
|
||||
transform: translateY(-50px)
|
||||
|
||||
100%
|
||||
transform: translateY(0)
|
||||
|
||||
@keyframes main
|
||||
0%
|
||||
opacity: 0
|
||||
transform: translateY(50px)
|
||||
|
||||
100%
|
||||
opacity: 1
|
||||
transform: translateY(0)
|
||||
|
||||
@keyframes titlescale
|
||||
0%
|
||||
opacity: 0
|
||||
transform: scale(.7)
|
||||
|
||||
100%
|
||||
opacity: 1
|
||||
transform: scale(1)
|
||||
|
||||
@keyframes search_close
|
||||
0%
|
||||
opacity: 1
|
||||
transform: scale(1)
|
||||
|
||||
100%
|
||||
opacity: 0
|
||||
transform: scale(.7)
|
||||
|
||||
@keyframes to_show
|
||||
0%
|
||||
opacity: 0
|
||||
|
||||
100%
|
||||
opacity: 1
|
||||
|
||||
@keyframes avatar_turn_around
|
||||
from
|
||||
transform: rotate(0)
|
||||
|
||||
to
|
||||
transform: rotate(360deg)
|
||||
|
||||
@keyframes sub_menus
|
||||
0%
|
||||
opacity: 0
|
||||
transform: translateY(10px)
|
||||
|
||||
100%
|
||||
opacity: 1
|
||||
transform: translateY(0)
|
||||
|
||||
@keyframes donate_effcet
|
||||
0%
|
||||
opacity: 0
|
||||
transform: translateY(-20px)
|
||||
|
||||
100%
|
||||
opacity: 1
|
||||
transform: translateY(0)
|
||||
|
||||
@keyframes announ_animation
|
||||
0%,
|
||||
to
|
||||
transform: scale(1)
|
||||
|
||||
50%
|
||||
transform: scale(1.2)
|
||||
|
||||
@media screen and (max-width: $bg)
|
||||
i#toggle-sidebar,
|
||||
#sidebar
|
||||
@@ -143,214 +376,3 @@ table
|
||||
|
||||
body
|
||||
padding-left: 0 !important
|
||||
|
||||
|
||||
|
||||
// valine
|
||||
#vcomment
|
||||
font-size: inherit
|
||||
|
||||
input
|
||||
font-size: 0.65rem
|
||||
|
||||
button
|
||||
font-size: .7rem
|
||||
padding: .3rem 1rem
|
||||
background-color: $light-blue
|
||||
color: #fff
|
||||
border-color: #fff
|
||||
|
||||
textarea
|
||||
font-size: 0.7rem
|
||||
background: url(/img/comment_bg.png) 100% 100% no-repeat
|
||||
|
||||
.info
|
||||
display: none
|
||||
|
||||
.vimg
|
||||
border: 0
|
||||
|
||||
&:hover
|
||||
-moz-transform: rotate(540deg)
|
||||
-o-transform: rotate(540deg)
|
||||
-webkit-transform: rotate(540deg)
|
||||
transform: rotate(540deg)
|
||||
.vcount
|
||||
font-size: 0.775rem
|
||||
|
||||
.vnum
|
||||
font-size: 1.1rem
|
||||
|
||||
.vnick
|
||||
font-size: 100%
|
||||
|
||||
.vsys
|
||||
font-size: 70%
|
||||
|
||||
.vtime
|
||||
font-size: .65rem
|
||||
|
||||
.vcontent
|
||||
font-size: 100%
|
||||
|
||||
.vat
|
||||
font-size: .7125rem;
|
||||
color: $cyan;
|
||||
border: 1px solid $cyan;
|
||||
padding: 0 .8rem;
|
||||
border-radius: 5px;
|
||||
|
||||
|
||||
#site-title, #site-sub-title,
|
||||
#site-name,
|
||||
#aside_content .author-info__name,
|
||||
#aside_content .author-info__description
|
||||
font-family: $site-name-font
|
||||
|
||||
|
||||
|
||||
#rightside
|
||||
right: -38px
|
||||
position: fixed
|
||||
bottom: 30px
|
||||
padding-bottom: 32px
|
||||
opacity: 0
|
||||
transition: all .2s
|
||||
|
||||
#readmode,#font_plus,#font_minus
|
||||
width: 30px
|
||||
height: 30px
|
||||
background-color: $light-blue
|
||||
color: #e3e8ee
|
||||
text-align: center
|
||||
line-height: 29px
|
||||
font-size: 16px
|
||||
display: block
|
||||
margin-bottom: 2px
|
||||
cursor: pointer
|
||||
text-decoration: none
|
||||
|
||||
#font_minus,#font_plus
|
||||
display: none
|
||||
|
||||
.translate_chn_to_cht
|
||||
width: 30px
|
||||
height: 30px
|
||||
background-color: $light-blue
|
||||
color: #e3e8ee
|
||||
text-align: center
|
||||
line-height: 29px
|
||||
font-size: 16px
|
||||
display: block
|
||||
margin-bottom: 2px
|
||||
cursor: pointer
|
||||
text-decoration: none
|
||||
|
||||
.nightshift
|
||||
width: 30px
|
||||
height: 30px
|
||||
background-color: $light-blue
|
||||
color: #e3e8ee
|
||||
text-align: center
|
||||
font-size: 17px
|
||||
display: block
|
||||
margin-bottom: 2px
|
||||
cursor: pointer
|
||||
padding-top: 6px
|
||||
|
||||
|
||||
a
|
||||
&:hover
|
||||
color: white
|
||||
&:after
|
||||
color: white
|
||||
|
||||
|
||||
|
||||
.comment_headling
|
||||
font-size: 20px
|
||||
font-weight: 700
|
||||
margin-bottom: 10px
|
||||
|
||||
|
||||
// bookmark 樣式
|
||||
.fc-container .fancybox-bg {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.fancybox-is-open.fc-container .fancybox-bg {
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
.fc-content {
|
||||
margin: 20px;
|
||||
max-width: 550px;
|
||||
padding: 50px;
|
||||
box-shadow: 10px 10px 60px -25px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.fc-content h3 {
|
||||
margin-top: 0;
|
||||
font-size: 1.6em;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
.fc-content p {
|
||||
color: #666;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.fc-content p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Custom animation */
|
||||
.fancybox-fx-material.fancybox-slide--previous,
|
||||
.fancybox-fx-material.fancybox-slide--next {
|
||||
transform: translateY(-60px) scale(1.1);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.fancybox-fx-material.fancybox-slide--current {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
|
||||
.bookmark-ok
|
||||
background: #FF6666;
|
||||
border-width: 0;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
padding: 7px 20px;
|
||||
line-height: 1.5;
|
||||
border-radius: 20px;
|
||||
text-transform: uppercase;
|
||||
font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
font-size: 80%;
|
||||
font-weight: 700;
|
||||
margin: 5px 5px 5px 0;
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
transition: all .2s ease-in-out;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
|
||||
.tright
|
||||
text-align: right
|
||||
|
||||
.is_visible
|
||||
display: block !important
|
||||
|
||||
.fireworks
|
||||
position: fixed
|
||||
z-index: -1
|
||||
pointer-events: none
|
||||
|
||||
|
||||
// 去掉加載黑框
|
||||
img[src=""],img:not([src])
|
||||
opacity: 0
|
||||
|
||||
@@ -1,27 +1,13 @@
|
||||
// https://github.com/equinusocio/vsc-material-theme
|
||||
@require "theme"
|
||||
@require "diff"
|
||||
@require 'theme'
|
||||
@require 'diff'
|
||||
|
||||
// languages = "js" "javascript" "python" "ruby" "xml" "html" "css" "perl" "sql" "coffeescript" "java" "scala" "kotlin" "c" "c\+\+" "go" "less" "sass" "scss" "stylus" "styl" "typescript" "ts" "bash" "yml" "yaml" "gradle" "groovy" "ejs" "swig" "markdown"
|
||||
wordWrap = !hexo-config("rootConfig.highlight.line_number") && hexo-config("code_word_wrap")
|
||||
wordWrap = !hexo-config('rootConfig.highlight.line_number') && hexo-config('code_word_wrap')
|
||||
|
||||
// loopForLanguages()
|
||||
// for lang in languages
|
||||
// .article-container
|
||||
// figure.highlight
|
||||
// &{"." + lang}
|
||||
// table
|
||||
// &:before
|
||||
// content: lang
|
||||
|
||||
// loopForLanguages()
|
||||
|
||||
// Placeholder: $code-block
|
||||
$code-block
|
||||
overflow: auto
|
||||
margin: 1rem 0
|
||||
margin: 0 0 1rem
|
||||
padding: 0
|
||||
padding-top: 1.4rem
|
||||
background: $highlight-background
|
||||
color: $highlight-foreground
|
||||
font-size: $code-font-size
|
||||
@@ -31,15 +17,34 @@ $code-block
|
||||
counter-reset: line
|
||||
white-space: pre-wrap
|
||||
|
||||
.code-area-wrap
|
||||
position: relative
|
||||
margin: 0 0 1rem
|
||||
|
||||
figure.highlight
|
||||
position: relative
|
||||
|
||||
blockquote
|
||||
margin: 0
|
||||
padding: 0.1rem 0.8rem
|
||||
border-left: 0.2rem solid $blockquote-padding-color
|
||||
margin: 0 0 1rem
|
||||
padding: .1rem .8rem
|
||||
border-left: .2rem solid $blockquote-padding-color
|
||||
background-color: lighten($blockquote-padding-color, 33)
|
||||
color: $blockquote-color
|
||||
background-color: lighten($blockquote-padding-color,33)
|
||||
|
||||
a
|
||||
word-break: break-all
|
||||
|
||||
p
|
||||
margin: 0 !important
|
||||
padding: .5rem 0
|
||||
|
||||
footer
|
||||
padding: 0 0 .5rem
|
||||
|
||||
cite
|
||||
&:before
|
||||
padding: 0 .3em
|
||||
content: '—'
|
||||
|
||||
.article-container
|
||||
pre,
|
||||
@@ -47,7 +52,7 @@ blockquote
|
||||
font-family: $code-font !important
|
||||
|
||||
code
|
||||
padding: 0.1rem 0.2rem
|
||||
padding: .1rem .2rem
|
||||
background: $code-background
|
||||
color: $code-foreground
|
||||
word-wrap: break-word
|
||||
@@ -55,6 +60,7 @@ blockquote
|
||||
|
||||
pre
|
||||
@extend $code-block
|
||||
padding: 10px 20px
|
||||
|
||||
code
|
||||
padding: 0
|
||||
@@ -67,14 +73,8 @@ blockquote
|
||||
position: relative
|
||||
border-radius: 1px
|
||||
|
||||
&:after
|
||||
position: absolute
|
||||
top: 0
|
||||
z-index: 0
|
||||
min-width: 100%
|
||||
height: 1.4rem
|
||||
background: darken($highlight-background, 5)
|
||||
content: ""
|
||||
if hexo-config('highlight_shrink') == true
|
||||
display: none
|
||||
|
||||
pre
|
||||
margin: 0
|
||||
@@ -89,41 +89,22 @@ blockquote
|
||||
if wordWrap
|
||||
&:before
|
||||
display: inline-block
|
||||
padding: 0 0.3rem 0 0
|
||||
padding: 0 .3rem 0 0
|
||||
min-width: 1.6rem
|
||||
color: $highlight-gutter.color
|
||||
content: counter(line)
|
||||
counter-increment: line
|
||||
text-align: left
|
||||
|
||||
&.marked
|
||||
background-color: $highlight-selection
|
||||
|
||||
table
|
||||
position: relative
|
||||
margin: 0
|
||||
width: auto
|
||||
border: none
|
||||
|
||||
&:before
|
||||
position: absolute
|
||||
z-index: 1
|
||||
display: inline-block
|
||||
margin-top: -1.4rem
|
||||
padding: 0 0.7rem
|
||||
width: 5rem
|
||||
color: $highlight-foreground
|
||||
content: attr(data-content)
|
||||
font-weight: bold
|
||||
font-size: 0.8rem
|
||||
line-height: 1.4rem
|
||||
|
||||
&:after
|
||||
position: absolute
|
||||
top: -1.4rem
|
||||
z-index: 0
|
||||
width: 100%
|
||||
height: 1.4rem
|
||||
background: darken($highlight-background, 5)
|
||||
content: ""
|
||||
|
||||
td
|
||||
padding: 0
|
||||
border: none
|
||||
@@ -133,7 +114,7 @@ blockquote
|
||||
position: absolute
|
||||
z-index: 1
|
||||
margin-bottom: 1em
|
||||
padding: 0.2em 0 0.2em 0.7rem
|
||||
padding: .2rem 0 .2rem .7rem
|
||||
width: 100%
|
||||
height: 1.4em
|
||||
color: $highlight-foreground
|
||||
@@ -156,7 +137,7 @@ blockquote
|
||||
border-bottom-color: $highlight-foreground
|
||||
|
||||
&+table
|
||||
margin-top: 1em
|
||||
margin-top: 1.1rem
|
||||
|
||||
&:before
|
||||
margin-top: -2.1rem
|
||||
@@ -165,15 +146,15 @@ blockquote
|
||||
top: -2.1rem
|
||||
|
||||
.gutter pre
|
||||
padding-right: 0.5rem
|
||||
padding-left: 0.5rem
|
||||
padding-right: .5rem
|
||||
padding-left: .5rem
|
||||
background-color: $highlight-gutter.bg-color
|
||||
color: $highlight-gutter.color
|
||||
text-align: right
|
||||
|
||||
.code pre
|
||||
padding-right: 0.5rem
|
||||
padding-left: 0.5rem
|
||||
padding-right: .5rem
|
||||
padding-left: .5rem
|
||||
width: 100%
|
||||
background-color: $highlight-background
|
||||
|
||||
@@ -300,4 +281,18 @@ blockquote
|
||||
|
||||
&::selection
|
||||
background: $highlight-selection
|
||||
color: $highlight-foreground
|
||||
color: $highlight-foreground
|
||||
|
||||
.highlight-tools
|
||||
position: relative
|
||||
width: 100%
|
||||
height: 1.4rem
|
||||
background: darken($highlight-background, 5)
|
||||
color: $highlight-foreground
|
||||
font-size: 14px
|
||||
|
||||
& + figure
|
||||
margin: 0 !important
|
||||
|
||||
.highlight-close
|
||||
height: 0 !important
|
||||
@@ -1,6 +1,6 @@
|
||||
$highlight_theme = hexo-config("highlight_theme")
|
||||
$highlight_theme = hexo-config('highlight_theme')
|
||||
|
||||
if $highlight_theme == "default"
|
||||
if $highlight_theme == 'default'
|
||||
$highlight-background = #263238
|
||||
$highlight-current-line = #efefef
|
||||
$highlight-selection = #80CBC420
|
||||
@@ -18,7 +18,7 @@ if $highlight_theme == "default"
|
||||
bg-color: $highlight-background
|
||||
}
|
||||
|
||||
if $highlight_theme == "darker"
|
||||
if $highlight_theme == 'darker'
|
||||
$highlight-background = #212121
|
||||
$highlight-current-line = #282a2e
|
||||
$highlight-selection = #61616150
|
||||
@@ -36,7 +36,7 @@ if $highlight_theme == "darker"
|
||||
bg-color: $highlight-background
|
||||
}
|
||||
|
||||
if $highlight_theme == "pale night"
|
||||
if $highlight_theme == 'pale night'
|
||||
$highlight-background = #292D3E
|
||||
$highlight-current-line = #393939
|
||||
$highlight-selection = #717CB450
|
||||
@@ -54,7 +54,7 @@ if $highlight_theme == "pale night"
|
||||
bg-color: $highlight-background
|
||||
}
|
||||
|
||||
if $highlight_theme == "ocean"
|
||||
if $highlight_theme == 'ocean'
|
||||
$highlight-background = #0F111A
|
||||
$highlight-current-line = #000000
|
||||
$highlight-selection = #717CB450
|
||||
@@ -72,7 +72,7 @@ if $highlight_theme == "ocean"
|
||||
bg-color: $highlight-background
|
||||
}
|
||||
|
||||
if $highlight_theme == "light"
|
||||
if $highlight_theme == 'light'
|
||||
$highlight-background = #F6F8FA
|
||||
$highlight-current-line = #00346e
|
||||
$highlight-selection = #80CBC440
|
||||
|
||||
@@ -1,315 +1,225 @@
|
||||
#aside_content
|
||||
width: 25%
|
||||
|
||||
.card_widget
|
||||
-webkit-box-shadow: 0 4px 8px 6px rgba(7,17,27,.06)
|
||||
box-shadow: 0 4px 8px 6px rgba(7,17,27,.06)
|
||||
border-radius: 8px
|
||||
-webkit-transition: all .3s
|
||||
-moz-transition: all .3s
|
||||
-o-transition: all .3s
|
||||
-ms-transition: all .3s
|
||||
transition: all .3s
|
||||
background: #fff
|
||||
margin-top: 20px
|
||||
.card-widget
|
||||
overflow: hidden
|
||||
margin-top: 20px
|
||||
border-radius: 8px
|
||||
background: $white
|
||||
box-shadow: 0 4px 8px 6px rgba(7, 17, 27, .06)
|
||||
transition: all .3s
|
||||
|
||||
&:hover
|
||||
-webkit-box-shadow: 0 4px 12px 12px rgba(7,17,27,0.15)
|
||||
box-shadow: 0 4px 12px 12px rgba(7,17,27,0.15)
|
||||
box-shadow: 0 4px 12px 12px rgba(7, 17, 27, .15)
|
||||
|
||||
.card-author
|
||||
.card-info
|
||||
img
|
||||
height: 128px
|
||||
width: 128px
|
||||
display: inline-block
|
||||
vertical-align: top
|
||||
padding: 5px
|
||||
width: 120px
|
||||
height: 120px
|
||||
border-radius: 70px
|
||||
vertical-align: top
|
||||
transition: all .3s
|
||||
|
||||
&:hover
|
||||
-moz-transform: rotate(540deg)
|
||||
-o-transform: rotate(540deg)
|
||||
-webkit-transform: rotate(540deg)
|
||||
transform: rotate(540deg)
|
||||
|
||||
.author-info
|
||||
&__name
|
||||
font-size: 1.1rem
|
||||
display: block
|
||||
margin: -0.1rem auto
|
||||
font-weight: 500
|
||||
font-size: 1.1rem
|
||||
|
||||
&__description
|
||||
display: block
|
||||
margin: -0.1rem auto
|
||||
margin-top: -.3rem
|
||||
|
||||
.data_link
|
||||
a
|
||||
text-decoration: none
|
||||
.card-info-data
|
||||
display: flex
|
||||
padding: .7rem 0
|
||||
|
||||
.length_num
|
||||
font-size: 1rem
|
||||
color: #000
|
||||
& > .card-info-data-item
|
||||
flex: 1 1
|
||||
min-width: 0
|
||||
|
||||
.headline
|
||||
display: block
|
||||
font-size: 0.7rem
|
||||
letter-spacing: 1px
|
||||
margin-bottom: -21px
|
||||
text-transform: uppercase
|
||||
color:#4c4948
|
||||
a
|
||||
text-decoration: none
|
||||
|
||||
#aside-social-icons
|
||||
margin: 0.5rem auto -0.7rem
|
||||
width: 15rem
|
||||
text-align: center
|
||||
.headline
|
||||
display: block
|
||||
overflow: hidden
|
||||
color: $font-black
|
||||
text-transform: uppercase
|
||||
text-overflow: ellipsis
|
||||
white-space: nowrap
|
||||
font-size: .7rem
|
||||
|
||||
.social-icon
|
||||
margin: 0 0.5rem
|
||||
color: #4c4948
|
||||
/* text-shadow: 0.1rem 0.1rem 0.2rem rgba(0,0,0,0.15) */
|
||||
.length_num
|
||||
color: $dark-black
|
||||
font-size: 1rem
|
||||
|
||||
.card-info-social-icons
|
||||
margin: .3rem 0 -.3rem
|
||||
|
||||
.social-icon
|
||||
margin: 0 .5rem
|
||||
color: $font-black
|
||||
font-size: 1rem
|
||||
cursor: pointer
|
||||
|
||||
|
||||
i
|
||||
transition: all 0.3s
|
||||
|
||||
transition: all .3s
|
||||
|
||||
&:hover
|
||||
-moz-transform: rotate(540deg)
|
||||
-o-transform: rotate(540deg)
|
||||
-webkit-transform: rotate(540deg)
|
||||
transform: rotate(540deg)
|
||||
|
||||
|
||||
a#bookmark-it
|
||||
display: inline-block
|
||||
margin-top: .2rem
|
||||
padding: 0 1rem
|
||||
height: 1.6rem
|
||||
background: $light-blue
|
||||
color: #fff
|
||||
text-decoration: none
|
||||
line-height: 1.6rem
|
||||
#bookmark-it
|
||||
position: relative
|
||||
text-transform: uppercase
|
||||
z-index: 1
|
||||
|
||||
.toggle_change--primary,.bookmark--primary
|
||||
color: $ruby
|
||||
|
||||
.toggle_change--animated,.bookmark--animated
|
||||
transition-property: color
|
||||
transition-duration: 1s
|
||||
|
||||
&:before {
|
||||
content: ""
|
||||
position: absolute
|
||||
top: 0
|
||||
left: 0
|
||||
right: 0
|
||||
bottom: 0
|
||||
background: $ruby
|
||||
transform: scaleX(0)
|
||||
transform-origin: 0 50%
|
||||
transition-property: transform
|
||||
transition-duration: 0.5s
|
||||
transition-timing-function: ease-out
|
||||
z-index: -1
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: white
|
||||
|
||||
&:before {
|
||||
transform: scaleX(1)
|
||||
transition-timing-function: cubic-bezier(0.45, 1.64, 0.47, 0.66)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.card-content
|
||||
padding: 1rem 1.2rem
|
||||
|
||||
.post_data
|
||||
display: flex
|
||||
|
||||
.data-item
|
||||
flex-grow: 1
|
||||
align-items: center
|
||||
flex-basis: auto
|
||||
justify-content: center
|
||||
|
||||
|
||||
.item_headline
|
||||
font-size: 0.8rem
|
||||
|
||||
span
|
||||
margin-left: 10px
|
||||
|
||||
.card-tag-cloud a
|
||||
text-decoration: none
|
||||
position: relative
|
||||
padding-bottom: 0.3rem
|
||||
word-break: keep-all
|
||||
|
||||
&::after
|
||||
position: absolute
|
||||
bottom: 0
|
||||
left: 0
|
||||
z-index: -1
|
||||
width: 0
|
||||
height: 3px
|
||||
background-color: lighten($theme-color, 30%)
|
||||
content: ""
|
||||
transition: all 0.3s ease-in-out
|
||||
|
||||
&:hover
|
||||
color: $light-blue !important
|
||||
|
||||
&::after
|
||||
width: 100%
|
||||
|
||||
|
||||
|
||||
.aside_recent_item
|
||||
margin: 10px 0 -15px 0
|
||||
|
||||
.aside_recent_post
|
||||
a
|
||||
text-decoration: none
|
||||
color: #4c4948
|
||||
|
||||
.aside_recent_post
|
||||
margin-bottom: 10px
|
||||
width: 100%
|
||||
|
||||
.aside_post_cover
|
||||
height: 70px
|
||||
width: 70px
|
||||
float: left
|
||||
.aside_post_bg
|
||||
object-fit: cover
|
||||
width: 100%
|
||||
height: 100%
|
||||
max-width: 100%
|
||||
|
||||
&:hover
|
||||
box-shadow: none
|
||||
|
||||
#aside_title
|
||||
padding-top: 4px
|
||||
|
||||
.aside_post_meta
|
||||
font-size: 0.6rem
|
||||
padding-left: 5px
|
||||
|
||||
.aside_post_title
|
||||
line-height: 1rem
|
||||
display: -webkit-box
|
||||
-webkit-line-clamp: 2
|
||||
-webkit-box-orient: vertical
|
||||
overflow: hidden
|
||||
height: 41px
|
||||
padding-left: 5px
|
||||
|
||||
&:hover
|
||||
color: $light-blue !important
|
||||
|
||||
|
||||
|
||||
.aside_category_item,.archive-list
|
||||
list-style: none
|
||||
margin-bottom: -3px
|
||||
margin-block-start: 0.2rem
|
||||
|
||||
.aside_category_item.child
|
||||
margin-bottom: -3px
|
||||
margin-block-start: 0rem
|
||||
|
||||
.aside_category_list
|
||||
margin-left: -50px
|
||||
|
||||
.aside_category_list,.archive-list-item
|
||||
margin-left: -40px
|
||||
padding: 0.2rem 1rem
|
||||
|
||||
&:hover
|
||||
display: block
|
||||
background-color: $light-blue
|
||||
color: #363636
|
||||
color: $white
|
||||
text-decoration: none
|
||||
text-transform: uppercase
|
||||
line-height: 1.6rem
|
||||
|
||||
span
|
||||
padding-left: .5rem
|
||||
|
||||
.card-content
|
||||
padding: 1rem 1.2rem
|
||||
|
||||
.item-headline
|
||||
font-size: .8rem
|
||||
|
||||
span
|
||||
margin-left: .5rem
|
||||
|
||||
.card-tag-cloud
|
||||
a
|
||||
text-decoration: none
|
||||
color: #4c4948
|
||||
|
||||
.aside_category_list_name,.archive-list-link
|
||||
white-space: nowrap
|
||||
overflow: hidden
|
||||
text-overflow: ellipsis
|
||||
flex: auto
|
||||
word-break: keep-all
|
||||
|
||||
.aside_category_list_link,.archive-list-item
|
||||
display: flex
|
||||
|
||||
&:hover
|
||||
color: $light-blue !important
|
||||
|
||||
.card-recent-post
|
||||
.aside-recent-item
|
||||
margin: 10px 0 -15px
|
||||
|
||||
& > .aside-recent-post
|
||||
margin-bottom: 10px
|
||||
|
||||
& > a
|
||||
color: $font-black
|
||||
text-decoration: none
|
||||
|
||||
.aside-post-cover
|
||||
float: left
|
||||
overflow: hidden
|
||||
width: 66px
|
||||
height: 66px
|
||||
|
||||
.aside-post-bg
|
||||
padding: 0
|
||||
max-width: 100%
|
||||
width: 100%
|
||||
height: 100%
|
||||
transition: all .6s
|
||||
object-fit: cover
|
||||
|
||||
&:hover
|
||||
box-shadow: none
|
||||
transform: scale(1.1)
|
||||
|
||||
.aside-post-title
|
||||
.aside-post_meta
|
||||
padding-left: 10px
|
||||
color: $theme-link-color
|
||||
font-size: .6rem
|
||||
|
||||
.aside-post_title
|
||||
display: -webkit-box
|
||||
overflow: hidden
|
||||
padding-left: 10px
|
||||
height: 40px
|
||||
line-height: 1rem
|
||||
-webkit-line-clamp: 2
|
||||
-webkit-box-orient: vertical
|
||||
|
||||
&:hover
|
||||
color: $light-blue !important
|
||||
|
||||
.card-archives ul.archive-list,
|
||||
.card-categories ul.aside-category-item
|
||||
margin: 0
|
||||
padding: .2rem 0 0
|
||||
list-style: none
|
||||
|
||||
.card-archives ul.archive-list > .archive-list-item,
|
||||
.card-categories ul.aside-category-item > .aside-category-list
|
||||
padding: .2rem 1rem
|
||||
cursor: pointer
|
||||
transition: all .3s
|
||||
|
||||
&:hover
|
||||
padding: .2rem .85rem
|
||||
background-color: $light-blue
|
||||
color: #363636
|
||||
|
||||
a
|
||||
display: flex
|
||||
color: $font-black
|
||||
text-decoration: none
|
||||
|
||||
span
|
||||
&:first-child
|
||||
flex: auto
|
||||
overflow: hidden
|
||||
text-overflow: ellipsis
|
||||
white-space: nowrap
|
||||
|
||||
.card-categories
|
||||
.aside-category-item
|
||||
&.child
|
||||
padding: 0 0 0 1.2rem
|
||||
|
||||
.aside_category_list_length,.archive-list-count
|
||||
float: right
|
||||
|
||||
.card-archives
|
||||
margin-bottom: 20px
|
||||
.archive-list-link-more
|
||||
justify-content: center
|
||||
|
||||
.card-announcement-animation
|
||||
animation: announ_animation 1.5s infinite
|
||||
|
||||
.card-webinfo
|
||||
.webinfo
|
||||
padding: 0.2rem 1rem
|
||||
padding: .2rem 1rem
|
||||
|
||||
.webinfo_item
|
||||
.webinfo-item
|
||||
display: block
|
||||
padding: 4px 0 0
|
||||
|
||||
.webinfo_article_name,
|
||||
.webinfo_runtime_name,
|
||||
.webinfo_site_uv_name,
|
||||
.webinfo_site_name
|
||||
display: inline-block
|
||||
|
||||
.webinfo_article_count,
|
||||
.webinfo_runtime_count,
|
||||
.webinfo_site_uv_count,
|
||||
.webinfo_site_pv_count
|
||||
float: right
|
||||
display: inline-block
|
||||
div
|
||||
&:first-child
|
||||
display: inline-block
|
||||
|
||||
&:last-child
|
||||
display: inline-block
|
||||
float: right
|
||||
|
||||
@keyframes announ_animation{
|
||||
0%,to{
|
||||
color: #4c4948
|
||||
}
|
||||
50%{
|
||||
color: #FF0000
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 900px)
|
||||
@media screen and (max-width: 900px)
|
||||
.layout_page
|
||||
flex-direction: column
|
||||
|
||||
#recent-posts,#aside_content
|
||||
|
||||
#recent-posts,
|
||||
#aside_content
|
||||
width: 100% !important
|
||||
|
||||
.card_widget
|
||||
margin-left: 0
|
||||
margin-right: 0
|
||||
|
||||
@media screen and (min-width: 900px)
|
||||
#aside_content
|
||||
.card-widget
|
||||
if hexo-config('aside.position') == 'right'
|
||||
margin-left: 15px
|
||||
else
|
||||
margin-right: 15px
|
||||
|
||||
@media screen and (min-width: 900px)
|
||||
#aside_content
|
||||
.card_widget
|
||||
if hexo-config("aside.position") == "right"
|
||||
margin-left: 15px
|
||||
else
|
||||
margin-right: 15px
|
||||
if hexo-config('aside_mobile') == false
|
||||
@media screen and (max-width: $sm)
|
||||
#aside_content
|
||||
display: none
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
.category-content
|
||||
ol,
|
||||
ul
|
||||
margin-top: 0.4rem
|
||||
padding: 0 0 0 0.8rem
|
||||
margin-top: .4rem
|
||||
padding: 0 0 0 .8rem
|
||||
list-style: none
|
||||
counter-reset: li
|
||||
|
||||
@@ -11,13 +11,12 @@
|
||||
|
||||
ol,
|
||||
ul
|
||||
padding-left: 0.5rem
|
||||
padding-left: .5rem
|
||||
|
||||
li
|
||||
position: relative
|
||||
margin: 0.3rem 0
|
||||
// padding-left: 0.3rem
|
||||
padding: 0.1rem 0.5rem 0.1rem 1.5rem !important
|
||||
margin: .3rem 0
|
||||
padding: .1rem .5rem .1rem 1.5rem !important
|
||||
|
||||
&:hover
|
||||
&:before
|
||||
@@ -30,19 +29,19 @@
|
||||
background: $light-blue
|
||||
color: $white
|
||||
cursor: pointer
|
||||
transition: all 0.3s ease-out
|
||||
transition: all .3s ease-out
|
||||
|
||||
ol
|
||||
li
|
||||
&:before
|
||||
margin-top: 0.2rem
|
||||
margin-top: .2rem
|
||||
width: w = 1.2rem
|
||||
height: h = w
|
||||
border-radius: 0.5 * w
|
||||
border-radius: .5 * w
|
||||
content: counter(li)
|
||||
counter-increment: li
|
||||
text-align: center
|
||||
font-size: 0.6rem
|
||||
font-size: .6rem
|
||||
line-height: h
|
||||
|
||||
ul
|
||||
@@ -52,13 +51,13 @@
|
||||
border-color: $ruby
|
||||
|
||||
&:before
|
||||
$w = 0.3rem
|
||||
$w = .3rem
|
||||
top: 10px
|
||||
margin-left: 0.45rem
|
||||
margin-left: .45rem
|
||||
width: w = $w
|
||||
height: h = w
|
||||
border: 0.5 * w solid $light-blue
|
||||
border: .5 * w solid $light-blue
|
||||
border-radius: w
|
||||
background: $white
|
||||
content: ""
|
||||
content: ''
|
||||
line-height: h
|
||||
|
||||
@@ -1,2 +1,68 @@
|
||||
#disqus_thread
|
||||
margin-top: 1rem
|
||||
margin-top: 1rem
|
||||
|
||||
.comment_headling
|
||||
margin-bottom: 10px
|
||||
font-weight: 700
|
||||
font-size: 20px
|
||||
|
||||
// valine
|
||||
#vcomment
|
||||
font-size: inherit
|
||||
|
||||
input
|
||||
font-size: .65rem
|
||||
|
||||
button
|
||||
padding: .3rem 1rem
|
||||
border-color: #fff
|
||||
background-color: $light-blue
|
||||
color: #fff
|
||||
font-size: .7rem
|
||||
|
||||
&:hover
|
||||
background-color: darken($light-blue, 40)
|
||||
|
||||
textarea
|
||||
font-size: .7rem
|
||||
|
||||
if hexo-config('valine.bg')
|
||||
background: url(convert(hexo-config('valine.bg'))) 100% 100% no-repeat
|
||||
|
||||
.info
|
||||
display: none
|
||||
|
||||
.vimg
|
||||
border: 0
|
||||
|
||||
&:hover
|
||||
transform: rotate(540deg)
|
||||
|
||||
.vcount
|
||||
font-size: .775rem
|
||||
|
||||
.vnum
|
||||
font-size: 1.1rem
|
||||
|
||||
.vsys
|
||||
font-size: 80%
|
||||
|
||||
.vtime
|
||||
font-size: .65rem
|
||||
|
||||
.vcontent
|
||||
font-size: 100%
|
||||
|
||||
.vat
|
||||
padding: 0 .8rem
|
||||
border: 1px solid $cyan
|
||||
border-radius: 5px
|
||||
color: $cyan
|
||||
font-size: .7125rem
|
||||
|
||||
&:hover
|
||||
background-color: alpha($cyan, .5)
|
||||
|
||||
code,
|
||||
pre
|
||||
font-size: 98%
|
||||
|
||||
@@ -1,133 +1,91 @@
|
||||
.flink
|
||||
.md-links
|
||||
min-height: calc(100% - 120px - 5pc - 6em)
|
||||
text-align: center
|
||||
overflow: auto
|
||||
padding: 0
|
||||
margin: 0 auto
|
||||
.post-cards
|
||||
margin: -10px 10px 0
|
||||
|
||||
a
|
||||
color: #333
|
||||
text-decoration: none
|
||||
|
||||
li
|
||||
width: calc(100%/3 - 14px)
|
||||
float: left
|
||||
list-style: none
|
||||
|
||||
.md-links-item
|
||||
height: 90px
|
||||
line-height: 17px
|
||||
margin: 20px 7px
|
||||
padding: 0px 0px
|
||||
transition: box-shadow 0.25s
|
||||
text-overflow: ellipsis
|
||||
overflow: hidden
|
||||
border-radius: 8px
|
||||
-webkit-transform: perspective(1px) translateZ(0)
|
||||
transform: perspective(1px) translateZ(0)
|
||||
box-shadow: 0 0 1px rgba(0, 0, 0, 0)
|
||||
position: relative
|
||||
-webkit-transition-property: color
|
||||
transition-property: color
|
||||
-webkit-transition-duration: 0.3s
|
||||
transition-duration: 0.3s
|
||||
|
||||
img
|
||||
float: left
|
||||
border-radius: 35px
|
||||
margin: 11px 10px
|
||||
width: 70px
|
||||
height: 70px
|
||||
border: 0px solid #eaeefb
|
||||
|
||||
&:hover
|
||||
img
|
||||
filter: unqoute("progid:DXImageTransform.Microsoft.BasicImage(rotation=3)")
|
||||
-moz-transform: rotate(540deg)
|
||||
-o-transform: rotate(540deg)
|
||||
-webkit-transform: rotate(540deg)
|
||||
transform: rotate(540deg)
|
||||
|
||||
&:before
|
||||
content: ""
|
||||
position: absolute
|
||||
z-index: -1
|
||||
top: 0
|
||||
left: 0
|
||||
right: 0
|
||||
bottom: 0
|
||||
background: $light-blue !important
|
||||
-webkit-transform: scale(0)
|
||||
transform: scale(0)
|
||||
-webkit-transition-property: transform
|
||||
transition-property: transform
|
||||
-webkit-transition-duration: 0.3s
|
||||
transition-duration: 0.3s
|
||||
-webkit-transition-timing-function: ease-out
|
||||
transition-timing-function: ease-out
|
||||
.md-links
|
||||
overflow: auto
|
||||
margin: 0 auto
|
||||
padding: 0
|
||||
text-align: center
|
||||
|
||||
.md-links-item:hover,
|
||||
.md-links-item:focus,
|
||||
.md-links-item:active
|
||||
color: white
|
||||
& > .md-links-item
|
||||
position: relative
|
||||
float: left
|
||||
overflow: hidden
|
||||
margin: 20px 7px
|
||||
padding: 0
|
||||
width: calc(100% / 3 - 14px)
|
||||
height: 90px
|
||||
border-radius: 8px
|
||||
list-style: none
|
||||
line-height: 17px
|
||||
transform: perspective(1px) translateZ(0)
|
||||
|
||||
.md-links-item:hover:before,
|
||||
.md-links-item:focus:before,
|
||||
.md-links-item:active:before
|
||||
-webkit-transform: scale(1)
|
||||
transform: scale(1)
|
||||
|
||||
.md-links-item a:hover
|
||||
cursor: pointer
|
||||
|
||||
.md-links-title
|
||||
padding-top: 16px
|
||||
padding-right: 10px
|
||||
font-size: 20px
|
||||
font-weight: bold
|
||||
height:40px
|
||||
overflow: hidden
|
||||
white-space: nowrap
|
||||
text-overflow: ellipsis
|
||||
&:hover
|
||||
img
|
||||
transform: rotate(540deg)
|
||||
|
||||
&:before
|
||||
position: absolute
|
||||
top: 0
|
||||
right: 0
|
||||
bottom: 0
|
||||
left: 0
|
||||
z-index: -1
|
||||
background: $light-blue
|
||||
content: ''
|
||||
transition-timing-function: ease-out
|
||||
transition-duration: .3s
|
||||
transition-property: transform
|
||||
transform: scale(0)
|
||||
|
||||
&:hover:before,
|
||||
&:focus:before,
|
||||
&:active:before
|
||||
transform: scale(1)
|
||||
|
||||
a
|
||||
color: #333
|
||||
text-decoration: none
|
||||
|
||||
img
|
||||
float: left
|
||||
margin: 11px 10px
|
||||
padding: 4px
|
||||
width: 70px
|
||||
height: 70px
|
||||
border-radius: 35px
|
||||
transition: all .3s
|
||||
|
||||
.md-links-title
|
||||
overflow: hidden
|
||||
padding: 16px 10px 0 0
|
||||
height: 40px
|
||||
text-overflow: ellipsis
|
||||
white-space: nowrap
|
||||
font-weight: bold
|
||||
font-size: 20px
|
||||
|
||||
.md-links-des
|
||||
overflow: hidden
|
||||
padding: 16px 10px
|
||||
height: 50px
|
||||
text-overflow: ellipsis
|
||||
white-space: nowrap
|
||||
font-size: 13px
|
||||
|
||||
.post-cards
|
||||
margin-top: 5px
|
||||
min-height: 100px
|
||||
padding: 15px
|
||||
border-radius: 15px
|
||||
|
||||
.comment-word
|
||||
font-weight:bold
|
||||
font-size:1.7em
|
||||
|
||||
.md-links-des
|
||||
padding: 16px 10px
|
||||
font-size:13px
|
||||
overflow: hidden
|
||||
height:50px
|
||||
white-space: nowrap
|
||||
text-overflow: ellipsis
|
||||
font-weight: bold
|
||||
font-size: 1.7em
|
||||
|
||||
@media screen and (max-width:1100px)
|
||||
@media screen and (max-width: 1100px)
|
||||
.flink
|
||||
.post-cards
|
||||
position: relative
|
||||
margin: -20px -16px 0
|
||||
border-radius: 18px
|
||||
padding: 16px
|
||||
|
||||
.md-links
|
||||
li
|
||||
width: calc(100%/2 - 14px)
|
||||
.md-links
|
||||
.md-links-item
|
||||
width: calc(50% - 14px) !important
|
||||
|
||||
|
||||
|
||||
@media screen and (max-width:600px)
|
||||
@media screen and (max-width: 600px)
|
||||
.flink
|
||||
.md-links
|
||||
li
|
||||
width: calc(100%/1 - 14px)
|
||||
|
||||
|
||||
|
||||
.md-links
|
||||
.md-links-item
|
||||
width: calc(100% - 14px) !important
|
||||
|
||||
@@ -1,15 +1,24 @@
|
||||
footer
|
||||
#footer
|
||||
position: relative
|
||||
margin-top: 1rem
|
||||
background: $light-blue
|
||||
background-attachment: local
|
||||
background-position: bottom
|
||||
background-size: cover
|
||||
|
||||
&.footer-bg
|
||||
background-position: bottom
|
||||
background-size: cover
|
||||
if hexo-config('footer_bg') != false
|
||||
&:before
|
||||
position: absolute
|
||||
top: 0
|
||||
right: 0
|
||||
bottom: 0
|
||||
left: 0
|
||||
background-color: alpha($dark-black, .5)
|
||||
content: ''
|
||||
|
||||
|
||||
#footer
|
||||
padding: 1.2rem 1rem 1rem
|
||||
#footer-wrap
|
||||
position: relative
|
||||
padding: 2rem 1rem
|
||||
color: $light-grey
|
||||
text-align: center
|
||||
|
||||
@@ -22,5 +31,8 @@ footer
|
||||
color: $white
|
||||
|
||||
.footer-separator
|
||||
margin: 0 0.2rem
|
||||
margin: 0 .2rem
|
||||
|
||||
.icp-icon
|
||||
padding: 0 4px
|
||||
vertical-align: text-bottom
|
||||
|
||||
@@ -1,29 +1,30 @@
|
||||
#nav
|
||||
position: relative
|
||||
margin-bottom: 1rem
|
||||
width: 100%
|
||||
background-color: $light-blue
|
||||
background-attachment: local
|
||||
background-position: center
|
||||
background-size: cover
|
||||
|
||||
|
||||
&.full_page
|
||||
background-attachment: local
|
||||
height: 100vh
|
||||
|
||||
&.bg_local
|
||||
background-attachment: local
|
||||
display: flex
|
||||
align-items: center
|
||||
height: $index_top_img_height
|
||||
|
||||
&.not_index_bg
|
||||
height: 20rem
|
||||
|
||||
#site-social-icons
|
||||
display: none
|
||||
margin: 0 auto
|
||||
width: 15rem
|
||||
text-align: center
|
||||
display: none
|
||||
|
||||
.social-icon
|
||||
margin: 0 0.5rem
|
||||
margin: 0 .5rem
|
||||
color: $light-grey
|
||||
text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.15)
|
||||
text-shadow: .1rem .1rem .2rem rgba(0, 0, 0, .15)
|
||||
font-size: .9rem
|
||||
cursor: pointer
|
||||
|
||||
@@ -33,13 +34,12 @@
|
||||
#site-info
|
||||
position: absolute
|
||||
width: 100%
|
||||
top: 43%
|
||||
|
||||
#site-title,
|
||||
#site-sub-title
|
||||
color: $light-grey
|
||||
text-align: center
|
||||
text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.15)
|
||||
text-shadow: .1rem .1rem .2rem rgba(0, 0, 0, .15)
|
||||
line-height: 1.5
|
||||
|
||||
#site-title
|
||||
@@ -47,17 +47,28 @@
|
||||
font-size: 1.3rem
|
||||
|
||||
#site-sub-title
|
||||
font-size: 0.8rem
|
||||
font-size: .8rem
|
||||
|
||||
#page_site-info
|
||||
position: absolute
|
||||
top: 10rem
|
||||
width: 100%
|
||||
|
||||
.scroll-down
|
||||
position: absolute
|
||||
bottom: 0
|
||||
width: 100%
|
||||
cursor: pointer
|
||||
height: 42px
|
||||
font-size: 30px
|
||||
text-align: center
|
||||
font-size: 30px
|
||||
cursor: pointer
|
||||
|
||||
.scroll-down-effects
|
||||
position: absolute
|
||||
color: $white
|
||||
|
||||
header
|
||||
position: relative
|
||||
|
||||
#page-header
|
||||
position: absolute
|
||||
@@ -65,74 +76,22 @@
|
||||
z-index: 99
|
||||
padding: 10px 36px
|
||||
width: 100%
|
||||
height: 58px
|
||||
border: none
|
||||
font-size: 18px
|
||||
transition: all 0.2s ease-in-out
|
||||
opacity: 0
|
||||
transition: all .5s
|
||||
|
||||
.toggle-menu
|
||||
display: none
|
||||
padding-top: 0.6rem
|
||||
color: $light-grey
|
||||
cursor: pointer
|
||||
transition: all 0.2s ease-in-out
|
||||
padding: .1rem 0 0 .3rem
|
||||
|
||||
&:hover
|
||||
color: $white
|
||||
|
||||
.menu-icon-first,
|
||||
.menu-icon-second,
|
||||
.menu-icon-third
|
||||
width: 18px
|
||||
height: 3px
|
||||
background-color: #eee
|
||||
margin: 2px 0
|
||||
transition: 0.4s
|
||||
|
||||
&.close
|
||||
/* 旋转第一条横线 */
|
||||
.menu-icon-first
|
||||
-webkit-transform: rotate(45deg) translate(4px, 3px)
|
||||
transform: rotate(45deg) translate(4px, 3px)
|
||||
|
||||
/* 隐藏第二条横线 */
|
||||
.menu-icon-second
|
||||
opacity: 0
|
||||
|
||||
/* 旋转第三条横线 */
|
||||
.menu-icon-third
|
||||
-webkit-transform: rotate(-45deg) translate(4px, -4px)
|
||||
transform: rotate(-45deg) translate(4px, -4px)
|
||||
|
||||
.menus
|
||||
.mobile_author_icon
|
||||
display: none
|
||||
padding: 3rem 1.5rem 0
|
||||
text-align: center
|
||||
|
||||
img
|
||||
height: 120px
|
||||
width: 120px
|
||||
display: inline-block
|
||||
vertical-align: top
|
||||
border-radius: 70px
|
||||
-webkit-transition: all .3s
|
||||
-moz-transition: all .3s
|
||||
-o-transition: all .3s
|
||||
-ms-transition: all .3s
|
||||
transition: all .3s
|
||||
|
||||
hr
|
||||
margin: 1rem auto
|
||||
display: none
|
||||
|
||||
&.menu_open
|
||||
display: block
|
||||
animation: menu_open .3s
|
||||
|
||||
&.menu_close
|
||||
animation: menu_close .3s
|
||||
display: block
|
||||
|
||||
&.is_visible
|
||||
.site-page
|
||||
font-size: inherit
|
||||
|
||||
a
|
||||
color: $light-grey
|
||||
@@ -141,67 +100,113 @@
|
||||
&:hover
|
||||
color: $white
|
||||
|
||||
.site-page
|
||||
position: relative
|
||||
margin-left: 0.6rem
|
||||
padding-bottom: 0.3rem
|
||||
text-shadow: 0.05rem 0.05rem 0.1rem rgba(0, 0, 0, 0.3)
|
||||
font-size: 0.7rem
|
||||
cursor: pointer
|
||||
margin-left: 1rem
|
||||
|
||||
&::after
|
||||
position: absolute
|
||||
bottom: 0
|
||||
left: 0
|
||||
z-index: -1
|
||||
width: 0
|
||||
height: 3px
|
||||
background-color: lighten($theme-color, 30%)
|
||||
content: ""
|
||||
transition: all 0.3s ease-in-out
|
||||
|
||||
&:hover
|
||||
&::after
|
||||
width: 100%
|
||||
|
||||
&.fixed
|
||||
position: fixed
|
||||
top: -60px
|
||||
z-index: 101
|
||||
background: alpha($white, 0.8)
|
||||
box-shadow: 0 5px 6px -5px alpha($grey, 0.6)
|
||||
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out
|
||||
background: alpha($white, .8)
|
||||
box-shadow: 0 5px 6px -5px alpha($grey, .6)
|
||||
transition: transform .2s ease-in-out, opacity .2s ease-in-out
|
||||
|
||||
&.open-sidebar
|
||||
.site-page
|
||||
display: none
|
||||
opacity: 0
|
||||
visibility: hidden
|
||||
|
||||
a,
|
||||
#site-name
|
||||
#site-name,
|
||||
.toggle-menu
|
||||
color: $light-black
|
||||
text-shadow: none
|
||||
|
||||
.menu-icon-first,
|
||||
.menu-icon-second,
|
||||
.menu-icon-third
|
||||
background-color: $light-black
|
||||
text-shadow: none
|
||||
|
||||
|
||||
&a,#site-name
|
||||
&:hover
|
||||
color: $light-blue
|
||||
&:hover
|
||||
color: $light-blue
|
||||
|
||||
&.visible
|
||||
transition: all .5s
|
||||
transform: translate3d(0, 100%, 0)
|
||||
|
||||
.menus_item_child
|
||||
background-color: $white !important
|
||||
|
||||
#site-name
|
||||
text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.15)
|
||||
text-shadow: .1rem .1rem .2rem rgba(0, 0, 0, .15)
|
||||
font-weight: bold
|
||||
cursor: pointer
|
||||
|
||||
.menus_item
|
||||
position: relative
|
||||
display: inline-block
|
||||
padding: 0 0 0 .7rem
|
||||
|
||||
&:hover
|
||||
.menus_item_child
|
||||
display: block
|
||||
|
||||
.menus-expand
|
||||
transform: rotate(180deg) !important
|
||||
|
||||
.menus-expand
|
||||
padding: 4px
|
||||
transition: all .3s
|
||||
transform: rotate(0)
|
||||
|
||||
& > a
|
||||
&:after
|
||||
position: absolute
|
||||
bottom: 0
|
||||
left: 0
|
||||
z-index: -1
|
||||
width: 0
|
||||
height: 3px
|
||||
background-color: lighten($theme-color, 30%)
|
||||
content: ''
|
||||
transition: all .3s ease-in-out
|
||||
|
||||
&:hover
|
||||
&::after
|
||||
width: 100%
|
||||
|
||||
.menus_item_child
|
||||
position: absolute
|
||||
right: 0
|
||||
display: none
|
||||
margin-top: 8px
|
||||
padding: 0
|
||||
width: max-content
|
||||
background-color: alpha($white, .8)
|
||||
box-shadow: 0 5px 20px -4px rgba(0, 0, 0, .5)
|
||||
animation: sub_menus .3s .1s ease both
|
||||
|
||||
&:before
|
||||
position: absolute
|
||||
top: -8px
|
||||
left: 0
|
||||
width: 100%
|
||||
height: 20px
|
||||
content: ''
|
||||
|
||||
li
|
||||
padding: 1px 10px
|
||||
list-style: none
|
||||
text-align: center
|
||||
|
||||
&:hover
|
||||
background: $theme-color
|
||||
|
||||
a
|
||||
color: #3b3a3a
|
||||
text-shadow: none
|
||||
|
||||
#search_button
|
||||
padding: 0 0 0 .7rem
|
||||
|
||||
.site-page
|
||||
position: relative
|
||||
padding-bottom: .3rem
|
||||
text-shadow: .05rem .05rem .1rem rgba(0, 0, 0, .3)
|
||||
font-size: .7rem
|
||||
cursor: pointer
|
||||
|
||||
@media screen and (min-width: $sm)
|
||||
#site-title
|
||||
font-size: 2rem
|
||||
@@ -210,62 +215,22 @@
|
||||
font-size: 1.2rem
|
||||
|
||||
@media screen and (max-width: $sm)
|
||||
|
||||
#page-header
|
||||
padding: 10px 0.8rem
|
||||
padding: 10px .8rem
|
||||
|
||||
.toggle-menu
|
||||
#nav
|
||||
#site-social-icons
|
||||
display: block
|
||||
|
||||
.menus
|
||||
position: fixed
|
||||
top: 0
|
||||
right: 0
|
||||
width: 100%
|
||||
height 101vh
|
||||
background: $white
|
||||
cursor: pointer
|
||||
box-shadow: 0 0 4px rgba(0, 0, 0, 0.27)
|
||||
z-index: -1
|
||||
overflow: auto
|
||||
display: none
|
||||
&.not_index_bg
|
||||
height: 14rem
|
||||
|
||||
a
|
||||
display: inline-block !important
|
||||
opacity: 1 !important
|
||||
// margin-left: 0
|
||||
// padding-top: 0.3rem
|
||||
// padding-bottom: 0.3rem
|
||||
// padding-left: 0.6rem
|
||||
margin: 0
|
||||
padding: .5rem 1rem
|
||||
color: $font-black
|
||||
text-shadow: none
|
||||
font-size: 0.8rem
|
||||
z-index: 0
|
||||
#page_site-info
|
||||
top: 7rem
|
||||
|
||||
|
||||
&:hover
|
||||
color: $light-blue
|
||||
|
||||
.mobile_author_icon
|
||||
display: block
|
||||
|
||||
.menus_item
|
||||
padding: 0 .5rem
|
||||
margin-bottom: 4rem
|
||||
text-align: center
|
||||
|
||||
hr
|
||||
display: block
|
||||
|
||||
.search
|
||||
right: 0.5rem
|
||||
|
||||
span
|
||||
display none
|
||||
|
||||
&.fixed.open-sidebar
|
||||
.search
|
||||
display: inline-block;
|
||||
opacity: 1;
|
||||
@media screen and (max-width: $bg)
|
||||
#page-header
|
||||
&.fixed
|
||||
&.open-sidebar
|
||||
.site-page
|
||||
visibility: visible
|
||||
130
source/css/_layout/mobile-sidebar.styl
Normal file
130
source/css/_layout/mobile-sidebar.styl
Normal file
@@ -0,0 +1,130 @@
|
||||
#mobile-sidebar
|
||||
#menu_mask
|
||||
position: fixed
|
||||
top: 0
|
||||
right: 0
|
||||
bottom: 0
|
||||
left: 0
|
||||
z-index: 102
|
||||
display: none
|
||||
background: alpha($dark-black, .7)
|
||||
|
||||
#mobile-sidebar-menus,
|
||||
#mobile-sidebar-toc
|
||||
position: fixed
|
||||
top: 0
|
||||
right: -254px
|
||||
z-index: 103
|
||||
display: block
|
||||
overflow-y: scroll
|
||||
width: 250px
|
||||
height: 100%
|
||||
background: $white
|
||||
box-shadow: 0 0 4px alpha($dark-black, .27)
|
||||
transition: all .5s
|
||||
|
||||
#mobile-sidebar-menus
|
||||
& > .mobile_author_icon
|
||||
padding: 1.3rem 1.5rem 0
|
||||
text-align: center
|
||||
|
||||
img
|
||||
display: inline-block
|
||||
padding: 0
|
||||
width: 120px
|
||||
height: 120px
|
||||
border-radius: 70px
|
||||
vertical-align: top
|
||||
transition: all .3s
|
||||
|
||||
.mobile_post_data
|
||||
display: flex
|
||||
justify-content: center
|
||||
padding: .6rem .5rem 0
|
||||
|
||||
.mobile_data_item
|
||||
flex: 1
|
||||
|
||||
.mobile_data_link
|
||||
a
|
||||
text-decoration: none
|
||||
|
||||
.length_num
|
||||
color: $dark-black
|
||||
font-size: .9rem
|
||||
|
||||
.headline
|
||||
display: block
|
||||
color: $font-black
|
||||
text-transform: uppercase
|
||||
font-size: .7rem
|
||||
|
||||
hr
|
||||
margin: 1rem auto
|
||||
|
||||
.menus_items
|
||||
margin-bottom: 5rem
|
||||
padding: 0 .5rem
|
||||
|
||||
.site-page
|
||||
position: relative
|
||||
z-index: 0
|
||||
display: block
|
||||
overflow: hidden
|
||||
margin: 0
|
||||
padding: .3rem 1.5rem
|
||||
color: $font-black
|
||||
text-decoration: none
|
||||
text-overflow: ellipsis
|
||||
text-shadow: none
|
||||
white-space: nowrap
|
||||
font-size: .8rem
|
||||
cursor: pointer
|
||||
|
||||
i
|
||||
width: 30%
|
||||
text-align: left
|
||||
|
||||
span
|
||||
width: 70%
|
||||
|
||||
&:hover
|
||||
color: $light-blue
|
||||
|
||||
.menus-expand
|
||||
position: absolute
|
||||
right: 0
|
||||
padding: 6px
|
||||
width: 30px !important
|
||||
height: 30px
|
||||
transition: all .3s
|
||||
transform: rotate(0)
|
||||
|
||||
&.menus-closed
|
||||
transition: all .3s
|
||||
transform: rotate(180deg) !important
|
||||
|
||||
.menus_item_child
|
||||
margin: 0
|
||||
list-style: none
|
||||
|
||||
#mobile-sidebar-toc
|
||||
padding: 1rem .5rem 5rem .3rem
|
||||
|
||||
ol,
|
||||
li
|
||||
margin: 0
|
||||
padding: 0 0 0 8px
|
||||
list-style: none
|
||||
|
||||
.toc_mobile_headline
|
||||
text-align: center
|
||||
font-weight: bold
|
||||
font-size: 18px
|
||||
|
||||
.toc_mobile_items-link
|
||||
color: $font-color
|
||||
text-decoration: none
|
||||
|
||||
&:hover
|
||||
color: $light-blue
|
||||
@@ -1,251 +0,0 @@
|
||||
if hexo-config("nightshift") && hexo-config("nightshift.enable")
|
||||
.night-mode
|
||||
footer
|
||||
background: #2d3035
|
||||
|
||||
#sidebar
|
||||
background: #2d3035 !important
|
||||
box-shadow: -0.25rem 0 0.25rem #2d3035 !important
|
||||
|
||||
&::-webkit-scrollbar-thumb
|
||||
background: lighten(#2d3035,5)
|
||||
|
||||
if hexo-config("local_search") && hexo-config("local_search.enable")
|
||||
#local-search
|
||||
background: #2d3035
|
||||
.local-search-box--input
|
||||
background: #2d3035
|
||||
color: #99a9bf
|
||||
|
||||
.search-result-title
|
||||
color: #99a9bf
|
||||
if hexo-config("algolia_search.enable")
|
||||
#algolia-search
|
||||
background: #2d3035
|
||||
.ais-search-box--input
|
||||
background: #2d3035
|
||||
color: #99a9bf
|
||||
|
||||
#algolia-search-results
|
||||
.algolia-hit-item-link
|
||||
color: #99a9bf !important
|
||||
|
||||
h1, h2, h3, h4, h5, h6
|
||||
color: #99a9bf
|
||||
|
||||
.article-container code
|
||||
background: #616a6b
|
||||
color: #99a9bf
|
||||
|
||||
// 評論
|
||||
#vcomment
|
||||
*
|
||||
color: #99a9bf !important
|
||||
|
||||
.vsys
|
||||
background: rgb(97, 106, 107) !important
|
||||
|
||||
.vbtn
|
||||
background: rgb(45, 48, 53) !important
|
||||
color: #99a9bf !important
|
||||
|
||||
.recent-post-item .article-title
|
||||
color: #99a9bf
|
||||
|
||||
#page-header
|
||||
&.fixed
|
||||
background: #2d3035
|
||||
box-shadow: 0 5px 6px -5px rgba(133,133,133,0)
|
||||
|
||||
a,
|
||||
.toggle-menu,
|
||||
#site-name
|
||||
color: #99a9bf
|
||||
|
||||
blockquote
|
||||
border-left: 0.2rem solid #7A5353
|
||||
color: #99a9bf
|
||||
background-color: #2f3d49
|
||||
|
||||
hr
|
||||
background: 0
|
||||
border: 2px dashed #616A6B
|
||||
&:before
|
||||
color: #99a9bf
|
||||
|
||||
.post-meta__tags
|
||||
background: 0
|
||||
border: 1px solid #99a9bf
|
||||
color: #99a9bf
|
||||
|
||||
|
||||
.post-copyright
|
||||
border: 1px solid #99a9bf
|
||||
|
||||
*
|
||||
color: #99a9bf
|
||||
|
||||
.article-container .highlight
|
||||
background-color: #1B2631
|
||||
.code pre
|
||||
background-color: #1B2631
|
||||
|
||||
.gutter pre
|
||||
background: #1C2833
|
||||
|
||||
|
||||
&:after
|
||||
background: rgb(27, 38, 59)
|
||||
|
||||
table
|
||||
&:after,.copy-notice
|
||||
background: rgb(27, 38, 59)
|
||||
|
||||
&::-webkit-scrollbar-thumb
|
||||
background: lighten(#1B2631,10)
|
||||
|
||||
.copy-notice
|
||||
background: rgb(27, 38, 59)
|
||||
|
||||
.post-cards,.md-links-item
|
||||
a
|
||||
color: #99a9bf
|
||||
|
||||
.aplayer
|
||||
color: #000000
|
||||
filter: brightness(0.6)
|
||||
|
||||
.article-sort-item__title
|
||||
color: #99a9bf
|
||||
|
||||
.category-list
|
||||
a
|
||||
color: #99a9bf
|
||||
|
||||
|
||||
|
||||
.translate_chn_to_cht,
|
||||
.nightshift,
|
||||
#readmode
|
||||
background-color: #2d3035 !important
|
||||
|
||||
img
|
||||
filter: brightness(0.6)
|
||||
|
||||
.layout_post
|
||||
background:#2d3035
|
||||
|
||||
canvas
|
||||
display: none !important
|
||||
|
||||
#aside_content
|
||||
.card_widget
|
||||
background:#2d3035 !important
|
||||
.headline,
|
||||
.length_num,
|
||||
.aside_post_title,
|
||||
.aside_category_list_link,
|
||||
.archive-list-link,
|
||||
.social-icon
|
||||
color: #99a9bf !important
|
||||
|
||||
#bookmark-it
|
||||
background: #616a6b !important
|
||||
|
||||
#archive,
|
||||
.tag-cloud,
|
||||
#tag,
|
||||
.category-content,
|
||||
#category,
|
||||
#page,
|
||||
.flink
|
||||
background:#2d3035
|
||||
|
||||
#nav,
|
||||
#top-container
|
||||
&::before
|
||||
content: ""
|
||||
position: absolute
|
||||
top: 0
|
||||
bottom: 0
|
||||
left: 0
|
||||
right: 0
|
||||
background-color: rgba(0,0,0,.6)
|
||||
|
||||
.layout_page
|
||||
.post-meta__date,
|
||||
.article-meta__separator,
|
||||
.article-meta__categories,
|
||||
i
|
||||
color: #99a9bf
|
||||
|
||||
#site-info .blogtitle,
|
||||
span.subtitle,
|
||||
#post-info .posttitle,
|
||||
#post-info #post-meta,
|
||||
#site-social-icons i,
|
||||
#top-container a
|
||||
color: rgba(238,238,238,.6)
|
||||
|
||||
//打賞 分享
|
||||
.post-reward
|
||||
.reward-buttom
|
||||
background-color: #616a6b
|
||||
.post_share
|
||||
filter: brightness(0.6)
|
||||
img
|
||||
filter: brightness(1)
|
||||
|
||||
&::-webkit-scrollbar-thumb
|
||||
background: lighten(#2d3035,5)
|
||||
|
||||
.more
|
||||
background-color: #616a6b
|
||||
|
||||
#post_bottom
|
||||
background: #2d3035
|
||||
box-shadow: 0 -5px 6px -5px rgba(133,133,133,0)
|
||||
|
||||
i
|
||||
color: #99a9bf !important
|
||||
|
||||
#toc_mobile
|
||||
background: #2d3035
|
||||
|
||||
a
|
||||
color: #99a9bf !important
|
||||
|
||||
@media screen and (max-width: 768px)
|
||||
.night-mode
|
||||
color: #99a9bf
|
||||
background-color: rgb(45, 48, 53)
|
||||
|
||||
#page-header
|
||||
.menus
|
||||
background: #2d3035
|
||||
a
|
||||
color: #99a9bf !important
|
||||
.menu-icon-first,
|
||||
.menu-icon-second,
|
||||
.menu-icon-third
|
||||
background-color: #99a9bf !important
|
||||
|
||||
|
||||
@media screen and (min-width: 768px)
|
||||
.night-mode
|
||||
color: #99a9bf
|
||||
background-color: #2d3032
|
||||
|
||||
.recent-post-item
|
||||
background: #2d3035 !important
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,256 +1,282 @@
|
||||
.note
|
||||
.note
|
||||
$note-icons = hexo-config('note.icons')
|
||||
$note-style = hexo-config('note.style')
|
||||
margin: 10px 0
|
||||
padding: 15px
|
||||
position: relative
|
||||
margin: 0 0 1rem
|
||||
padding: 15px
|
||||
|
||||
if ($note-style == 'simple')
|
||||
if ($note-style == 'simple')
|
||||
border: 1px solid $light-grey
|
||||
border-left-width: 5px
|
||||
|
||||
|
||||
if ($note-style == 'modern')
|
||||
background-color: $whitesmoke
|
||||
if ($note-style == 'modern')
|
||||
border: 1px solid transparent
|
||||
|
||||
background-color: $whitesmoke
|
||||
|
||||
if ($note-style == 'flat')
|
||||
background-color: lighten($light-grey, 65%)
|
||||
if ($note-style == 'flat')
|
||||
border: initial
|
||||
border-left: 5px solid $light-grey
|
||||
|
||||
background-color: lighten($light-grey, 65%)
|
||||
|
||||
if (hexo-config('note.border_radius') is a 'unit')
|
||||
if hexo-config('note.border_radius') is a 'unit'
|
||||
border-radius: unit(hexo-config('note.border_radius'), px)
|
||||
|
||||
|
||||
h2, h3, h4, h5, h6
|
||||
if ($note-icons)
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6
|
||||
if $note-icons
|
||||
margin-top: 3px
|
||||
else
|
||||
else
|
||||
margin-top: 0
|
||||
|
||||
|
||||
border-bottom: initial
|
||||
margin-bottom: 0
|
||||
padding-top: 0 !important
|
||||
|
||||
border-bottom: initial
|
||||
|
||||
p, ul, ol, table, pre, blockquote, img
|
||||
&:first-child
|
||||
margin-top: 0
|
||||
p,
|
||||
ul,
|
||||
ol,
|
||||
table,
|
||||
pre,
|
||||
blockquote,
|
||||
img
|
||||
&:first-child
|
||||
margin-top: 0 !important
|
||||
|
||||
&:last-child
|
||||
margin-bottom: 0
|
||||
|
||||
&:last-child
|
||||
margin-bottom: 0 !important
|
||||
|
||||
if ($note-icons)
|
||||
&:not(.no-icon)
|
||||
if $note-icons
|
||||
&:not(.no-icon)
|
||||
padding-left: 45px
|
||||
|
||||
&::before
|
||||
font-family: 'FontAwesome'
|
||||
font-size: larger
|
||||
left: 15px
|
||||
&::before
|
||||
position: absolute
|
||||
top: 13px
|
||||
|
||||
&.default
|
||||
if ($note-style == 'flat')
|
||||
background-color: $note-default-bg
|
||||
|
||||
left: 15px
|
||||
font-size: larger
|
||||
font-family: 'FontAwesome'
|
||||
|
||||
if ($note-style == 'modern')
|
||||
background-color: $note-modern-default-bg
|
||||
&.default
|
||||
if ($note-style == 'flat')
|
||||
background-color: $note-default-bg
|
||||
|
||||
if ($note-style == 'modern')
|
||||
border-color: $note-modern-default-border
|
||||
background-color: $note-modern-default-bg
|
||||
color: $note-modern-default-text
|
||||
|
||||
a, span.exturl
|
||||
&:not(.btn)
|
||||
a,
|
||||
span.exturl
|
||||
&:not(.btn)
|
||||
border-bottom: 1px solid $note-modern-default-text
|
||||
color: $note-modern-default-text
|
||||
|
||||
&:hover
|
||||
&:hover
|
||||
border-bottom: 1px solid $note-modern-default-hover
|
||||
color: $note-modern-default-hover
|
||||
|
||||
if ($note-style != 'modern')
|
||||
|
||||
if ($note-style != 'modern')
|
||||
border-left-color: $note-default-border
|
||||
|
||||
h2, h3, h4, h5, h6
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6
|
||||
color: $note-default-text
|
||||
|
||||
if ($note-icons)
|
||||
&:not(.no-icon)
|
||||
&::before
|
||||
|
||||
if $note-icons
|
||||
&:not(.no-icon)
|
||||
&::before
|
||||
content: $note-default-icon
|
||||
|
||||
if ($note-style != 'modern')
|
||||
if ($note-style != 'modern')
|
||||
color: $note-default-text
|
||||
|
||||
&.primary
|
||||
if ($note-style == 'flat')
|
||||
&.primary
|
||||
if ($note-style == 'flat')
|
||||
background-color: $note-primary-bg
|
||||
|
||||
|
||||
if ($note-style == 'modern')
|
||||
background-color: $note-modern-primary-bg
|
||||
if ($note-style == 'modern')
|
||||
border-color: $note-modern-primary-border
|
||||
background-color: $note-modern-primary-bg
|
||||
color: $note-modern-primary-text
|
||||
|
||||
a, span.exturl
|
||||
&:not(.btn)
|
||||
a,
|
||||
span.exturl
|
||||
&:not(.btn)
|
||||
border-bottom: 1px solid $note-modern-primary-text
|
||||
color: $note-modern-primary-text
|
||||
|
||||
&:hover
|
||||
&:hover
|
||||
border-bottom: 1px solid $note-modern-primary-hover
|
||||
color: $note-modern-primary-hover
|
||||
|
||||
if ($note-style != 'modern')
|
||||
|
||||
if ($note-style != 'modern')
|
||||
border-left-color: $note-primary-border
|
||||
|
||||
h2, h3, h4, h5, h6
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6
|
||||
color: $note-primary-text
|
||||
|
||||
if ($note-icons)
|
||||
&:not(.no-icon)
|
||||
&::before
|
||||
|
||||
if $note-icons
|
||||
&:not(.no-icon)
|
||||
&::before
|
||||
content: $note-primary-icon
|
||||
|
||||
if ($note-style != 'modern')
|
||||
if ($note-style != 'modern')
|
||||
color: $note-primary-text
|
||||
|
||||
&.info
|
||||
if ($note-style == 'flat')
|
||||
background-color: $note-info-bg
|
||||
|
||||
|
||||
if ($note-style == 'modern')
|
||||
background-color: $note-modern-info-bg
|
||||
&.info
|
||||
if ($note-style == 'flat')
|
||||
background-color: $note-info-bg
|
||||
|
||||
if ($note-style == 'modern')
|
||||
border-color: $note-modern-info-border
|
||||
background-color: $note-modern-info-bg
|
||||
color: $note-modern-info-text
|
||||
|
||||
a, span.exturl
|
||||
&:not(.btn)
|
||||
a,
|
||||
span.exturl
|
||||
&:not(.btn)
|
||||
border-bottom: 1px solid $note-modern-info-text
|
||||
color: $note-modern-info-text
|
||||
|
||||
&:hover
|
||||
&:hover
|
||||
border-bottom: 1px solid $note-modern-info-hover
|
||||
color: $note-modern-info-hover
|
||||
|
||||
if ($note-style != 'modern')
|
||||
|
||||
if ($note-style != 'modern')
|
||||
border-left-color: $note-info-border
|
||||
|
||||
h2, h3, h4, h5, h6
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6
|
||||
color: $note-info-text
|
||||
|
||||
if ($note-icons)
|
||||
&:not(.no-icon)
|
||||
&::before
|
||||
|
||||
if $note-icons
|
||||
&:not(.no-icon)
|
||||
&::before
|
||||
content: $note-info-icon
|
||||
|
||||
if ($note-style != 'modern')
|
||||
if ($note-style != 'modern')
|
||||
color: $note-info-text
|
||||
|
||||
&.success
|
||||
if ($note-style == 'flat')
|
||||
background-color: $note-success-bg
|
||||
|
||||
|
||||
if ($note-style == 'modern')
|
||||
background-color: $note-modern-success-bg
|
||||
&.success
|
||||
if ($note-style == 'flat')
|
||||
background-color: $note-success-bg
|
||||
|
||||
if ($note-style == 'modern')
|
||||
border-color: $note-modern-success-border
|
||||
background-color: $note-modern-success-bg
|
||||
color: $note-modern-success-text
|
||||
|
||||
a, span.exturl
|
||||
&:not(.btn)
|
||||
a,
|
||||
span.exturl
|
||||
&:not(.btn)
|
||||
border-bottom: 1px solid $note-modern-success-text
|
||||
color: $note-modern-success-text
|
||||
|
||||
&:hover
|
||||
&:hover
|
||||
border-bottom: 1px solid $note-modern-success-hover
|
||||
color: $note-modern-success-hover
|
||||
|
||||
if ($note-style != 'modern')
|
||||
|
||||
if ($note-style != 'modern')
|
||||
border-left-color: $note-success-border
|
||||
|
||||
h2, h3, h4, h5, h6
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6
|
||||
color: $note-success-text
|
||||
|
||||
if ($note-icons)
|
||||
&:not(.no-icon)
|
||||
&::before
|
||||
|
||||
if $note-icons
|
||||
&:not(.no-icon)
|
||||
&::before
|
||||
content: $note-success-icon
|
||||
|
||||
if ($note-style != 'modern')
|
||||
if ($note-style != 'modern')
|
||||
color: $note-success-text
|
||||
|
||||
&.warning
|
||||
if ($note-style == 'flat')
|
||||
background-color: $note-warning-bg
|
||||
|
||||
|
||||
if ($note-style == 'modern')
|
||||
background-color: $note-modern-warning-bg
|
||||
&.warning
|
||||
if ($note-style == 'flat')
|
||||
background-color: $note-warning-bg
|
||||
|
||||
if ($note-style == 'modern')
|
||||
border-color: $note-modern-warning-border
|
||||
background-color: $note-modern-warning-bg
|
||||
color: $note-modern-warning-text
|
||||
|
||||
a, span.exturl
|
||||
&:not(.btn)
|
||||
a,
|
||||
span.exturl
|
||||
&:not(.btn)
|
||||
border-bottom: 1px solid $note-modern-warning-text
|
||||
color: $note-modern-warning-text
|
||||
|
||||
&:hover
|
||||
&:hover
|
||||
border-bottom: 1px solid $note-modern-warning-hover
|
||||
color: $note-modern-warning-hover
|
||||
|
||||
if ($note-style != 'modern')
|
||||
|
||||
if ($note-style != 'modern')
|
||||
border-left-color: $note-warning-border
|
||||
|
||||
h2, h3, h4, h5, h6
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6
|
||||
color: $note-warning-text
|
||||
|
||||
if ($note-icons)
|
||||
&:not(.no-icon)
|
||||
&::before
|
||||
|
||||
if $note-icons
|
||||
&:not(.no-icon)
|
||||
&::before
|
||||
content: $note-warning-icon
|
||||
|
||||
if ($note-style != 'modern')
|
||||
if ($note-style != 'modern')
|
||||
color: $note-warning-text
|
||||
|
||||
&.danger
|
||||
if ($note-style == 'flat')
|
||||
background-color: $note-danger-bg
|
||||
|
||||
|
||||
if ($note-style == 'modern')
|
||||
background-color: $note-modern-danger-bg
|
||||
&.danger
|
||||
if ($note-style == 'flat')
|
||||
background-color: $note-danger-bg
|
||||
|
||||
if ($note-style == 'modern')
|
||||
border-color: $note-modern-danger-border
|
||||
background-color: $note-modern-danger-bg
|
||||
color: $note-modern-danger-text
|
||||
|
||||
a, span.exturl
|
||||
&:not(.btn)
|
||||
a,
|
||||
span.exturl
|
||||
&:not(.btn)
|
||||
border-bottom: 1px solid $note-modern-danger-text
|
||||
color: $note-modern-danger-text
|
||||
|
||||
&:hover
|
||||
&:hover
|
||||
border-bottom: 1px solid $note-modern-danger-hover
|
||||
color: $note-modern-danger-hover
|
||||
|
||||
|
||||
if ($note-style != 'modern')
|
||||
if ($note-style != 'modern')
|
||||
border-left-color: $note-danger-border
|
||||
|
||||
h2, h3, h4, h5, h6
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6
|
||||
color: $note-danger-text
|
||||
|
||||
if ($note-icons)
|
||||
&:not(.no-icon)
|
||||
&::before
|
||||
if $note-icons
|
||||
&:not(.no-icon)
|
||||
&::before
|
||||
content: $note-danger-icon
|
||||
|
||||
if ($note-style != 'modern')
|
||||
if ($note-style != 'modern')
|
||||
color: $note-danger-text
|
||||
|
||||
@@ -1,167 +1,176 @@
|
||||
galleryItemStyle(w, h)
|
||||
.gallery
|
||||
&-item
|
||||
width: w
|
||||
height: unit(h, "rem")
|
||||
.layout_page
|
||||
display: flex
|
||||
align-items: flex-start
|
||||
margin: 0 auto
|
||||
padding: 0 15px
|
||||
max-width: 1200px
|
||||
|
||||
&__title
|
||||
transform: translate3d(0, unit(h, "rem"), 0)
|
||||
// index
|
||||
#recent-posts
|
||||
width: 75%
|
||||
|
||||
&:hover
|
||||
.gallery-item__title
|
||||
transform: translate3d(0, unit(h - 1.5, "rem"), 0)
|
||||
|
||||
.recent-post-item
|
||||
.content
|
||||
margin-top: 0.5rem
|
||||
|
||||
p
|
||||
word-break: break-word
|
||||
|
||||
|
||||
ol,
|
||||
ul
|
||||
margin-top: 0.4rem
|
||||
padding: 0 0 0 0.8rem
|
||||
list-style: none
|
||||
counter-reset: li
|
||||
|
||||
p
|
||||
margin: 0
|
||||
|
||||
ol,
|
||||
ul
|
||||
padding-left: 0.5rem
|
||||
|
||||
li
|
||||
position: relative
|
||||
margin: 0.2rem 0
|
||||
padding: 0.1rem 0.5rem 0.1rem 1.5rem
|
||||
|
||||
&:hover
|
||||
&:before
|
||||
transform: rotate(360deg)
|
||||
|
||||
&:before
|
||||
position: absolute
|
||||
top: 0
|
||||
left: 0
|
||||
background: $light-blue
|
||||
color: $white
|
||||
cursor: pointer
|
||||
transition: all 0.3s ease-out
|
||||
|
||||
ol
|
||||
li
|
||||
&:before
|
||||
margin-top: 0.2rem
|
||||
width: w = 1.2rem
|
||||
height: h = w
|
||||
border-radius: 0.5 * w
|
||||
content: counter(li)
|
||||
counter-increment: li
|
||||
text-align: center
|
||||
font-size: 0.6rem
|
||||
line-height: h
|
||||
|
||||
ul
|
||||
li
|
||||
&:hover
|
||||
&:before
|
||||
border-color: $ruby
|
||||
|
||||
&:before
|
||||
$w = 0.3rem
|
||||
top: 10px
|
||||
margin-left: 0.45rem
|
||||
width: w = $w
|
||||
height: h = w
|
||||
border: 0.5 * w solid $light-blue
|
||||
border-radius: w
|
||||
background: $white
|
||||
content: ""
|
||||
line-height: h
|
||||
|
||||
.article-type
|
||||
margin-left: 0.3rem
|
||||
color: $grey
|
||||
|
||||
.article-meta
|
||||
color: $grey
|
||||
|
||||
.sticky
|
||||
color: $theme-button-hover-color
|
||||
|
||||
i
|
||||
margin: 0 0.2rem 0 0.3rem
|
||||
|
||||
&__separator
|
||||
margin-left: 0.3rem
|
||||
|
||||
.fa-angle-right,
|
||||
&__link
|
||||
margin: 0 0 0 0.3rem
|
||||
|
||||
time
|
||||
color: $grey
|
||||
|
||||
.more_setting
|
||||
display: none
|
||||
|
||||
.more
|
||||
display: inline-block
|
||||
padding: 0 1rem
|
||||
height: h = 1.6rem
|
||||
// background: $light-blue
|
||||
// color: $white
|
||||
text-align: center
|
||||
text-decoration: none
|
||||
line-height: h
|
||||
cursor: pointer
|
||||
// transition: all 0.2s ease-in-out
|
||||
|
||||
// &:hover
|
||||
// background: $ruby
|
||||
|
||||
.article-title
|
||||
margin-bottom: 0.3rem
|
||||
color: $black
|
||||
text-decoration: none
|
||||
font-size: 1.2rem
|
||||
cursor: pointer
|
||||
transition: all 0.2s ease-in-out
|
||||
line-height: 1.4
|
||||
text-overflow: ellipsis
|
||||
display: -webkit-box
|
||||
-webkit-box-orient: vertical
|
||||
-webkit-line-clamp: 2
|
||||
overflow: hidden
|
||||
word-wrap: break-word
|
||||
& > .recent-post-item
|
||||
display: flex
|
||||
flex-direction: row
|
||||
align-items: center
|
||||
margin-top: 20px
|
||||
padding: 0
|
||||
height: 280px
|
||||
border-radius: 8px
|
||||
background: #fff
|
||||
box-shadow: 0 4px 8px 6px rgba(7, 17, 27, .06)
|
||||
transition: all .3s
|
||||
|
||||
&:hover
|
||||
// border-bottom: 1px solid $light-blue
|
||||
color: $light-blue !important
|
||||
box-shadow: 0 4px 12px 12px rgba(7, 17, 27, .15)
|
||||
|
||||
img.post_bg
|
||||
transform: scale(1.1)
|
||||
|
||||
if hexo-config('index_post_cover') == 'both'
|
||||
.left_radius
|
||||
border-radius: 8px 0 0 8px
|
||||
|
||||
.right_radius
|
||||
order: 2
|
||||
border-radius: 0 8px 8px 0
|
||||
else if hexo-config('index_post_cover') == 'left'
|
||||
.left_radius
|
||||
border-radius: 8px 0 0 8px
|
||||
|
||||
.right_radius
|
||||
border-radius: 8px 0 0 8px
|
||||
else if hexo-config('index_post_cover') == 'right'
|
||||
.left_radius
|
||||
order: 2
|
||||
border-radius: 0 8px 8px 0
|
||||
|
||||
.right_radius
|
||||
order: 2
|
||||
border-radius: 0 8px 8px 0
|
||||
|
||||
.post_cover
|
||||
overflow: hidden
|
||||
width: 45%
|
||||
height: 280px
|
||||
|
||||
img.post_bg
|
||||
display: block
|
||||
margin: 0
|
||||
padding: 0
|
||||
width: 100%
|
||||
height: 100%
|
||||
border: 0
|
||||
transition: all .6s
|
||||
object-fit: cover
|
||||
|
||||
&:hover
|
||||
transform: scale(1.1)
|
||||
|
||||
& >.recent-post-info
|
||||
display: inline-block
|
||||
overflow: hidden
|
||||
padding: 0 40px
|
||||
width: 55%
|
||||
|
||||
& > .article-title
|
||||
display: -webkit-box
|
||||
overflow: hidden
|
||||
margin-bottom: .3rem
|
||||
color: $black
|
||||
text-decoration: none
|
||||
text-overflow: ellipsis
|
||||
word-wrap: break-word
|
||||
font-size: 1.2rem
|
||||
line-height: 1.4
|
||||
transition: all .2s ease-in-out
|
||||
-webkit-box-orient: vertical
|
||||
-webkit-line-clamp: 2
|
||||
|
||||
&:hover
|
||||
color: $light-blue !important
|
||||
|
||||
& > time
|
||||
color: $grey
|
||||
|
||||
& > .article-meta
|
||||
color: $grey
|
||||
|
||||
.sticky
|
||||
color: $theme-button-hover-color
|
||||
|
||||
i
|
||||
margin: 0 .2rem 0 .3rem
|
||||
|
||||
.article-meta__separator
|
||||
margin-left: .3rem
|
||||
|
||||
.fa-angle-right
|
||||
margin: 0 0 0 .3rem
|
||||
|
||||
a.article-meta__categories
|
||||
color: #858585
|
||||
text-decoration: none
|
||||
|
||||
&:hover
|
||||
color: #49b1f5 !important
|
||||
|
||||
& > .content
|
||||
display: -webkit-box
|
||||
overflow: hidden
|
||||
margin-top: .5rem
|
||||
height: 90px
|
||||
word-break: break-word
|
||||
-webkit-line-clamp: 3
|
||||
-webkit-box-orient: vertical
|
||||
|
||||
// tags page
|
||||
.tag-cloud
|
||||
padding: 1.5rem 1rem 2rem
|
||||
text-align: center
|
||||
|
||||
a
|
||||
display: inline-block
|
||||
margin: 0 0.4rem
|
||||
padding: 0 .4rem
|
||||
text-decoration: none
|
||||
cursor: pointer
|
||||
transition: all .3s
|
||||
|
||||
&:hover
|
||||
color: $ruby !important
|
||||
transform: scale(1.1)
|
||||
|
||||
&__title
|
||||
text-align: center
|
||||
font-size: 1.8rem
|
||||
|
||||
&-tags
|
||||
text-align: center
|
||||
|
||||
#tag,
|
||||
#category,
|
||||
#archive
|
||||
padding: 3rem 3rem 3rem
|
||||
padding: 3rem
|
||||
|
||||
.tag-cloud,
|
||||
#page,
|
||||
.category-content,
|
||||
.flink
|
||||
padding: 40px 44px 44px
|
||||
|
||||
#page,
|
||||
.category-content,
|
||||
#archive,
|
||||
.tag-cloud,
|
||||
.flink,
|
||||
#tag,
|
||||
#category
|
||||
margin-top: 20px
|
||||
width: 75%
|
||||
border-radius: 8px
|
||||
background: $white
|
||||
box-shadow: 0 4px 8px 6px rgba(7, 17, 27, .06)
|
||||
transition: all .3s
|
||||
|
||||
&:hover
|
||||
box-shadow: 0 4px 12px 12px rgba(7, 17, 27, .15)
|
||||
|
||||
.article-sort
|
||||
padding-left: 1rem
|
||||
@@ -180,50 +189,50 @@ galleryItemStyle(w, h)
|
||||
|
||||
&:before
|
||||
position: absolute
|
||||
top: 0.25rem
|
||||
left: calc(-0.5rem + 1px)
|
||||
top: .25rem
|
||||
left: calc(-.5rem + 1px)
|
||||
z-index: 1
|
||||
width: w = 0.5rem
|
||||
width: w = .5rem
|
||||
height: h = w
|
||||
border: 0.5 * w solid $light-blue
|
||||
border: .5 * w solid $light-blue
|
||||
border-radius: w
|
||||
background: $white
|
||||
content: ""
|
||||
content: ''
|
||||
line-height: h
|
||||
transition: all 0.2s ease-in-out
|
||||
transition: all .2s ease-in-out
|
||||
|
||||
&:after
|
||||
position: absolute
|
||||
bottom: 0
|
||||
left: 0
|
||||
z-index: 0
|
||||
width: 0.1rem
|
||||
width: .1rem
|
||||
height: 1.3rem
|
||||
background: $pale-blue
|
||||
content: ""
|
||||
content: ''
|
||||
|
||||
&-item
|
||||
position: relative
|
||||
margin-bottom: 1rem
|
||||
transition: all 0.2s ease-in-out
|
||||
margin: 0 0 1rem .5rem
|
||||
transition: all .2s ease-in-out
|
||||
|
||||
&:hover
|
||||
&:before
|
||||
border-color: $ruby
|
||||
|
||||
&:before
|
||||
$w = 0.3rem
|
||||
$w = .3rem
|
||||
position: absolute
|
||||
top: 0.48rem
|
||||
left: calc(-1rem - 7px)
|
||||
top: 1.8rem
|
||||
left: calc(-1rem - 17px)
|
||||
width: w = $w
|
||||
height: h = w
|
||||
border: 0.5 * w solid $light-blue
|
||||
border: .5 * w solid $light-blue
|
||||
border-radius: w
|
||||
background: $white
|
||||
content: ""
|
||||
content: ''
|
||||
line-height: h
|
||||
transition: all 0.2s ease-in-out
|
||||
transition: all .2s ease-in-out
|
||||
|
||||
&.year
|
||||
font-size: 1rem
|
||||
@@ -233,22 +242,58 @@ galleryItemStyle(w, h)
|
||||
border-color: $light-blue
|
||||
|
||||
&:before
|
||||
top: 0.7rem
|
||||
top: .7rem
|
||||
border-color: $ruby
|
||||
|
||||
&__time
|
||||
position: absolute
|
||||
top: 0.1rem
|
||||
padding-left: .4rem
|
||||
color: $a-link-color
|
||||
font-size: .7rem
|
||||
|
||||
&__title
|
||||
display: block
|
||||
margin-left: 5rem
|
||||
display: -webkit-box
|
||||
overflow: hidden
|
||||
height: 60px
|
||||
color: $font-black
|
||||
font-size: .75rem
|
||||
transition: all .3s
|
||||
-webkit-line-clamp: 2
|
||||
-webkit-box-orient: vertical
|
||||
|
||||
&:hover
|
||||
color: $light-blue
|
||||
transform: translateX(20px)
|
||||
|
||||
&__img
|
||||
img
|
||||
padding: 0
|
||||
width: 100%
|
||||
height: 100%
|
||||
transition: all .6s
|
||||
object-fit: cover
|
||||
|
||||
&:hover
|
||||
transform: scale(1.1)
|
||||
|
||||
&__post
|
||||
text-decoration: none
|
||||
font-size: 0.8rem
|
||||
cursor: pointer
|
||||
|
||||
&:hover
|
||||
color: $a-link-color
|
||||
|
||||
&-img
|
||||
display: inline-block
|
||||
overflow: hidden
|
||||
width: 80px
|
||||
height: 80px
|
||||
|
||||
&-post
|
||||
position: absolute
|
||||
top: 0
|
||||
display: inline-block
|
||||
margin-left: 1rem
|
||||
|
||||
.category-lists
|
||||
padding: 1rem 0 1.5rem
|
||||
|
||||
@@ -263,57 +308,75 @@ galleryItemStyle(w, h)
|
||||
cursor: pointer
|
||||
|
||||
.category-list-count
|
||||
margin-left: 0.4rem
|
||||
margin-left: .4rem
|
||||
color: $a-link-color
|
||||
|
||||
&:before
|
||||
content: "("
|
||||
content: '('
|
||||
|
||||
&:after
|
||||
content: ")"
|
||||
|
||||
.gallery
|
||||
&-item
|
||||
position: relative
|
||||
display: inline-block
|
||||
overflow: hidden
|
||||
margin: 0.4rem
|
||||
width: 6rem
|
||||
height: 6rem
|
||||
background-position: 50% 50%
|
||||
background-size: cover
|
||||
background-repeat: no-repeat
|
||||
cursor: pointer
|
||||
transition: all 0.2s ease-in-out
|
||||
|
||||
&__title
|
||||
position: absolute
|
||||
overflow: hidden
|
||||
padding: 0 0.4rem
|
||||
width: 100%
|
||||
height: 1.5rem
|
||||
background: rgba(0, 0, 0, 0.5)
|
||||
color: $pale-blue
|
||||
text-align: center
|
||||
text-overflow: ellipsis
|
||||
white-space: nowrap
|
||||
line-height: 1.5rem
|
||||
transition: 0.2s ease-in-out
|
||||
transform: translate3d(0, 6rem, 0)
|
||||
|
||||
&:hover
|
||||
.gallery-item__title
|
||||
transform: translate3d(0, 4.5rem, 0)
|
||||
content: ')'
|
||||
|
||||
@media screen and (max-width: $sm)
|
||||
.recent-post-item
|
||||
.article-title
|
||||
font-size: 1rem
|
||||
.layout_page
|
||||
padding: 0 5px !important
|
||||
|
||||
.article-meta.tags
|
||||
display: none
|
||||
#page,
|
||||
.category-content,
|
||||
#archive,
|
||||
.tag-cloud,
|
||||
.flink,
|
||||
#tag,
|
||||
#category
|
||||
margin: 0
|
||||
padding: 1.8rem 1.3rem
|
||||
|
||||
galleryItemStyle(calc(50% - 22px), 6)
|
||||
.category-lists
|
||||
padding: 0
|
||||
|
||||
@media screen and (min-width: $md)
|
||||
galleryItemStyle(8rem, 8)
|
||||
#recent-posts
|
||||
.recent-post-item
|
||||
flex-direction: column
|
||||
height: auto !important
|
||||
|
||||
.post_cover
|
||||
order: 1 !important
|
||||
width: 100%
|
||||
height: 230px
|
||||
border-radius: 8px 8px 0 0
|
||||
|
||||
.recent-post-info
|
||||
order: 2 !important
|
||||
padding: 30px 25px 18px !important
|
||||
width: 100%
|
||||
|
||||
.article-title
|
||||
font-size: 1rem
|
||||
|
||||
.article-meta.tags
|
||||
display: none
|
||||
|
||||
&:first-child
|
||||
margin: 0
|
||||
|
||||
@media screen and (min-width: 900px)
|
||||
if hexo-config('aside.position') == 'left'
|
||||
#recent-posts,
|
||||
#page,
|
||||
.category-content,
|
||||
#archive,
|
||||
.tag-cloud,
|
||||
.flink,
|
||||
#tag,
|
||||
#category
|
||||
order: 2
|
||||
|
||||
@media screen and (max-width: 900px)
|
||||
#page,
|
||||
.category-content,
|
||||
#archive,
|
||||
.tag-cloud,
|
||||
.flink,
|
||||
#tag,
|
||||
#category
|
||||
width: 100% !important
|
||||
@@ -5,12 +5,13 @@
|
||||
|
||||
.pagination
|
||||
text-align: center
|
||||
|
||||
.space
|
||||
color: $a-link-color
|
||||
|
||||
.page-number
|
||||
display: inline-block
|
||||
margin: 0 0.2rem
|
||||
margin: 0 .2rem
|
||||
min-width: w = 1.2rem
|
||||
height: w
|
||||
text-align: center
|
||||
@@ -22,92 +23,79 @@
|
||||
color: $white
|
||||
cursor: default
|
||||
|
||||
img.prev_cover, img.next_cover
|
||||
img.prev_cover,
|
||||
img.next_cover
|
||||
position: absolute
|
||||
padding: 0
|
||||
top: 0
|
||||
left: 0
|
||||
padding: 0
|
||||
width: 100%
|
||||
height: 100%
|
||||
opacity: .4
|
||||
background-size: cover
|
||||
transition: all 0.6s;
|
||||
object-fit: cover
|
||||
opacity: .4
|
||||
transition: all .6s
|
||||
pointer-events: none
|
||||
object-fit: cover
|
||||
|
||||
.prev_info
|
||||
position: absolute
|
||||
z-index: 100
|
||||
font-weight: 400
|
||||
width: 70%
|
||||
color: #fff
|
||||
overflow: hidden
|
||||
white-space: nowrap
|
||||
-o-text-overflow: ellipsis
|
||||
text-overflow: ellipsis
|
||||
display: block
|
||||
bottom: 50px
|
||||
|
||||
.prev_info,
|
||||
.next_info
|
||||
position: absolute
|
||||
z-index: 100
|
||||
font-weight: 400
|
||||
width: 70%
|
||||
color: #fff
|
||||
overflow: hidden
|
||||
white-space: nowrap
|
||||
-o-text-overflow: ellipsis
|
||||
text-overflow: ellipsis
|
||||
display: block
|
||||
right: 40px
|
||||
bottom: 50px
|
||||
z-index: 100
|
||||
display: block
|
||||
overflow: hidden
|
||||
width: 70%
|
||||
color: $white
|
||||
text-overflow: ellipsis
|
||||
white-space: nowrap
|
||||
font-weight: 400
|
||||
|
||||
.next_info
|
||||
right: 40px
|
||||
text-align: right
|
||||
|
||||
.pull-full
|
||||
width: 100% !important
|
||||
|
||||
.prev-post .label
|
||||
position: absolute
|
||||
top: 50px
|
||||
z-index: 100
|
||||
font-size: 13px
|
||||
display: block
|
||||
text-transform: uppercase
|
||||
color: rgba(255,255,255,.7)
|
||||
|
||||
.prev-post .label,
|
||||
.next-post .label
|
||||
position: absolute
|
||||
top: 50px
|
||||
right: 40px
|
||||
z-index: 100
|
||||
display: block
|
||||
color: alpha($white, .9)
|
||||
text-transform: uppercase
|
||||
color: rgba(255,255,255,.7)
|
||||
font-size: 90%
|
||||
|
||||
.prev-post, .next-post
|
||||
width: 50%
|
||||
.next-post .label
|
||||
right: 40px
|
||||
|
||||
.prev-post,
|
||||
.next-post
|
||||
float: left
|
||||
width: 50%
|
||||
|
||||
a
|
||||
width: 100%
|
||||
height: 150px
|
||||
padding: 55px 40px
|
||||
text-align: left
|
||||
position: relative
|
||||
display: block
|
||||
float: left
|
||||
overflow: hidden
|
||||
padding: 55px 40px
|
||||
width: 100%
|
||||
height: 150px
|
||||
text-align: left
|
||||
|
||||
&:hover
|
||||
img.prev_cover, img.next_cover
|
||||
img.prev_cover,
|
||||
img.next_cover
|
||||
opacity: .8
|
||||
transform:scale(1.1)
|
||||
transform: scale(1.1)
|
||||
|
||||
|
||||
@media screen and (max-width:768px)
|
||||
.prev-post, .next-post
|
||||
width: 100% !important
|
||||
|
||||
.pagination_post
|
||||
&.pagination_post
|
||||
margin: 2rem 0 !important
|
||||
background: #000
|
||||
background: $dark-black
|
||||
|
||||
@media screen and (max-width: 768px)
|
||||
.prev-post,
|
||||
.next-post
|
||||
width: 100% !important
|
||||
|
||||
@@ -1,125 +1,207 @@
|
||||
#post-title
|
||||
font-size: 1.4rem
|
||||
if hexo-config('post_beautify.enable')
|
||||
headStyle(fontsize)
|
||||
padding-left: unit(fontsize + .3, 'rem')
|
||||
|
||||
#post
|
||||
overflow: hidden
|
||||
code
|
||||
font-size: unit(fontsize, 'rem')
|
||||
|
||||
&-meta
|
||||
text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.15)
|
||||
&:before
|
||||
top: calc(50% - unit(fontsize / 2 - .05, 'rem'))
|
||||
font-size: unit(fontsize, 'rem')
|
||||
|
||||
#post-meta
|
||||
color: $grey
|
||||
|
||||
a
|
||||
text-decoration: none
|
||||
|
||||
i.fa.fa-comment-o
|
||||
margin-right: 0.2rem
|
||||
&:hover
|
||||
padding-left: unit(fontsize + .2, 'rem')
|
||||
|
||||
#top-container
|
||||
position: relative
|
||||
margin-bottom: 1rem
|
||||
height: 19rem
|
||||
background-color: $light-blue
|
||||
background-attachment: local
|
||||
background-position: center
|
||||
background-size: cover
|
||||
height: 19rem
|
||||
|
||||
&:before
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: block;
|
||||
content: '';
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 0.5;
|
||||
background-color: #394245;
|
||||
background-image: linear-gradient(234deg, #394245 0%, #000 100%);
|
||||
position: absolute
|
||||
top: 0
|
||||
left: 0
|
||||
display: block
|
||||
width: 100%
|
||||
height: 100%
|
||||
background-color: alpha($dark-black, .5)
|
||||
content: ''
|
||||
|
||||
a
|
||||
color: $light-grey
|
||||
text-decoration: none
|
||||
transition: all 0.3s ease-out
|
||||
transition: all .3s ease-out
|
||||
|
||||
&:hover
|
||||
color: $white
|
||||
text-decoration: underline
|
||||
|
||||
#top-img
|
||||
padding: 0
|
||||
border: none
|
||||
|
||||
#site-name
|
||||
font-weight: bold
|
||||
cursor: pointer
|
||||
|
||||
#post-info
|
||||
& > #post-info
|
||||
position: absolute
|
||||
bottom: 1.5rem
|
||||
padding: 0 8%
|
||||
width: 100%
|
||||
color: $light-grey
|
||||
text-align: left
|
||||
padding-left: 8%
|
||||
position: absolute
|
||||
bottom: 1.5rem
|
||||
|
||||
#post-title
|
||||
text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.15)
|
||||
font-size: 1.5rem
|
||||
#post-title
|
||||
margin-bottom: .4rem
|
||||
font-size: 1.5rem
|
||||
|
||||
i.fa.fa-angle-right
|
||||
margin: 0 0.3rem 0 0.2rem
|
||||
.posttitle
|
||||
display: -webkit-box
|
||||
overflow: hidden
|
||||
line-height: 1.5
|
||||
-webkit-line-clamp: 3
|
||||
-webkit-box-orient: vertical
|
||||
|
||||
.post-meta
|
||||
&__separator
|
||||
margin: 0 0.3rem
|
||||
#post-meta
|
||||
.word-count,
|
||||
#busuanzi_value_page_pv,
|
||||
.comment-count
|
||||
padding-left: .2rem
|
||||
|
||||
&__icon
|
||||
margin-right: 0.2rem
|
||||
.post-meta
|
||||
&__separator
|
||||
margin: 0 .3rem
|
||||
|
||||
&__tags
|
||||
display: inline-block
|
||||
width: fit-content
|
||||
margin: 0.4rem 0.4rem 0.4rem 0
|
||||
padding: 0rem 0.6rem
|
||||
border: 1px solid $light-blue
|
||||
border-radius: 0.6rem
|
||||
background: $white
|
||||
color: $light-blue
|
||||
text-decoration: none
|
||||
font-size: 12px
|
||||
cursor: pointer
|
||||
transition: all 0.2s ease-in-out
|
||||
&__icon
|
||||
margin-right: .2rem
|
||||
|
||||
&:hover
|
||||
background: $light-blue
|
||||
color: $white
|
||||
|
||||
.layout
|
||||
margin: 0 auto
|
||||
max-width: 1000px
|
||||
&-pv-cv
|
||||
display: inline-block
|
||||
|
||||
#post-content
|
||||
margin-bottom: 1rem
|
||||
if hexo-config('post_beautify.enable')
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6
|
||||
cursor: pointer
|
||||
transition: all .2s ease-out
|
||||
|
||||
ol,
|
||||
ul
|
||||
margin-top: 0.4rem
|
||||
counter-reset: li
|
||||
&:before
|
||||
position: absolute
|
||||
top: calc(50% - .35rem)
|
||||
left: 0
|
||||
color: $title-prefix-icon-color
|
||||
content: $title-prefix-icon
|
||||
font: normal normal normal 14px / 1 FontAwesome
|
||||
font-size: .8rem
|
||||
transition: all .2s ease-out
|
||||
|
||||
p
|
||||
margin: 0
|
||||
&:hover
|
||||
padding-left: 1.1rem
|
||||
|
||||
&:before
|
||||
color: $light-blue
|
||||
|
||||
h1
|
||||
headStyle(1)
|
||||
|
||||
h2
|
||||
headStyle(.9)
|
||||
|
||||
h3
|
||||
headStyle(.8)
|
||||
|
||||
h4
|
||||
headStyle(.7)
|
||||
|
||||
h5
|
||||
headStyle(.6)
|
||||
|
||||
h6
|
||||
headStyle(.6)
|
||||
|
||||
ol,
|
||||
ul
|
||||
padding-left: 0.5rem
|
||||
margin-top: .4rem
|
||||
padding: 0 0 0 .8rem
|
||||
list-style: none
|
||||
counter-reset: li
|
||||
|
||||
li
|
||||
position: relative
|
||||
margin: 0.3rem 0
|
||||
padding-left: 0.3rem
|
||||
p
|
||||
margin: 0 0 .5rem
|
||||
|
||||
ol,
|
||||
ul
|
||||
padding-left: .5rem
|
||||
|
||||
li
|
||||
position: relative
|
||||
margin: .2rem 0
|
||||
padding: .1rem .5rem .1rem 1.5rem
|
||||
|
||||
&:hover
|
||||
&:before
|
||||
transform: rotate(360deg)
|
||||
|
||||
&:before
|
||||
position: absolute
|
||||
top: 0
|
||||
left: 0
|
||||
background: $light-blue
|
||||
color: $white
|
||||
cursor: pointer
|
||||
transition: all .3s ease-out
|
||||
|
||||
ol
|
||||
> li
|
||||
&:before
|
||||
margin-top: .2rem
|
||||
width: w = 1.2rem
|
||||
height: h = w
|
||||
border-radius: .5 * w
|
||||
content: counter(li)
|
||||
counter-increment: li
|
||||
text-align: center
|
||||
font-size: .6rem
|
||||
line-height: h
|
||||
|
||||
ul
|
||||
> li
|
||||
&:hover
|
||||
&:before
|
||||
border-color: $ruby
|
||||
|
||||
&:before
|
||||
$w = .3rem
|
||||
top: 10px
|
||||
margin-left: .45rem
|
||||
width: w = $w
|
||||
height: h = w
|
||||
border: .5 * w solid $light-blue
|
||||
border-radius: w
|
||||
background: $white
|
||||
content: ''
|
||||
line-height: h
|
||||
else
|
||||
ol,
|
||||
ul
|
||||
margin-top: .4rem
|
||||
counter-reset: li
|
||||
|
||||
p
|
||||
margin: 0 0 .5rem
|
||||
|
||||
ol,
|
||||
ul
|
||||
padding-left: .5rem
|
||||
|
||||
li
|
||||
position: relative
|
||||
margin: .3rem 0
|
||||
padding-left: .3rem
|
||||
|
||||
a
|
||||
color: $a-link-color
|
||||
transition: all 0.2s
|
||||
transition: all .2s
|
||||
|
||||
&:hover
|
||||
color: $light-blue
|
||||
@@ -139,174 +221,209 @@ a.fancybox
|
||||
text-align: center
|
||||
text-decoration: none
|
||||
|
||||
p
|
||||
margin: 0 0 .8rem
|
||||
|
||||
img
|
||||
padding: $img-border-padding
|
||||
max-width: 100%
|
||||
transition: all 0.2s
|
||||
transition: all .2s
|
||||
|
||||
&:hover
|
||||
box-shadow: 0 0 8px 0 rgba(232, 237, 250, 0.6), 0 2px 4px 0 rgba(232, 237, 250, 0.5)
|
||||
|
||||
.code-area-wrap
|
||||
position: relative
|
||||
|
||||
.fa-clipboard
|
||||
position: absolute
|
||||
top: 0.4rem
|
||||
right: 10px
|
||||
z-index: 1
|
||||
color: $highlight-aqua
|
||||
cursor: pointer
|
||||
transition: color 0.2s
|
||||
|
||||
&:hover
|
||||
color: darken($highlight-aqua, 20%)
|
||||
|
||||
.copy-notice
|
||||
position: absolute
|
||||
top: 0
|
||||
right: 0
|
||||
z-index: 1
|
||||
background: darken($highlight-background, 5)
|
||||
color: $highlight-aqua
|
||||
opacity: 0
|
||||
|
||||
.post-copyright
|
||||
position: relative
|
||||
margin-bottom: 0.4rem
|
||||
padding: 0.5rem 0.8rem
|
||||
border: 1px solid $light-grey
|
||||
transition: box-shadow 0.3s ease-in-out
|
||||
|
||||
&:before
|
||||
// highlight
|
||||
.highlight-tools
|
||||
.code-expand
|
||||
position: absolute
|
||||
top: t = 0.5rem
|
||||
right: t
|
||||
width: w = 0.8rem
|
||||
height: w
|
||||
border-radius: w
|
||||
background: $light-blue
|
||||
content: ""
|
||||
top: 0
|
||||
z-index: 1
|
||||
padding: 7px 10px
|
||||
color: $highlight-foreground
|
||||
cursor: pointer
|
||||
transition: all .3s
|
||||
transform: rotate(0)
|
||||
|
||||
&:after
|
||||
& + .code_lang
|
||||
left: 30px
|
||||
|
||||
&.code-closed
|
||||
transition: all .3s
|
||||
transform: rotate(-90deg) !important
|
||||
|
||||
.code_lang
|
||||
position: absolute
|
||||
top: t = 0.7rem
|
||||
right: t
|
||||
width: w = 0.4rem
|
||||
height: w
|
||||
border-radius: w
|
||||
background: $white
|
||||
content: ""
|
||||
|
||||
&:hover
|
||||
box-shadow: 0 0 8px 0 rgba(232, 237, 250, 0.6), 0 2px 4px 0 rgba(232, 237, 250, 0.5)
|
||||
|
||||
&-meta
|
||||
color: $light-blue
|
||||
left: 15px
|
||||
z-index: 1
|
||||
color: $highlight-foreground
|
||||
text-transform: capitalize
|
||||
font-weight: bold
|
||||
font-size: .8rem
|
||||
line-height: 1.4rem
|
||||
cursor: pointer
|
||||
|
||||
&-info
|
||||
a
|
||||
word-break: break-word
|
||||
.copy-notice
|
||||
position: absolute
|
||||
top: 0
|
||||
right: 0
|
||||
z-index: 1
|
||||
background: darken($highlight-background, 5)
|
||||
color: $highlight-aqua
|
||||
opacity: 0
|
||||
|
||||
.fa-clipboard
|
||||
position: absolute
|
||||
top: .4rem
|
||||
right: 10px
|
||||
z-index: 1
|
||||
color: $highlight-aqua
|
||||
cursor: pointer
|
||||
transition: color .2s
|
||||
|
||||
@media screen and (max-width: $sm)
|
||||
.layout
|
||||
margin: 0 30px
|
||||
width: auto
|
||||
|
||||
#top-container
|
||||
// background-attachment: local
|
||||
|
||||
#post-title
|
||||
font-size: 1rem
|
||||
|
||||
#post-title
|
||||
font-size: 1.1rem
|
||||
|
||||
&:hover
|
||||
color: darken($highlight-aqua, 20%)
|
||||
|
||||
@media screen and (min-width: $md)
|
||||
.layout
|
||||
.layout_post
|
||||
width: $content-large-width
|
||||
|
||||
|
||||
|
||||
.katex-wrap
|
||||
overflow: auto
|
||||
if hexo-config("katex") && hexo-config("katex.hide_scrollbar")
|
||||
|
||||
if hexo-config('katex') && hexo-config('katex.hide_scrollbar')
|
||||
&::-webkit-scrollbar
|
||||
display: none
|
||||
|
||||
|
||||
// 文章字體
|
||||
#post-content p {
|
||||
font-size: 1.1em
|
||||
}
|
||||
|
||||
#post-content ol, #post-content ul {
|
||||
font-size: 1em
|
||||
}
|
||||
|
||||
|
||||
|
||||
@media screen and (max-width: 1024px)
|
||||
.layout
|
||||
margin: 0 15px
|
||||
width: auto
|
||||
|
||||
|
||||
|
||||
|
||||
.layout_post
|
||||
.layout_post
|
||||
margin: 40px auto
|
||||
padding: 50px
|
||||
-webkit-box-shadow: 0 4px 8px 6px rgba(7,17,27,0.06)
|
||||
box-shadow: 0 4px 8px 6px rgba(7,17,27,0.06)
|
||||
max-width: 1000px
|
||||
border-radius: 8px
|
||||
-webkit-transition: all 0.3s
|
||||
-moz-transition: all 0.3s
|
||||
-o-transition: all 0.3s
|
||||
-ms-transition: all 0.3s
|
||||
transition: all 0.3s
|
||||
background: #fff
|
||||
margin-top: 40px
|
||||
margin-bottom: 40px
|
||||
box-shadow: 0 4px 8px 6px rgba(7, 17, 27, .06)
|
||||
transition: all .3s
|
||||
|
||||
&:hover
|
||||
box-shadow: 0 4px 12px 12px rgba(7, 17, 27, .15)
|
||||
|
||||
&:hover
|
||||
-webkit-box-shadow: 0 4px 12px 12px rgba(7,17,27,0.15)
|
||||
box-shadow: 0 4px 12px 12px rgba(7,17,27,0.15)
|
||||
|
||||
img
|
||||
margin:0 auto
|
||||
display:block
|
||||
|
||||
|
||||
|
||||
.tag_share
|
||||
display: block
|
||||
|
||||
.post-meta__tag-list
|
||||
display: inline-block
|
||||
& >.tag_share
|
||||
.post-meta
|
||||
&__tag-list
|
||||
display: inline-block
|
||||
|
||||
&__tags
|
||||
display: inline-block
|
||||
margin: .4rem .4rem .4rem 0
|
||||
padding: 0 .6rem
|
||||
width: fit-content
|
||||
border: 1px solid $light-blue
|
||||
border-radius: .6rem
|
||||
background: $white
|
||||
color: $light-blue
|
||||
text-decoration: none
|
||||
font-size: 12px
|
||||
cursor: pointer
|
||||
transition: all .2s ease-in-out
|
||||
|
||||
&:hover
|
||||
background: $light-blue
|
||||
color: $white
|
||||
|
||||
.post_share
|
||||
width: fit-content;
|
||||
display: inline-block;
|
||||
float: right;
|
||||
margin: 0.4rem 0
|
||||
display: inline-block
|
||||
float: right
|
||||
margin: .4rem 0
|
||||
width: fit-content
|
||||
|
||||
.social-share
|
||||
font-size: 12px
|
||||
|
||||
.social-share .social-share-icon
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
font-size: 15px;
|
||||
line-height: 25px;
|
||||
.social-share-icon
|
||||
margin: 0 4px
|
||||
width: 26px
|
||||
height: 26px
|
||||
font-size: 15px
|
||||
line-height: 25px
|
||||
|
||||
.social-share a
|
||||
margin: 0 4px;
|
||||
|
||||
& > .post-copyright
|
||||
position: relative
|
||||
margin: 2rem 0 .5rem
|
||||
padding: .5rem .8rem
|
||||
border: 1px solid $light-grey
|
||||
transition: box-shadow .3s ease-in-out
|
||||
|
||||
&:before
|
||||
position: absolute
|
||||
top: t = .5rem
|
||||
right: t
|
||||
width: w = .8rem
|
||||
height: w
|
||||
border-radius: w
|
||||
background: $light-blue
|
||||
content: ''
|
||||
|
||||
&:after
|
||||
position: absolute
|
||||
top: t = .7rem
|
||||
right: t
|
||||
width: w = .4rem
|
||||
height: w
|
||||
border-radius: w
|
||||
background: $white
|
||||
content: ''
|
||||
|
||||
&:hover
|
||||
box-shadow: 0 0 8px 0 rgba(232, 237, 250, .6), 0 2px 4px 0 rgba(232, 237, 250, .5)
|
||||
|
||||
.post-copyright
|
||||
&-meta
|
||||
color: $light-blue
|
||||
font-weight: bold
|
||||
|
||||
&-info
|
||||
padding-left: .3rem
|
||||
|
||||
a
|
||||
word-break: break-word
|
||||
|
||||
#post
|
||||
a
|
||||
color: $light-blue
|
||||
text-decoration: none
|
||||
color: $light-blue
|
||||
|
||||
&:hover
|
||||
text-decoration: underline
|
||||
|
||||
img
|
||||
margin: .8rem auto
|
||||
|
||||
@media screen and (max-width: 1024px)
|
||||
.layout_post
|
||||
margin: 0 15px
|
||||
width: auto
|
||||
|
||||
@media screen and (max-width: $sm)
|
||||
.layout_post
|
||||
margin: 0 5px
|
||||
padding: 1.8rem 1rem
|
||||
|
||||
#top-container
|
||||
height: 18rem
|
||||
|
||||
& > #post-info
|
||||
bottom: 1rem
|
||||
padding: 0 5%
|
||||
|
||||
& > #post-title
|
||||
font-size: 1.2rem
|
||||
|
||||
& > #post-meta
|
||||
font-size: 90%
|
||||
|
||||
& > span
|
||||
display: none
|
||||
|
||||
.post-meta-pv-cv
|
||||
display: block
|
||||
|
||||
.post-meta__separator:first-child
|
||||
display: none
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
#post_bottom
|
||||
position: fixed
|
||||
bottom: -50px
|
||||
background: alpha($white, 0.8)
|
||||
width: 100%
|
||||
border: none
|
||||
box-shadow: 0 -5px 6px -5px alpha($grey, 0.6)
|
||||
display: none
|
||||
transition: all .2s
|
||||
cursor: pointer
|
||||
|
||||
&.toc_mobile_show
|
||||
bottom: 0
|
||||
|
||||
#to_comment,#mobile_toc
|
||||
width: 50%
|
||||
text-align: center
|
||||
font-size: 18px
|
||||
padding: 7px 0
|
||||
display: inline-block
|
||||
color: $light-black
|
||||
|
||||
a
|
||||
text-decoration: none
|
||||
color: $light-black
|
||||
|
||||
#toc_mobile
|
||||
box-shadow: 0 0 4px alpha($grey, 0.6)
|
||||
background: $white
|
||||
width: 50%
|
||||
height: 70%
|
||||
position: fixed
|
||||
bottom: 65px
|
||||
right: 10px
|
||||
overflow: scroll
|
||||
padding: 15px 10px
|
||||
font-size: 15px
|
||||
border-radius: 10px
|
||||
display: none
|
||||
|
||||
ol,li
|
||||
list-style: none
|
||||
padding: 0 0 0 5px
|
||||
margin: 0
|
||||
|
||||
a
|
||||
&:hover
|
||||
color: $light-blue
|
||||
|
||||
.toc_mobile_headline
|
||||
text-align: center
|
||||
font-size: 18px
|
||||
font-weight: bold
|
||||
|
||||
@media screen and (max-width:768px)
|
||||
#post_bottom
|
||||
display: block
|
||||
@@ -1,117 +1,93 @@
|
||||
if hexo-config("readmode") && hexo-config("readmode.enable")
|
||||
if hexo-config('readmode') && hexo-config('readmode.enable')
|
||||
.read-mode
|
||||
background: $pale-yellow
|
||||
padding: 0 !important
|
||||
background: $pale-yellow
|
||||
|
||||
#sidebar,
|
||||
#toggle-sidebar
|
||||
display: none
|
||||
#page-header
|
||||
#site-name,
|
||||
.site-page
|
||||
color: $font-black
|
||||
text-shadow: none
|
||||
|
||||
.menus_item_child
|
||||
background-color: darken($pale-yellow, 3) !important
|
||||
|
||||
& > li
|
||||
&:hover
|
||||
background-color: darken($pale-yellow, 10) !important
|
||||
|
||||
#top-container
|
||||
background-image: none !important
|
||||
height: 14rem
|
||||
background-color: $pale-yellow
|
||||
background-image: none !important
|
||||
|
||||
a
|
||||
color: #4c4948
|
||||
|
||||
color: $font-black
|
||||
|
||||
&:before
|
||||
opacity: 0
|
||||
|
||||
#site-name,
|
||||
.site-page
|
||||
text-shadow: none
|
||||
color: #4c4948
|
||||
|
||||
#post-info
|
||||
text-align: center
|
||||
padding: 0
|
||||
color: #4c4948
|
||||
|
||||
#post-title,
|
||||
#post-meta
|
||||
text-shadow: none
|
||||
|
||||
#page-header
|
||||
&.fixed
|
||||
background: none
|
||||
box-shadow: none
|
||||
|
||||
&.open-sidebar
|
||||
.site-page
|
||||
display: inline-block
|
||||
opacity: 1
|
||||
|
||||
.toggle-menu
|
||||
.menu-icon-first,
|
||||
.menu-icon-second,
|
||||
.menu-icon-third
|
||||
background-color: #4c4948
|
||||
& > #post-info
|
||||
padding: 0
|
||||
color: $font-black
|
||||
text-align: center
|
||||
|
||||
#page-header
|
||||
&.fixed
|
||||
background: alpha(darken($pale-yellow, 5), .5)
|
||||
box-shadow: none
|
||||
|
||||
&.open-sidebar
|
||||
.site-page
|
||||
visibility: visible
|
||||
|
||||
.layout_post
|
||||
box-shadow: none
|
||||
background: $pale-yellow
|
||||
box-shadow: none
|
||||
|
||||
&:hover
|
||||
box-shadow: none
|
||||
|
||||
.article-container
|
||||
|
||||
.article-container
|
||||
pre,
|
||||
.highlight
|
||||
background: darken($pale-yellow,5);
|
||||
|
||||
.highlight
|
||||
&:after
|
||||
background: darken($pale-yellow,10);
|
||||
table
|
||||
&:after
|
||||
background: darken($pale-yellow,10);
|
||||
|
||||
|
||||
.highlight:not(.js-file-line-container)
|
||||
background: darken($pale-yellow, 5)
|
||||
|
||||
.highlight
|
||||
display: block !important
|
||||
|
||||
blockquote
|
||||
border-left: 0.2rem solid #d6dbdf
|
||||
background-color: rgba(102,128,153,.05)
|
||||
|
||||
border-left: .2rem solid #d6dbdf
|
||||
background-color: rgba(102, 128, 153, .05)
|
||||
|
||||
#rightside
|
||||
#nightshift
|
||||
#darkmode
|
||||
display: none
|
||||
|
||||
canvas
|
||||
|
||||
& > canvas
|
||||
display: none !important
|
||||
|
||||
footer,
|
||||
#post-comment,
|
||||
hr,
|
||||
.relatedPosts,
|
||||
#pagination,
|
||||
.post-reward,
|
||||
.tag_share,
|
||||
.post-copyright
|
||||
|
||||
.code-area-wrap > .highlight-tools,
|
||||
#sidebar,
|
||||
#toggle-sidebar,
|
||||
#footer,
|
||||
.layout_post > div,
|
||||
.layout_post > hr,
|
||||
.layout_post > nav
|
||||
display: none
|
||||
|
||||
|
||||
hr
|
||||
border: 2px dashed #d6dbdf
|
||||
background: transparent
|
||||
|
||||
&:before
|
||||
color: darken(#d6dbdf, 10)
|
||||
|
||||
&::-webkit-scrollbar-thumb
|
||||
background: darken($pale-yellow,15)
|
||||
background: darken($pale-yellow, 10)
|
||||
|
||||
*::-webkit-scrollbar-thumb
|
||||
background: darken($pale-yellow,15)
|
||||
|
||||
.copy-notice
|
||||
background: darken($pale-yellow,10)
|
||||
|
||||
background: darken($pale-yellow, 10)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#web_bg
|
||||
background: none
|
||||
|
||||
@@ -1,80 +1,74 @@
|
||||
.relatedPosts
|
||||
margin: 0 auto
|
||||
padding: 0
|
||||
margin-top: 1rem
|
||||
width: 100%
|
||||
margin: 0 auto
|
||||
margin-top: 1rem
|
||||
padding: 0
|
||||
width: 100%
|
||||
|
||||
.relatedPosts_item
|
||||
width: calc(100%/3 - 10px)
|
||||
height: 200px
|
||||
overflow: hidden
|
||||
float: left
|
||||
position: relative
|
||||
margin: 5px
|
||||
background: #000
|
||||
.relatedPosts_item
|
||||
position: relative
|
||||
float: left
|
||||
overflow: hidden
|
||||
margin: 5px
|
||||
width: calc(100% / 3 - 10px)
|
||||
height: 200px
|
||||
background: $dark-black
|
||||
|
||||
&:hover
|
||||
.relatedPosts_cover
|
||||
opacity: .8
|
||||
transform:scale(1.1)
|
||||
&:hover
|
||||
.relatedPosts_cover
|
||||
opacity: .8
|
||||
transform: scale(1.1)
|
||||
|
||||
a
|
||||
text-decoration: none
|
||||
|
||||
.relatedPosts_cover
|
||||
border: 0
|
||||
-webkit-transition: all 0.6s
|
||||
-moz-transition: all 0.6s
|
||||
-o-transition: all 0.6s
|
||||
-ms-transition: all 0.6s
|
||||
transition: all 0.6s
|
||||
.relatedPosts_cover
|
||||
position: absolute
|
||||
display: block
|
||||
margin: 0
|
||||
padding: 0
|
||||
width: 100%
|
||||
height: 100%
|
||||
border: 0
|
||||
opacity: .4
|
||||
transition: all .6s
|
||||
object-fit: cover
|
||||
|
||||
.relatedPosts_main
|
||||
position: relative
|
||||
display: flex
|
||||
flex-direction: column
|
||||
justify-content: center
|
||||
margin: 0
|
||||
padding: 0 1rem
|
||||
height: 100%
|
||||
color: $white
|
||||
|
||||
.relatedPosts_date
|
||||
display: block
|
||||
width: 100%
|
||||
height: 100%
|
||||
padding: 0
|
||||
opacity: 0.4
|
||||
margin: 0
|
||||
object-fit: cover
|
||||
color: alpha($white, .9)
|
||||
font-size: 90%
|
||||
|
||||
.relatedPosts_title
|
||||
color: #fff
|
||||
position: absolute
|
||||
left: 0
|
||||
right: 0
|
||||
top: 45%
|
||||
height: 60px
|
||||
padding: 0 30px
|
||||
display: -webkit-box
|
||||
-webkit-line-clamp: 2
|
||||
-webkit-box-orient: vertical
|
||||
overflow: hidden
|
||||
max-width: 100%
|
||||
width: 100%
|
||||
margin: 0 auto
|
||||
text-align: center
|
||||
display: -webkit-box
|
||||
overflow: hidden
|
||||
max-height: 60px
|
||||
-webkit-line-clamp: 2
|
||||
-webkit-box-orient: vertical
|
||||
|
||||
.relatedPosts_headline
|
||||
font-size: 20px
|
||||
font-weight: 700
|
||||
margin-bottom: 5px
|
||||
.relatedPosts_headline
|
||||
margin-bottom: 5px
|
||||
font-weight: 700
|
||||
font-size: 20px
|
||||
|
||||
.clear_both
|
||||
clear: both
|
||||
.clear_both
|
||||
clear: both
|
||||
|
||||
|
||||
|
||||
@media screen and (max-width:768px)
|
||||
@media screen and (max-width: 768px)
|
||||
.relatedPosts_item
|
||||
width: calc(100%/2 - 4px)
|
||||
height: 150px
|
||||
margin: 2px
|
||||
|
||||
.relatedPosts_title
|
||||
top: 40%
|
||||
width: calc(100% / 2 - 4px)
|
||||
height: 150px
|
||||
|
||||
@media screen and (max-width:480px)
|
||||
@media screen and (max-width: 480px)
|
||||
.relatedPosts_item
|
||||
width: calc(100% - 4px)
|
||||
height: 150px
|
||||
margin: 2px
|
||||
|
||||
.relatedPosts_title
|
||||
top: 40%
|
||||
@@ -1,71 +1,74 @@
|
||||
.post-reward
|
||||
position: relative
|
||||
width: 100%
|
||||
margin: 75px auto 0
|
||||
width: 100%
|
||||
text-align: center
|
||||
display: block
|
||||
|
||||
.reward-buttom
|
||||
text-align: center
|
||||
.reward-button
|
||||
position: relative
|
||||
z-index: 1
|
||||
display: inline-block
|
||||
cursor: pointer
|
||||
color: #fff
|
||||
line-height: 36px
|
||||
width: 100px
|
||||
background: $light-blue
|
||||
width: 80px
|
||||
|
||||
color: $white
|
||||
text-align: center
|
||||
line-height: 36px
|
||||
cursor: pointer
|
||||
|
||||
&:hover
|
||||
background: darken($light-blue,30)
|
||||
|
||||
.reward-main
|
||||
display: block
|
||||
|
||||
|
||||
.reward-main
|
||||
position: absolute
|
||||
bottom: 40px
|
||||
left: 0
|
||||
display: none
|
||||
margin: 0
|
||||
padding: 0 0 15px
|
||||
width: 100%
|
||||
left: 0
|
||||
transition: all 0.6s
|
||||
display: none
|
||||
|
||||
transition: all .6s
|
||||
|
||||
.reward-all
|
||||
margin: 0 auto
|
||||
padding: 20px 10px 8px
|
||||
background: #f5f5f5
|
||||
display: inline-block
|
||||
margin: 0 0 0 -110px
|
||||
padding: 20px 10px 8px
|
||||
width: 320px
|
||||
border-radius: 4px
|
||||
cursor: auto
|
||||
background: #f5f5f5
|
||||
|
||||
&:before
|
||||
position: absolute
|
||||
bottom: -10px
|
||||
left: 0
|
||||
width: 100%
|
||||
height: 20px
|
||||
content: ''
|
||||
|
||||
&:after
|
||||
content: ""
|
||||
width: 0
|
||||
height: 0
|
||||
border-left: 13px solid transparent
|
||||
border-right: 13px solid transparent
|
||||
border-top: 13px solid #f5f5f5
|
||||
position: absolute
|
||||
right: 0
|
||||
bottom: 2px
|
||||
left: 0
|
||||
right: 0
|
||||
margin: 0 auto
|
||||
width: 0
|
||||
height: 0
|
||||
border-top: 13px solid #f5f5f5
|
||||
border-right: 13px solid transparent
|
||||
border-left: 13px solid transparent
|
||||
content: ''
|
||||
|
||||
.reward-item
|
||||
list-style-type: none
|
||||
padding: 0 8px
|
||||
display: inline-block
|
||||
padding: 0 8px
|
||||
list-style-type: none
|
||||
|
||||
img
|
||||
width: 130px
|
||||
max-width: 130px
|
||||
border-radius: 3px
|
||||
position: relative
|
||||
max-width: 130px
|
||||
width: 130px
|
||||
border-radius: 3px
|
||||
|
||||
.post-qr-code__desc
|
||||
text-align: center
|
||||
margin: -10px 0
|
||||
margin: -5px 0
|
||||
color: #858585
|
||||
|
||||
|
||||
text-align: center
|
||||
|
||||
61
source/css/_layout/rightside.styl
Normal file
61
source/css/_layout/rightside.styl
Normal file
@@ -0,0 +1,61 @@
|
||||
#rightside
|
||||
position: fixed
|
||||
right: -38px
|
||||
bottom: 40px
|
||||
opacity: 0
|
||||
transition: all .5s
|
||||
|
||||
#rightside-config-hide
|
||||
transform: translate(35px, 0)
|
||||
|
||||
.rightside-in
|
||||
transform: translate(0, 0) !important
|
||||
animation: rightsideIn .3s
|
||||
|
||||
.rightside-out
|
||||
animation: rightsideOut .3s
|
||||
|
||||
& > div
|
||||
& > i,
|
||||
& > a,
|
||||
& > div
|
||||
display: block
|
||||
margin-bottom: 2px
|
||||
width: 30px
|
||||
height: 30px
|
||||
background-color: $light-blue
|
||||
color: $white
|
||||
text-align: center
|
||||
text-decoration: none
|
||||
font-size: 16px
|
||||
line-height: 29px
|
||||
cursor: pointer
|
||||
|
||||
&:hover
|
||||
background-color: $ruby
|
||||
|
||||
#rightside_config
|
||||
i
|
||||
animation: avatar_turn_around 2s linear infinite
|
||||
|
||||
#mobile-toc-button
|
||||
display: none
|
||||
|
||||
@media screen and (max-width: $bg)
|
||||
#rightside
|
||||
#mobile-toc-button
|
||||
display: block
|
||||
|
||||
@keyframes rightsideIn
|
||||
0%
|
||||
transform: translate(30px, 0)
|
||||
|
||||
100%
|
||||
transform: translate(0, 0)
|
||||
|
||||
@keyframes rightsideOut
|
||||
0%
|
||||
transform: translate(0, 0)
|
||||
|
||||
100%
|
||||
transform: translate(30px, 0)
|
||||
@@ -4,13 +4,13 @@
|
||||
left: -300px
|
||||
z-index: 10
|
||||
overflow-y: auto
|
||||
padding: 1rem 0 2rem 0.5rem
|
||||
padding: 1rem 0 2rem .5rem
|
||||
width: $sidebar-width
|
||||
height: 100%
|
||||
background: $sidebar-background
|
||||
box-shadow: -0.25rem 0 0.25rem rgba(232, 237, 250, 0.6) inset
|
||||
opacity: 0.9
|
||||
transition: all 0.2s
|
||||
box-shadow: -.25rem 0 .25rem rgba(232, 237, 250, .6) inset
|
||||
opacity: .9
|
||||
transition: ease-in-out .4s
|
||||
|
||||
.sidebar-toc
|
||||
ol,
|
||||
@@ -18,20 +18,20 @@
|
||||
list-style: none
|
||||
|
||||
ol
|
||||
margin-top: 0.2rem
|
||||
padding-left: 0.4rem
|
||||
margin-top: .2rem
|
||||
padding-left: .4rem
|
||||
|
||||
&__title
|
||||
padding-right: 0.5rem
|
||||
padding-right: .5rem
|
||||
text-align: center
|
||||
font-size: unit(0.9 * $rem, "px")
|
||||
font-size: unit(.9 * $rem, 'px')
|
||||
|
||||
.toc-link
|
||||
display: block
|
||||
padding-left: 0.2rem
|
||||
padding-left: .2rem
|
||||
border-right: 3px solid transparent
|
||||
text-decoration: none
|
||||
transition: all 0.2s ease-in-out
|
||||
transition: all .2s ease-in-out
|
||||
|
||||
&.active
|
||||
border-right-color: darken($cyan, 20%)
|
||||
@@ -40,21 +40,18 @@
|
||||
|
||||
&__progress
|
||||
position: relative
|
||||
margin-top: -0.3rem
|
||||
padding-left: 0.6rem
|
||||
margin-top: -.3rem
|
||||
padding-left: .6rem
|
||||
color: $cyan
|
||||
|
||||
.progress-notice
|
||||
margin-right: 0.4rem
|
||||
margin-right: .4rem
|
||||
|
||||
.progress-num
|
||||
display: inline-block
|
||||
min-width: 0.9rem
|
||||
min-width: .9rem
|
||||
|
||||
&-bar
|
||||
width: 0
|
||||
height: 1px
|
||||
background: $cyan
|
||||
|
||||
|
||||
|
||||
|
||||
356
source/css/_layout/z-darkmode.styl
Normal file
356
source/css/_layout/z-darkmode.styl
Normal file
@@ -0,0 +1,356 @@
|
||||
if hexo-config('darkmode.enable') || hexo-config('autoChangeMode') == '1' || hexo-config('autoChangeMode') == '2'
|
||||
[data-theme='dark']
|
||||
body
|
||||
background-color: darken(#121212, 2)
|
||||
color: alpha(#FFFFFF, .6)
|
||||
|
||||
::-webkit-scrollbar-thumb
|
||||
background: lighten(#121212, 5)
|
||||
|
||||
// 網站背景,footer背景
|
||||
#web_bg[data-type=color],
|
||||
#footer[data-type=color]
|
||||
background: darken(#121212, 2)
|
||||
|
||||
#web_bg[data-type=photo]:before,
|
||||
#footer[data-type=photo]:before
|
||||
position: absolute
|
||||
width: 100%
|
||||
height: 100%
|
||||
background-color: alpha($dark-black, .7)
|
||||
content: ''
|
||||
|
||||
#archive,
|
||||
.tag-cloud,
|
||||
#tag,
|
||||
.category-content,
|
||||
#category,
|
||||
#page,
|
||||
.flink,
|
||||
.layout_post
|
||||
background: #121212
|
||||
|
||||
#sidebar
|
||||
background: #121212
|
||||
box-shadow: -.25rem 0 .25rem #121212
|
||||
|
||||
.article-container code
|
||||
background: #2c2c2c
|
||||
|
||||
.recent-posts
|
||||
.recent-post-item
|
||||
background: #121212 !important
|
||||
|
||||
.article-title
|
||||
color: alpha(#FFFFFF, .8) !important
|
||||
|
||||
#page-header
|
||||
&.fixed
|
||||
background: #121212
|
||||
box-shadow: 0 5px 6px -5px rgba(133, 133, 133, 0)
|
||||
|
||||
.toggle-menu,
|
||||
#site-name,
|
||||
a
|
||||
color: alpha(#FFFFFF, .8)
|
||||
|
||||
.menus_item_child
|
||||
background-color: lighten(#121212, 5) !important
|
||||
|
||||
li
|
||||
&:hover
|
||||
background: lighten(#121212, 20)
|
||||
|
||||
a
|
||||
color: alpha(#FFFFFF, .6)
|
||||
|
||||
// 代碼框
|
||||
.article-container pre,
|
||||
.article-container pre code
|
||||
background-color: lighten(#121212, 2)
|
||||
|
||||
.highlight-tools
|
||||
background: lighten(#121212, 3)
|
||||
|
||||
.article-container .highlight:not(.js-file-line-container)
|
||||
background-color: lighten(#121212, 2)
|
||||
|
||||
.code pre,
|
||||
.gutter pre
|
||||
background-color: lighten(#121212, 2)
|
||||
|
||||
table
|
||||
.copy-notice
|
||||
background: lighten(#121212, 3)
|
||||
|
||||
.copy-notice
|
||||
background: lighten(#121212, 3)
|
||||
|
||||
blockquote
|
||||
background-color: lighten(#121212, 10)
|
||||
color: alpha(#FFFFFF, .6)
|
||||
|
||||
hr
|
||||
border: 2px dashed alpha(#FFFFFF, .3)
|
||||
background: 0
|
||||
|
||||
&:before
|
||||
color: alpha(#FFFFFF, .6)
|
||||
|
||||
.layout_post >.tag_share .post-meta__tags
|
||||
border: 1px solid alpha(#FFFFFF, .6)
|
||||
background: 0
|
||||
color: alpha(#FFFFFF, .6)
|
||||
|
||||
&:hover
|
||||
background: darken(#FFFFFF, 60)
|
||||
|
||||
// 文章版權
|
||||
.post-copyright
|
||||
border: 1px solid alpha(#FFFFFF, .6)
|
||||
|
||||
.post-copyright-meta
|
||||
color: alpha(#FFFFFF, .8)
|
||||
|
||||
.post-copyright-info
|
||||
color: alpha(#FFFFFF, .6)
|
||||
|
||||
// 音樂播放器
|
||||
.aplayer
|
||||
filter: brightness(.7)
|
||||
color: #000000
|
||||
|
||||
// 右下角按鈕
|
||||
#rightside
|
||||
& > div
|
||||
& > i,
|
||||
& > a,
|
||||
& > div
|
||||
background-color: lighten(#121212, 5) !important
|
||||
color: alpha(#FFFFFF, .6) !important
|
||||
|
||||
&:hover
|
||||
background: lighten(#121212, 20) !important
|
||||
|
||||
// 打賞按鈕
|
||||
.post-reward
|
||||
.reward-button
|
||||
background-color: lighten(#121212, 10) !important
|
||||
|
||||
.reward-all
|
||||
background-color: lighten(#121212, 10) !important
|
||||
|
||||
&:after
|
||||
border-top: 13px solid lighten(#121212, 10) !important
|
||||
|
||||
.md-links-item:before,
|
||||
.aside-category-list:hover,
|
||||
.archive-list-item:hover,
|
||||
#bookmark-it
|
||||
background-color: lighten(#121212, 10) !important
|
||||
|
||||
img,
|
||||
iframe,
|
||||
.gist
|
||||
filter: brightness(.7)
|
||||
|
||||
// 側邊欄
|
||||
#aside_content
|
||||
.card-widget
|
||||
background: #121212 !important
|
||||
|
||||
.headline,
|
||||
.length_num,
|
||||
.aside-post_title,
|
||||
.aside-category-list_link,
|
||||
.archive-list-link,
|
||||
.social-icon
|
||||
color: alpha(#FFFFFF, .6) !important
|
||||
|
||||
.button--animated:before
|
||||
background: lighten(#121212, 20) !important
|
||||
|
||||
// 頭部
|
||||
#nav,
|
||||
#top-container
|
||||
&::before
|
||||
position: absolute
|
||||
top: 0
|
||||
right: 0
|
||||
bottom: 0
|
||||
left: 0
|
||||
background-color: alpha($dark-black, .7)
|
||||
content: ''
|
||||
|
||||
#nav span,
|
||||
#nav i,
|
||||
#page-header a,
|
||||
#page-header .toggle-menu,
|
||||
#top-container #post-meta,
|
||||
#top-container a,
|
||||
#footer-wrap,
|
||||
#footer-wrap a
|
||||
color: alpha(#FFFFFF, .6)
|
||||
|
||||
.posttitle,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6
|
||||
color: alpha(#FFFFFF, .8)
|
||||
|
||||
.recent-posts .post-meta__date,
|
||||
.recent-posts .article-meta,
|
||||
.recent-posts .article-meta__categories,
|
||||
.post-reward .reward-button,
|
||||
.fa-clipboard,
|
||||
.gutter pre,
|
||||
#bookmark-it,
|
||||
.copy-notice,
|
||||
.md-links-item a,
|
||||
.category-list-link,
|
||||
.relatedPosts_date,
|
||||
.prev-post .label,
|
||||
.next-post .label
|
||||
color: alpha(#FFFFFF, .6) !important
|
||||
|
||||
.prev_info,
|
||||
.next_info,
|
||||
.relatedPosts_title
|
||||
color: alpha(#FFFFFF, .8) !important
|
||||
|
||||
// 時間軸界面
|
||||
.article-sort-item__title
|
||||
color: alpha(#FFFFFF, .6)
|
||||
|
||||
&:hover
|
||||
color: #49b1f5
|
||||
|
||||
// 手機 MENU,TOC
|
||||
#mobile-sidebar
|
||||
#mobile-sidebar-menus
|
||||
background: #121212
|
||||
|
||||
.headline
|
||||
color: alpha(#FFFFFF, .6) !important
|
||||
|
||||
.length_num
|
||||
color: alpha(#FFFFFF, .8) !important
|
||||
|
||||
a
|
||||
color: alpha(#FFFFFF, .6) !important
|
||||
|
||||
#mobile-sidebar-toc
|
||||
background: #121212
|
||||
|
||||
a
|
||||
color: alpha(#FFFFFF, .6) !important
|
||||
|
||||
// note
|
||||
if hexo-config('note.style') == 'modern'
|
||||
.note
|
||||
filter: brightness(.7)
|
||||
|
||||
if hexo-config('note.style') == 'flat'
|
||||
.note
|
||||
filter: brightness(.7)
|
||||
color: #4c4948
|
||||
|
||||
// 第三方
|
||||
// 插件 hexo-blog-encrypt
|
||||
#hexo-blog-encrypt
|
||||
label,
|
||||
input
|
||||
color: alpha(#FFFFFF, .6) !important
|
||||
|
||||
input
|
||||
background-color: #121212
|
||||
|
||||
if hexo-config('gitalk') && hexo-config('gitalk.enable')
|
||||
#gitalk-container
|
||||
.gt-header-textarea,
|
||||
.gt-header-preview,
|
||||
.gt-comment-content,
|
||||
button,
|
||||
.gt-popup
|
||||
filter: brightness(.7)
|
||||
|
||||
svg
|
||||
fill: alpha(#FFFFFF, .6) !important
|
||||
|
||||
if hexo-config('valine') && hexo-config('valine.enable')
|
||||
// 評論
|
||||
#vcomment
|
||||
p,
|
||||
a,
|
||||
textarea,
|
||||
.vemoji-btn,
|
||||
.vpreview-btn,
|
||||
input,
|
||||
path,
|
||||
.vcount,
|
||||
.vnum,
|
||||
.vtime,
|
||||
.vsys,
|
||||
.vsys,
|
||||
.vnick
|
||||
color: alpha(#FFFFFF, .6) !important
|
||||
|
||||
.vsys
|
||||
background: rgb(97, 106, 107) !important
|
||||
|
||||
.vbtn
|
||||
border: 1px solid alpha(#FFFFFF, .6)
|
||||
background: rgb(45, 48, 53) !important
|
||||
color: alpha(#FFFFFF, .6) !important
|
||||
|
||||
.vwrap
|
||||
border: 1px solid alpha(#FFFFFF, .6)
|
||||
|
||||
input
|
||||
border-bottom: 1px dashed #616a6b
|
||||
|
||||
.vh
|
||||
border-bottom: 1px dashed #616a6b
|
||||
|
||||
pre
|
||||
border: 1px solid alpha(#FFFFFF, .6)
|
||||
background-color: #121212
|
||||
|
||||
code
|
||||
background: transparent
|
||||
|
||||
code
|
||||
background-color: #2c2c2c
|
||||
color: alpha(#FFFFFF, .6)
|
||||
|
||||
.vcontent.expand:before
|
||||
background: linear-gradient(180deg, hsla(0, 0, 0, 0), hsl(218, 8%, 19%))
|
||||
|
||||
.vcontent.expand:after
|
||||
background: hsla(204, 5%, 22%, 1)
|
||||
|
||||
if hexo-config('local_search') && hexo-config('local_search.enable')
|
||||
#local-search
|
||||
background: #121212
|
||||
|
||||
.local-search-box--input
|
||||
background: #121212
|
||||
color: alpha(#FFFFFF, .6)
|
||||
|
||||
.search-result-title
|
||||
color: alpha(#FFFFFF, .6)
|
||||
|
||||
if hexo-config('algolia_search.enable')
|
||||
#algolia-search
|
||||
background: #121212
|
||||
|
||||
.ais-search-box--input
|
||||
background: #121212
|
||||
color: alpha(#FFFFFF, .6)
|
||||
|
||||
#algolia-search-results
|
||||
.algolia-hit-item-link
|
||||
color: alpha(#FFFFFF, .6)
|
||||
@@ -1,361 +0,0 @@
|
||||
#recent-posts
|
||||
width: 75%
|
||||
|
||||
.recent-post-item
|
||||
padding: 0
|
||||
box-shadow: 0 4px 8px 6px rgba(7,17,27,0.06)
|
||||
border-radius: 8px
|
||||
transition: all 0.3s
|
||||
background: #fff
|
||||
margin-top: 20px
|
||||
height: 280px
|
||||
|
||||
&:hover
|
||||
-webkit-box-shadow: 0 4px 12px 12px rgba(7,17,27,0.15)
|
||||
box-shadow: 0 4px 12px 12px rgba(7,17,27,0.15)
|
||||
|
||||
img.post_bg
|
||||
transform:scale(1.1)
|
||||
|
||||
.is_left
|
||||
float: left
|
||||
border-top-left-radius: 8px
|
||||
border-bottom-left-radius: 8px
|
||||
|
||||
.is_right
|
||||
float: right
|
||||
border-top-right-radius: 8px
|
||||
border-bottom-right-radius: 8px
|
||||
|
||||
.post_cover
|
||||
width: 45%
|
||||
height: 280px
|
||||
overflow: hidden
|
||||
|
||||
img.post_bg
|
||||
border: 0
|
||||
transition: all .6s
|
||||
display: block
|
||||
width: 100%
|
||||
height: 100%
|
||||
padding: 0
|
||||
margin: 0
|
||||
object-fit: cover
|
||||
|
||||
|
||||
&:hover
|
||||
transform:scale(1.1)
|
||||
|
||||
#pagination
|
||||
margin-top: 2rem
|
||||
|
||||
|
||||
.recent-post-info
|
||||
padding: 50px 40px
|
||||
display: inline-block
|
||||
width: 55%
|
||||
overflow hidden
|
||||
|
||||
|
||||
a.article-meta__categories
|
||||
text-decoration: none
|
||||
color: #858585
|
||||
|
||||
&:hover
|
||||
color: #49b1f5 !important
|
||||
|
||||
.content
|
||||
display: -webkit-box
|
||||
-webkit-line-clamp: 3
|
||||
-webkit-box-orient: vertical
|
||||
overflow: hidden
|
||||
height: 90px
|
||||
|
||||
.more {
|
||||
position: relative
|
||||
letter-spacing: 1.2px
|
||||
text-transform: uppercase
|
||||
overflow: hidden
|
||||
z-index: 1
|
||||
background-color: $light-blue
|
||||
|
||||
&:focus {
|
||||
outline: none
|
||||
}
|
||||
}
|
||||
|
||||
.more--primary {
|
||||
color: $white
|
||||
}
|
||||
|
||||
.more--animated {
|
||||
transition-property: color
|
||||
transition-duration: 0.5s
|
||||
|
||||
&:before {
|
||||
content: ""
|
||||
position: absolute
|
||||
top: 0
|
||||
left: 0
|
||||
right: 0
|
||||
bottom: 0
|
||||
background: $ruby
|
||||
transform: scaleX(0)
|
||||
transform-origin: 0 50%
|
||||
transition-property: transform
|
||||
transition-duration: 0.5s
|
||||
transition-timing-function: ease-out
|
||||
z-index: -1
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: white
|
||||
|
||||
&:before {
|
||||
transform: scaleX(1)
|
||||
transition-timing-function: cubic-bezier(0.45, 1.64, 0.47, 0.66)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.layout_page
|
||||
display: flex
|
||||
margin: 0 auto
|
||||
max-width: 1200px
|
||||
align-items: flex-start
|
||||
padding: 0 15px
|
||||
|
||||
|
||||
#page,.category-content,.flink
|
||||
padding: 40px 44px 44px
|
||||
|
||||
#page,.category-content,#archive,.tag-cloud,.flink,#tag,#category
|
||||
box-shadow: 0 4px 8px 6px rgba(7,17,27,.06)
|
||||
border-radius: 8px
|
||||
transition: all .3s
|
||||
background: #fff
|
||||
margin-top: 20px
|
||||
width: 75%
|
||||
|
||||
.card_widget,#archive,.tag-cloud,#tag,.category-content,#category,#page,.flink
|
||||
|
||||
&:hover
|
||||
-webkit-box-shadow: 0 4px 12px 12px rgba(7,17,27,0.15)
|
||||
box-shadow: 0 4px 12px 12px rgba(7,17,27,0.15)
|
||||
|
||||
#page_site-info
|
||||
padding: 10rem 1rem 7rem
|
||||
#site-title
|
||||
font-family: PingFang SC, Hiragino Sans GB, "Microsoft JhengHei", "Microsoft YaHei", Helvetica Neue, Helvetica, Arial, sans-serif
|
||||
|
||||
@media screen and (min-width: 900px)
|
||||
if hexo-config("aside.position") == "left"
|
||||
#recent-posts
|
||||
order: 2
|
||||
|
||||
#page,.category-content,#archive,.tag-cloud,.flink,#tag,#category
|
||||
order: 2
|
||||
|
||||
|
||||
@media screen and (max-width: 900px)
|
||||
#page,.category-content,#archive,.tag-cloud,.flink,#tag,#category
|
||||
width: 100% !important
|
||||
|
||||
|
||||
@media screen and (max-width:768px)
|
||||
.recent-post-item
|
||||
height: auto !important
|
||||
border-radius: 8px
|
||||
|
||||
.post_cover
|
||||
width: 100% !important
|
||||
height: 230px !important
|
||||
border-radius: 8px !important
|
||||
|
||||
.recent-post-item,#page,.tag-cloud,.flink
|
||||
margin-top: 1px
|
||||
|
||||
.recent-post-item,#page,.category-content,.tag-cloud,.flink
|
||||
box-shadow: none !important
|
||||
background: none !important
|
||||
padding: 0px 20px 0 !important
|
||||
|
||||
&:hover
|
||||
-webkit-box-shadow: none
|
||||
box-shadow: none
|
||||
|
||||
#archive,#category,#tag
|
||||
box-shadow: none !important
|
||||
background: none !important
|
||||
padding: 0px 30px 0 !important
|
||||
|
||||
|
||||
.layout_post
|
||||
padding: 0 20px 0
|
||||
border-radius: 0
|
||||
-webkit-box-shadow: none
|
||||
box-shadow: none
|
||||
background: none
|
||||
margin: 0
|
||||
|
||||
&:hover
|
||||
-webkit-box-shadow: none
|
||||
box-shadow: none
|
||||
|
||||
|
||||
.layout_page
|
||||
padding: 0 !important
|
||||
|
||||
#aside_content
|
||||
display: none !important
|
||||
|
||||
.category-lists
|
||||
padding: 0
|
||||
|
||||
|
||||
|
||||
.recent-post-info
|
||||
padding: 20px 10px !important
|
||||
width: 100%
|
||||
|
||||
#recent-posts #pagination
|
||||
margin-bottom: 0
|
||||
|
||||
.more_setting
|
||||
display: block !important
|
||||
|
||||
#nav #site-social-icons
|
||||
display: block
|
||||
|
||||
#page_site-info
|
||||
padding: 7rem 1rem 5rem
|
||||
|
||||
#top-container
|
||||
height: 14rem
|
||||
|
||||
#post-info
|
||||
bottom: 1rem
|
||||
padding-left: 5%
|
||||
|
||||
.mobile_hidden
|
||||
display: none
|
||||
|
||||
|
||||
canvas
|
||||
display: none !important
|
||||
|
||||
|
||||
|
||||
.layout_page,
|
||||
.layout_post,
|
||||
footer
|
||||
animation: main 1s;
|
||||
|
||||
#nav,
|
||||
#top-container
|
||||
animation: header 1s
|
||||
|
||||
#site-title
|
||||
animation: titlescale 1s
|
||||
|
||||
.search-dialog
|
||||
transition: all .2s
|
||||
|
||||
.scroll-down-effects
|
||||
-webkit-animation: pulse 1.5s infinite
|
||||
animation: pulse 1.5s infinite
|
||||
// font-size: 28px
|
||||
position: absolute
|
||||
color: #fff
|
||||
|
||||
.is_hidden
|
||||
overflow: hidden
|
||||
@keyframes pulse{
|
||||
|
||||
0%,to{
|
||||
opacity:.4
|
||||
top:0}
|
||||
50%{
|
||||
opacity:1
|
||||
top:-16px}
|
||||
}
|
||||
|
||||
@keyframes header {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(-50px)
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@keyframes main {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(50px)
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0)
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes titlescale{
|
||||
|
||||
0% {
|
||||
// opacity:0;
|
||||
transform: scale(0.7)
|
||||
}
|
||||
100% {
|
||||
// opacity:1;
|
||||
transform: scale(1)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
.article-container .code_full_page
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-width: 100%;
|
||||
z-index: 9999;
|
||||
margin: 0;
|
||||
animation: code_full_page 1s;
|
||||
|
||||
.code_body
|
||||
overflow: hidden
|
||||
|
||||
@keyframes code_full_page{
|
||||
0%{transform:scale(0)}
|
||||
50%{transform:scale(1)}
|
||||
80%{transform:scale(.98)}
|
||||
100%{transform:scale(1)}}
|
||||
|
||||
|
||||
|
||||
@keyframes menu_open{
|
||||
0% {
|
||||
transform: scale(0)
|
||||
}
|
||||
100% {
|
||||
transform: scale(1)
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes menu_close{
|
||||
0% {
|
||||
transform: scale(1)
|
||||
display: block
|
||||
}
|
||||
100% {
|
||||
transform: scale(0)
|
||||
display: none
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user