fix:styles
This commit is contained in:
parent
ad3e197395
commit
b7dd081c74
@ -1,6 +1,6 @@
|
||||
<h1 align="center">Ayer</h1>
|
||||
|
||||
:desert_island: Ayer is a clean and elegant theme for Hexo, also responsive. If you have any queries or advice during the process of using, Please contact me! My email: shenyu@hotmail.com
|
||||
:desert_island: Ayer is a clean and elegant theme for Hexo, also responsive. If you have any queries or advice during the process of using, Please contact me!
|
||||
|
||||
|
||||
### [Preview](https://shen-yu.gitee.io)
|
||||
|
26
_config.yml
26
_config.yml
@ -1,10 +1,10 @@
|
||||
# 侧边栏菜单
|
||||
menu:
|
||||
Home: /
|
||||
Archives: /archives
|
||||
Gallery: http://shenyu-vip.lofter.com
|
||||
Travel: /tags/旅行/
|
||||
About: /2019/about
|
||||
主页: /
|
||||
目录: /archives
|
||||
摄影: http://shenyu-vip.lofter.com
|
||||
旅行: /tags/旅行/
|
||||
关于我: /2019/about
|
||||
|
||||
# 网站图标和侧边栏logo
|
||||
favicon: /favicon.ico
|
||||
@ -15,24 +15,22 @@ logo: /images/ayer-side.svg
|
||||
cover:
|
||||
enable: true
|
||||
path: /images/cover1.jpg # images目录下附送多张美图,可更换
|
||||
logo: /images/ayer.svg
|
||||
logo: false #/images/ayer.svg,如果不要直接设置成false
|
||||
|
||||
# 页面顶部进度条
|
||||
progressBar: ture
|
||||
|
||||
# 文章配置
|
||||
# 文章太长,截断按钮文字(在需要截断的行增加此标记:<!--more-->)
|
||||
excerpt_link: Read More...
|
||||
excerpt_link: 阅读更多...
|
||||
# 文章分享文字
|
||||
share_text: Share
|
||||
# 搜索文字
|
||||
search_text: Search
|
||||
share_text: 分享
|
||||
# 分页文字
|
||||
nav_text:
|
||||
page_prev: Prev page
|
||||
page_next: Next page
|
||||
post_prev: Newer posts
|
||||
post_next: Older posts
|
||||
page_prev: 上一页
|
||||
page_next: 下一页
|
||||
post_prev: 上一篇
|
||||
post_next: 下一篇
|
||||
|
||||
# 文章页是否显示目录
|
||||
toc: true
|
||||
|
@ -8,11 +8,13 @@
|
||||
<h1><a href="<%- url_for() %>"><%= config.title %></a></h1>
|
||||
<h2><%= config.subtitle %></h2>
|
||||
<div>
|
||||
<% if (theme.cover.logo) { %>
|
||||
<img
|
||||
src="<%- theme.cover.logo %>"
|
||||
class="cover-logo"
|
||||
alt="<%= config.title %>"
|
||||
/>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -9,7 +9,7 @@
|
||||
<li>
|
||||
<% if (theme.pageFooter){ %>
|
||||
<% var hexoLink = '<a href="https://hexo.io" target="_blank">Hexo</a>'; %>
|
||||
<% var themeLink = '<a href="https://hexo.io" target="_blank">Ayer</a>'; %>
|
||||
<% var themeLink = '<a href="https://github.com/Shen-Yu/hexo-theme-ayer" target="_blank">Ayer</a>'; %>
|
||||
<%- hexoLink %> Theme <%- themeLink %> by shenyu
|
||||
<% } %>
|
||||
</li>
|
||||
|
@ -1,7 +1,4 @@
|
||||
<%- partial('_partial/ayer') %>
|
||||
<div id="main">
|
||||
<%- partial('_partial/archive', {pagination: 2, index: true}) %>
|
||||
<div class="to_top">
|
||||
<%- partial('_partial/totop') %>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -5,6 +5,9 @@
|
||||
<main class="content">
|
||||
<%- body %>
|
||||
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
|
||||
<div class="to_top">
|
||||
<%- partial('_partial/totop') %>
|
||||
</div>
|
||||
</main>
|
||||
<% if (theme.toc && is_post()){ %>
|
||||
<aside class="sidebar">
|
||||
|
@ -27,6 +27,7 @@
|
||||
h1
|
||||
font-size 8rem
|
||||
margin 0
|
||||
opacity .95
|
||||
h2
|
||||
font-size 3rem
|
||||
margin .5rem 0 1.5rem
|
||||
@ -58,11 +59,13 @@
|
||||
right 50px
|
||||
z-index 9
|
||||
text-align center
|
||||
transform scale(1.2)
|
||||
|
||||
// Media Query
|
||||
@media (max-width: 768px)
|
||||
.cover-inner
|
||||
transform: translate(-50%, -70%);
|
||||
transform translate(-50%, -70%);
|
||||
width 100%
|
||||
h1
|
||||
font-size 6rem
|
||||
h2
|
||||
|
Loading…
Reference in New Issue
Block a user