Merge pull request #123 from XPoet/dev
This commit is contained in:
commit
b25420b021
|
@ -1,7 +1,9 @@
|
||||||
<div align="right">
|
<div align="right">
|
||||||
Language:
|
Language:
|
||||||
English
|
English
|
||||||
<a title="Chinese" href="README_zh-CN.md">中文</a>
|
<a title="Chinese" href="README_zh-CN.md">简中</a>
|
||||||
|
<a title="Chinese" href="README_zh-TW.md">繁中</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a href="https://xpoet.cn"><img align="center" alt="Keep" src="https://cdn.jsdelivr.net/gh/XPoet/image-hosting@master/hexo-theme-keep/keep-logo-slogan.svg"></a>
|
<a href="https://xpoet.cn"><img align="center" alt="Keep" src="https://cdn.jsdelivr.net/gh/XPoet/image-hosting@master/hexo-theme-keep/keep-logo-slogan.svg"></a>
|
||||||
|
@ -108,5 +110,5 @@ This project exists thanks to all the people who contribute.
|
||||||
|
|
||||||
## :memo: License
|
## :memo: License
|
||||||
|
|
||||||
[MIT](https://github.com/XPoet/picx/blob/master/LICENSE) Copyright © 2020 XPoet
|
[MIT](https://github.com/XPoet/picx/blob/master/LICENSE) Copyright © 2020-2021 XPoet
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
<div align="right">
|
<div align="right">
|
||||||
语言:
|
语言:
|
||||||
中文
|
简中
|
||||||
<a title="Chinese" href="README.md">English</a>
|
<a title="Chinese" href="README.md">English</a>
|
||||||
|
<a title="Chinese" href="README_zh-TW.md">繁中</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a href="https://xpoet.cn"><img align="center" alt="Keep" src="https://cdn.jsdelivr.net/gh/XPoet/image-hosting@master/hexo-theme-keep/keep-logo-slogan.svg"></a>
|
<a href="https://xpoet.cn"><img align="center" alt="Keep" src="https://cdn.jsdelivr.net/gh/XPoet/image-hosting@master/hexo-theme-keep/keep-logo-slogan.svg"></a>
|
||||||
|
@ -108,4 +109,4 @@ $ git stash pop
|
||||||
|
|
||||||
## :memo: 许可
|
## :memo: 许可
|
||||||
|
|
||||||
[MIT](https://github.com/XPoet/picx/blob/master/LICENSE) Copyright © 2020 XPoet
|
[MIT](https://github.com/XPoet/picx/blob/master/LICENSE) Copyright © 2020-2021 XPoet
|
||||||
|
|
|
@ -0,0 +1,112 @@
|
||||||
|
<div align="right">
|
||||||
|
語言:
|
||||||
|
繁中
|
||||||
|
<a title="Chinese" href="README.md">English</a>
|
||||||
|
<a title="Chinese" href="README_zh-CN.md">简中</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a href="https://xpoet.cn"><img align="center" alt="Keep" src="https://cdn.jsdelivr.net/gh/XPoet/image-hosting@master/hexo-theme-keep/keep-logo-slogan.svg"></a>
|
||||||
|
|
||||||
|
# hexo-theme-keep
|
||||||
|
|
||||||
|
«Keep» 是一款簡約優雅的 [Hexo](https://hexo.io) 主題。它能讓你更專注於寫作。
|
||||||
|
|
||||||
|
[![Github License](https://img.shields.io/github/license/XPoet/hexo-theme-keep.svg?style=flat-square)](https://github.com/XPoet/hexo-theme-ils/blob/master/LICENSE)
|
||||||
|
[![Github Release](https://img.shields.io/github/release/XPoet/hexo-theme-keep.svg?style=flat-square)](https://github.com/XPoet/hexo-theme-ils/releases)
|
||||||
|
[![NPM version](https://img.shields.io/npm/v/hexo-theme-keep?color=red&logo=npm&style=flat-square)](https://www.npmjs.com/package/hexo-theme-keep)
|
||||||
|
[![Required Hexo version](https://img.shields.io/badge/hexo-%3E=5.0.0-blue?style=flat-square&logo=hexo)](https://hexo.io)
|
||||||
|
[![Node.js Version](https://img.shields.io/badge/node-%3E=12.0-success.svg?style=flat-square&logo=Node.js&longCache=true)](https://hexo.io)
|
||||||
|
[![jsDelivr hits](https://img.shields.io/jsdelivr/npm/hm/hexo-theme-keep?style=flat-square&logo=jsdelivr)](https://www.jsdelivr.com/package/npm/hexo-theme-keep)
|
||||||
|
|
||||||
|
## :star2: 線上預覽
|
||||||
|
|
||||||
|
- **[XPoet's Blog](https://xpoet.cn/)**
|
||||||
|
- **[keep 預覽網頁](https://keep.xpoet.cn/)**
|
||||||
|
- **[keep 官方文檔](https://keep-docs.xpoet.cn/)**
|
||||||
|
|
||||||
|
## :rocket: 安装
|
||||||
|
|
||||||
|
如果你在使用 Hexo 5.0 或更高版本,最簡單的安裝方式是透過 npm:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ cd hexo-site
|
||||||
|
$ npm install hexo-theme-keep
|
||||||
|
```
|
||||||
|
|
||||||
|
你也可以直接 clone 整個原始碼庫:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ cd hexo-site
|
||||||
|
$ git clone https://github.com/XPoet/hexo-theme-keep themes/keep
|
||||||
|
```
|
||||||
|
|
||||||
|
安裝完成後,在 Hexo 配置文件中將 `theme` 設定為 `keep`。
|
||||||
|
|
||||||
|
```yml
|
||||||
|
theme: keep
|
||||||
|
```
|
||||||
|
|
||||||
|
## :wrench: 使用
|
||||||
|
|
||||||
|
請查看 «Keep» 官方文檔:
|
||||||
|
|
||||||
|
- **[Keep 官方文檔](https://keep-docs.xpoet.cn/)**
|
||||||
|
- **[Keep 主題配置指南](https://keep-docs.xpoet.cn/usage-tutorial/configuration-guide.html)**
|
||||||
|
- **[Keep 主題進階使用](https://keep-docs.xpoet.cn/usage-tutorial/advanced.html)**
|
||||||
|
|
||||||
|
不推薦直接修改 «Keep» 主題的文件。因為這可能導致錯誤(例如 git merge 衝突),並且在更新主題時修改的文件可能丟失。
|
||||||
|
|
||||||
|
## :dart: 更新
|
||||||
|
|
||||||
|
«Keep» 不定期發布新版本。你可以透過如下命令更新 «Keep»。
|
||||||
|
|
||||||
|
透過 npm 安裝最新版本:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ cd hexo-site
|
||||||
|
$ npm update hexo-theme-keep
|
||||||
|
```
|
||||||
|
|
||||||
|
或者透過 git 更新到最新的 master 分支:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ cd themes/keep
|
||||||
|
$ git pull
|
||||||
|
```
|
||||||
|
|
||||||
|
_如果你修改了主題原始碼:_
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ git add .
|
||||||
|
$ git stash
|
||||||
|
$ git pull
|
||||||
|
$ git stash pop
|
||||||
|
```
|
||||||
|
|
||||||
|
## :art: 貢獻
|
||||||
|
|
||||||
|
我們歡迎你加入 «Keep» 的開發,貢獻出你的一份力量。請看[Keep 原始碼貢獻指南](https://keep.xpoet.cn/2020/11/Keep-代码贡献指南/)。
|
||||||
|
|
||||||
|
## :clapper: 貢獻者
|
||||||
|
|
||||||
|
這個項目的存在多虧了所有的貢獻者。
|
||||||
|
|
||||||
|
<a href="https://github.com/XPoet/hexo-theme-keep/graphs/contributors">
|
||||||
|
<img src="https://opencollective.com/hexo-theme-keep/contributors.svg?width=880">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
## :sparkling_heart: 銘謝
|
||||||
|
|
||||||
|
«Keep» 特别感謝這些支持我們核心基本設施的優質服務:
|
||||||
|
|
||||||
|
<a href="https://github.com"><img height="38" src="https://cdn.jsdelivr.net/gh/XPoet/image-hosting@master/hexo-theme-keep/GitHub-LOGO.5sq0168mirg0.png"></a>
|
||||||
|
|
||||||
|
> GitHub 允許我們存放 Git 原始碼庫及運行測試。
|
||||||
|
|
||||||
|
<a href="https://www.jsdelivr.com"><img height="38" src="https://cdn.jsdelivr.net/gh/XPoet/image-hosting@master/hexo-theme-keep/jsDelivr-LOGO.png"></a>
|
||||||
|
|
||||||
|
> jsDelivr 提供了 CDN 服務。
|
||||||
|
|
||||||
|
## :memo: 許可
|
||||||
|
|
||||||
|
[MIT](https://github.com/XPoet/picx/blob/master/LICENSE) Copyright © 2020-2021 XPoet
|
86
_config.yml
86
_config.yml
|
@ -8,13 +8,12 @@ base_info:
|
||||||
# Logo image (You can use local image, image external link or don’t fill)
|
# Logo image (You can use local image, image external link or don’t fill)
|
||||||
logo_img:
|
logo_img:
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Theme style settings
|
# Theme style settings
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
style:
|
style:
|
||||||
# Theme primary color
|
# Theme primary color
|
||||||
primary_color: '#0066CC'
|
primary_color: "#0066CC"
|
||||||
|
|
||||||
# Avatar (You can use local image or image external link)
|
# Avatar (You can use local image or image external link)
|
||||||
avatar: /images/avatar.svg
|
avatar: /images/avatar.svg
|
||||||
|
@ -33,13 +32,13 @@ style:
|
||||||
|
|
||||||
# Mouse hover
|
# Mouse hover
|
||||||
hover:
|
hover:
|
||||||
shadow: false # shadow effect when the mouse hover
|
shadow: false # shadow effect when the mouse hover
|
||||||
scale: false # scale effect when the mouse hover
|
scale: false # scale effect when the mouse hover
|
||||||
|
|
||||||
# First screen
|
# First screen
|
||||||
first_screen:
|
first_screen:
|
||||||
enable: false
|
enable: false
|
||||||
background_img: /images/bg.svg # You can use local image or image external link
|
background_img: /images/bg.svg # You can use local image or image external link
|
||||||
description: Keep writing and Keep loving.
|
description: Keep writing and Keep loving.
|
||||||
|
|
||||||
# Scroll style settings
|
# Scroll style settings
|
||||||
|
@ -49,22 +48,20 @@ style:
|
||||||
percent:
|
percent:
|
||||||
enable: false
|
enable: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Social contact link
|
# Social contact link
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
social_contact:
|
social_contact:
|
||||||
enable: false
|
enable: false
|
||||||
links:
|
links:
|
||||||
github: # your GitHub URL
|
github: # your GitHub URL
|
||||||
weixin: # your WeChat QR-Code URL
|
weixin: # your WeChat QR-Code URL
|
||||||
qq: # your QQ QR-Code URL
|
qq: # your QQ QR-Code URL
|
||||||
weibo: # your WeiBo URL
|
weibo: # your WeiBo URL
|
||||||
zhihu: # your ZhiHu URL
|
zhihu: # your ZhiHu URL
|
||||||
twitter: # your twitter URL
|
twitter: # your twitter URL
|
||||||
facebook: # your facebook URL
|
facebook: # your facebook URL
|
||||||
email: # your email
|
email: # your email
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Navigation menu
|
# Navigation menu
|
||||||
|
@ -79,18 +76,16 @@ menu:
|
||||||
# Changelog: /changelog
|
# Changelog: /changelog
|
||||||
# ......
|
# ......
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Home page article block display settings
|
# Home page article block display settings
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
home_article:
|
home_article:
|
||||||
category:
|
category:
|
||||||
enable: false # show category in home page article block
|
enable: false # show category in home page article block
|
||||||
limit: 3 # max number of categories shown in home page article block
|
limit: 3 # max number of categories shown in home page article block
|
||||||
tag:
|
tag:
|
||||||
enable: false # show tags in home page article block
|
enable: false # show tags in home page article block
|
||||||
limit: 5 # max number of tags shown in home page article block
|
limit: 5 # max number of tags shown in home page article block
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Post page Settings
|
# Post page Settings
|
||||||
|
@ -101,24 +96,22 @@ post:
|
||||||
# See: https://github.com/willin/hexo-wordcount
|
# See: https://github.com/willin/hexo-wordcount
|
||||||
word_count:
|
word_count:
|
||||||
enable: false
|
enable: false
|
||||||
wordcount: false # word count, one article
|
wordcount: false # word count, one article
|
||||||
min2read: false # time to read, one article
|
min2read: false # time to read, one article
|
||||||
|
|
||||||
# Author label
|
# Author label
|
||||||
author_label:
|
author_label:
|
||||||
enable: true
|
enable: true
|
||||||
auto: true # if true, show Lv1, Lv2, Lv3... , If false, show custom label
|
auto: true # if true, show Lv1, Lv2, Lv3... , If false, show custom label
|
||||||
# label array item can be one or more
|
# label array item can be one or more
|
||||||
custom_label_list: [ "Trainee", "Engineer", "Architect", "CTO", "BOSS" ]
|
custom_label_list: ["Trainee", "Engineer", "Architect", "CTO", "BOSS"]
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Code copy
|
# Code copy
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
code_copy:
|
code_copy:
|
||||||
enable: false
|
enable: false
|
||||||
style: default # values: default | mac
|
style: default # values: default | mac
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Table of Contents in the Sidebar
|
# Table of Contents in the Sidebar
|
||||||
|
@ -135,14 +128,12 @@ toc:
|
||||||
# If true, open TOC every time when you enter the article page
|
# If true, open TOC every time when you enter the article page
|
||||||
init_open: false
|
init_open: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Post copyright info
|
# Post copyright info
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
copyright_info:
|
copyright_info:
|
||||||
enable: false
|
enable: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Website count
|
# Website count
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
|
@ -155,7 +146,6 @@ website_count:
|
||||||
site_pv: false
|
site_pv: false
|
||||||
page_pv: false
|
page_pv: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Local Search
|
# Local Search
|
||||||
# Dependencies: hexo-generator-searchdb
|
# Dependencies: hexo-generator-searchdb
|
||||||
|
@ -163,37 +153,35 @@ website_count:
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
local_search:
|
local_search:
|
||||||
enable: false
|
enable: false
|
||||||
preload: false # Preload the search data when the page loads
|
preload: false # Preload the search data when the page loads
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Comment plugin
|
# Comment plugin
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
comment:
|
comment:
|
||||||
enable: false
|
enable: false
|
||||||
use: valine # values: valine | gitalk | twikoo
|
use: valine # values: valine | gitalk | twikoo
|
||||||
|
|
||||||
# Valine
|
# Valine
|
||||||
# See: https://github.com/xCss/Valine
|
# See: https://github.com/xCss/Valine
|
||||||
valine:
|
valine:
|
||||||
appid: # your leancloud application appid
|
appid: # your leancloud application appid
|
||||||
appkey: # your leancloud application appkey
|
appkey: # your leancloud application appkey
|
||||||
placeholder: # your placeholder
|
placeholder: # your placeholder
|
||||||
|
|
||||||
# Gitalk
|
# Gitalk
|
||||||
# See: https://github.com/gitalk/gitalk
|
# See: https://github.com/gitalk/gitalk
|
||||||
gitalk:
|
gitalk:
|
||||||
github_id: # GitHub repo owner
|
github_id: # GitHub repo owner
|
||||||
repository: # Repository name to store issues
|
repository: # Repository name to store issues
|
||||||
client_id: # GitHub Application Client ID
|
client_id: # GitHub Application Client ID
|
||||||
client_secret: # GitHub Application Client Secret
|
client_secret: # GitHub Application Client Secret
|
||||||
|
|
||||||
# Twikoo
|
# Twikoo
|
||||||
# See: https://github.com/imaegoo/twikoo
|
# See: https://github.com/imaegoo/twikoo
|
||||||
twikoo:
|
twikoo:
|
||||||
env_id: # Tencent Cloud environment id
|
env_id: # Tencent Cloud environment id
|
||||||
region: # environment region. If select Guangzhou, fill in "ap-guangzhou".
|
region: # environment region. If select Guangzhou, fill in "ap-guangzhou".
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# RSS
|
# RSS
|
||||||
|
@ -203,35 +191,31 @@ comment:
|
||||||
rss:
|
rss:
|
||||||
enable: false
|
enable: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Lazyload image
|
# Lazyload image
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
lazyload:
|
lazyload:
|
||||||
enable: false
|
enable: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# CDN
|
# CDN
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
cdn:
|
cdn:
|
||||||
enable: false
|
enable: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# PJAX
|
# PJAX
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
pjax:
|
pjax:
|
||||||
enable: false
|
enable: false
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Footer settings
|
# Footer settings
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
footer:
|
footer:
|
||||||
since: 2020 # the starting year of your website, Can be null
|
since: 2020 # the starting year of your website, Can be null
|
||||||
icp: # ICP record number of your website, Can be null
|
icp: # ICP record number of your website, Can be null
|
||||||
|
upyun: # url
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------
|
||||||
# Keep version (Please don't modify)
|
# Keep version (Please don't modify)
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
search: 搜尋...
|
||||||
|
prev: 上一頁
|
||||||
|
next: 下一頁
|
||||||
|
prev_posts: 上一篇
|
||||||
|
next_posts: 下一篇
|
||||||
|
page: 第 %d 頁
|
||||||
|
recent_posts: 之前的文章
|
||||||
|
share: 分享
|
||||||
|
powered_by: "%s 框架"
|
||||||
|
theme: 主題
|
||||||
|
rss_feed: RSS 訂閱
|
||||||
|
category: 分類
|
||||||
|
categories: 分類
|
||||||
|
tag: 標籤
|
||||||
|
tags: 標籤
|
||||||
|
tagcloud: 標籤雲
|
||||||
|
comment: 留言
|
||||||
|
comments: 留言
|
||||||
|
home: 首頁
|
||||||
|
archive: 歸檔
|
||||||
|
archives: 歸檔
|
||||||
|
about: 關於
|
||||||
|
site_uv: 讀者
|
||||||
|
site_pv: 閱覽
|
||||||
|
links: 友鏈
|
||||||
|
link: 友鏈
|
||||||
|
top: 頂端
|
||||||
|
read_more: 繼續閱讀...
|
||||||
|
wordcount: 字數
|
||||||
|
min2read: 分鐘
|
||||||
|
changelog: 日誌
|
||||||
|
copyright:
|
||||||
|
author: 文章作者
|
||||||
|
title: 文章標題
|
||||||
|
link: 永久連結
|
||||||
|
create_time: 撰寫時間
|
||||||
|
license_title: 版權宣告
|
||||||
|
license_content: "這個網站所有文章均使用 %s 授權。"
|
||||||
|
ago:
|
||||||
|
second: "%s 秒前"
|
||||||
|
minute: "%s 分鐘前"
|
||||||
|
hour: "%s 小時前"
|
||||||
|
day: "%s 天前"
|
||||||
|
week: "%s 周前"
|
||||||
|
month: "%s 個月前"
|
||||||
|
year: "%s 年前"
|
|
@ -3,7 +3,8 @@
|
||||||
<div class="copyright-info info-item">
|
<div class="copyright-info info-item">
|
||||||
©
|
©
|
||||||
<% if (theme.footer.hasOwnProperty('since') && theme.footer.since) { %>
|
<% if (theme.footer.hasOwnProperty('since') && theme.footer.since) { %>
|
||||||
<span><%= theme.footer.since %></span> -
|
<span><%= theme.footer.since %></span>
|
||||||
|
-
|
||||||
<% } %>
|
<% } %>
|
||||||
<%= date(new Date(), 'YYYY') %> <i class="fas fa-heart icon-animate"></i> <a href="/"><%= theme.base_info.author || config.author %></a>
|
<%= date(new Date(), 'YYYY') %> <i class="fas fa-heart icon-animate"></i> <a href="/"><%= theme.base_info.author || config.author %></a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -28,5 +29,10 @@
|
||||||
<% if (theme.footer.hasOwnProperty('icp') && theme.footer.icp) { %>
|
<% if (theme.footer.hasOwnProperty('icp') && theme.footer.icp) { %>
|
||||||
<div class="icp-info info-item"><a target="_blank" rel="nofollow" href="https://beian.miit.gov.cn"><%= theme.footer.icp %></a></div>
|
<div class="icp-info info-item"><a target="_blank" rel="nofollow" href="https://beian.miit.gov.cn"><%= theme.footer.icp %></a></div>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<% if (theme.footer.hasOwnProperty('upyun') && theme.footer.upyun) { %>
|
||||||
|
<div class="icp-info info-item"><a target="_blank" rel="nofollow" href="<%= theme.footer.upyun %>">本网站由
|
||||||
|
<img src="/images/upyun.png" alt="upyun" srcset="" height="24" style="position:relative; top:6px">
|
||||||
|
提供CDN加速/云存储服务</a></div>
|
||||||
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<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=1">
|
||||||
<meta name="keywords" content="<%= config.keywords || 'Hexo Theme Keep' %>">
|
<meta name="keywords" content="<%= page.keywords || config.keywords || 'Hexo Theme Keep' %>">
|
||||||
<meta name="description" content="<%= config.description || 'Hexo Theme Keep' %>">
|
<meta name="description" content="<%= page.description || config.description || 'Hexo Theme Keep' %>">
|
||||||
<meta name="author" content="<%= theme.base_info.author || config.author || 'Keep Team' %>">
|
<meta name="author" content="<%= theme.base_info.author || config.author || 'Keep Team' %>">
|
||||||
<%
|
<%
|
||||||
let title = page.title;
|
let title = page.title;
|
||||||
|
|
|
@ -36,6 +36,9 @@
|
||||||
// html, body
|
// html, body
|
||||||
// ======================================================================
|
// ======================================================================
|
||||||
html, body {
|
html, body {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
color: var(--default-text-color);
|
color: var(--default-text-color);
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
$temp-width = hexo-config('style.left_side_width');
|
$temp-width = hexo-config('style.left_side_width');
|
||||||
$page-aside-width = $temp-width ? convert($temp-width):260px;
|
$page-aside-width = $temp-width ? convert($temp-width) : 260px;
|
||||||
|
|
||||||
.page-container {
|
.page-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
background: var(--background-color);
|
||||||
transition-t("padding-left", "0", "0.3", "ease-out");
|
transition-t("padding-left", "0", "0.3", "ease-out");
|
||||||
|
|
||||||
|
|
||||||
|
@ -85,7 +89,6 @@ $page-aside-width = $temp-width ? convert($temp-width):260px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: $component-spacing-value 0;
|
padding: $component-spacing-value 0;
|
||||||
background: var(--background-color);
|
|
||||||
|
|
||||||
+keep-tablet() {
|
+keep-tablet() {
|
||||||
padding: $component-spacing-value * 0.8 0;
|
padding: $component-spacing-value * 0.8 0;
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
@import "common/markdown.styl"
|
@import "common/markdown.styl"
|
||||||
@import "common/codeblock/highlight.styl"
|
@import "common/codeblock/highlight.styl"
|
||||||
@import "common/codeblock/copy-code.styl"
|
@import "common/codeblock/copy-code.styl"
|
||||||
|
@import "common/codeblock/code-theme.styl"
|
||||||
@import "layout/page.styl"
|
@import "layout/page.styl"
|
||||||
@import "layout/_partial/local-search.styl"
|
@import "layout/_partial/local-search.styl"
|
||||||
@import "layout/_partial/toc.styl"
|
@import "layout/_partial/toc.styl"
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
|
@ -197,7 +197,7 @@ KEEP.initUtils = () => {
|
||||||
const innerHeight = window.innerHeight;
|
const innerHeight = window.innerHeight;
|
||||||
const pb_dom = document.querySelector('.page-main-content-bottom');
|
const pb_dom = document.querySelector('.page-main-content-bottom');
|
||||||
if (allDomHeight < innerHeight) {
|
if (allDomHeight < innerHeight) {
|
||||||
pb_dom.style.marginTop = (innerHeight - allDomHeight) + 'px';
|
pb_dom.style.marginTop = Math.floor(innerHeight - allDomHeight) + 'px';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue