fix:styles

This commit is contained in:
shenyu 2019-12-05 22:17:35 +08:00
parent ad3e197395
commit b7dd081c74
7 changed files with 23 additions and 20 deletions

View File

@ -1,6 +1,6 @@
<h1 align="center">Ayer</h1> <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) ### [Preview](https://shen-yu.gitee.io)

View File

@ -1,10 +1,10 @@
# 侧边栏菜单 # 侧边栏菜单
menu: menu:
Home: / 主页: /
Archives: /archives 目录: /archives
Gallery: http://shenyu-vip.lofter.com 摄影: http://shenyu-vip.lofter.com
Travel: /tags/旅行/ 旅行: /tags/旅行/
About: /2019/about 关于我: /2019/about
# 网站图标和侧边栏logo # 网站图标和侧边栏logo
favicon: /favicon.ico favicon: /favicon.ico
@ -15,24 +15,22 @@ logo: /images/ayer-side.svg
cover: cover:
enable: true enable: true
path: /images/cover1.jpg # images目录下附送多张美图可更换 path: /images/cover1.jpg # images目录下附送多张美图可更换
logo: /images/ayer.svg logo: false #/images/ayer.svg如果不要直接设置成false
# 页面顶部进度条 # 页面顶部进度条
progressBar: ture progressBar: ture
# 文章配置 # 文章配置
# 文章太长,截断按钮文字(在需要截断的行增加此标记:<!--more-->) # 文章太长,截断按钮文字(在需要截断的行增加此标记:<!--more-->)
excerpt_link: Read More... excerpt_link: 阅读更多...
# 文章分享文字 # 文章分享文字
share_text: Share share_text: 分享
# 搜索文字
search_text: Search
# 分页文字 # 分页文字
nav_text: nav_text:
page_prev: Prev page page_prev: 上一页
page_next: Next page page_next: 下一页
post_prev: Newer posts post_prev: 上一篇
post_next: Older posts post_next: 下一篇
# 文章页是否显示目录 # 文章页是否显示目录
toc: true toc: true

View File

@ -8,11 +8,13 @@
<h1><a href="<%- url_for() %>"><%= config.title %></a></h1> <h1><a href="<%- url_for() %>"><%= config.title %></a></h1>
<h2><%= config.subtitle %></h2> <h2><%= config.subtitle %></h2>
<div> <div>
<% if (theme.cover.logo) { %>
<img <img
src="<%- theme.cover.logo %>" src="<%- theme.cover.logo %>"
class="cover-logo" class="cover-logo"
alt="<%= config.title %>" alt="<%= config.title %>"
/> />
<% } %>
</div> </div>
</div> </div>
</div> </div>

View File

@ -9,7 +9,7 @@
<li> <li>
<% if (theme.pageFooter){ %> <% if (theme.pageFooter){ %>
<% var hexoLink = '<a href="https://hexo.io" target="_blank">Hexo</a>'; %> <% 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 <%- hexoLink %> Theme <%- themeLink %> by shenyu
<% } %> <% } %>
</li> </li>

View File

@ -1,7 +1,4 @@
<%- partial('_partial/ayer') %> <%- partial('_partial/ayer') %>
<div id="main"> <div id="main">
<%- partial('_partial/archive', {pagination: 2, index: true}) %> <%- partial('_partial/archive', {pagination: 2, index: true}) %>
<div class="to_top">
<%- partial('_partial/totop') %>
</div>
</div> </div>

View File

@ -5,6 +5,9 @@
<main class="content"> <main class="content">
<%- body %> <%- body %>
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %> <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
<div class="to_top">
<%- partial('_partial/totop') %>
</div>
</main> </main>
<% if (theme.toc && is_post()){ %> <% if (theme.toc && is_post()){ %>
<aside class="sidebar"> <aside class="sidebar">

View File

@ -27,6 +27,7 @@
h1 h1
font-size 8rem font-size 8rem
margin 0 margin 0
opacity .95
h2 h2
font-size 3rem font-size 3rem
margin .5rem 0 1.5rem margin .5rem 0 1.5rem
@ -58,11 +59,13 @@
right 50px right 50px
z-index 9 z-index 9
text-align center text-align center
transform scale(1.2)
// Media Query // Media Query
@media (max-width: 768px) @media (max-width: 768px)
.cover-inner .cover-inner
transform: translate(-50%, -70%); transform translate(-50%, -70%);
width 100%
h1 h1
font-size 6rem font-size 6rem
h2 h2