Merge branch 'master' of https://github.com/ppoffice/hexo-theme-icarus
commit
f82df5f528
|
@ -17,7 +17,8 @@ $ git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus
|
||||||
|
|
||||||
1. Rename `themes\icarus\_config.yml.example` to `themes\icarus\_config.yml`;
|
1. Rename `themes\icarus\_config.yml.example` to `themes\icarus\_config.yml`;
|
||||||
2. Copy `themes\icarus\_config.yml.site.example` to your hexo blog's root directory and rename it to `_config.yml`;
|
2. Copy `themes\icarus\_config.yml.site.example` to your hexo blog's root directory and rename it to `_config.yml`;
|
||||||
3. Then modify `theme` setting in `_config.yml` to `icarus`.
|
3. Copy `themes\icarus\_source\*` into your hexo blog's directory `source`;
|
||||||
|
4. Then modify `theme` setting in `_config.yml` to `icarus`.
|
||||||
|
|
||||||
### Update
|
### Update
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,11 @@ contacts:
|
||||||
links:
|
links:
|
||||||
Hexo: http://hexo.io
|
Hexo: http://hexo.io
|
||||||
|
|
||||||
|
# CDN
|
||||||
|
cdn: useso #If your site loads slowly change it to "google" , because "useso" is slow out of China
|
||||||
|
|
||||||
# Miscellaneous
|
# Miscellaneous
|
||||||
|
google_site_verification:
|
||||||
google_analytics:
|
google_analytics:
|
||||||
favicon: favicon.png
|
favicon: favicon.png
|
||||||
twitter:
|
twitter:
|
||||||
|
|
|
@ -8,6 +8,8 @@ index:
|
||||||
nav:
|
nav:
|
||||||
next: 'Next'
|
next: 'Next'
|
||||||
prev: 'Prev'
|
prev: 'Prev'
|
||||||
|
older: 'Older'
|
||||||
|
newer: 'Newer'
|
||||||
widget:
|
widget:
|
||||||
recents: 'recents'
|
recents: 'recents'
|
||||||
archives: 'archives'
|
archives: 'archives'
|
||||||
|
@ -18,9 +20,10 @@ widget:
|
||||||
article:
|
article:
|
||||||
comments: 'Comments'
|
comments: 'Comments'
|
||||||
share: 'Share'
|
share: 'Share'
|
||||||
|
catalogue: 'Catalogue'
|
||||||
profile:
|
profile:
|
||||||
follow: 'FOLLOW'
|
follow: 'FOLLOW'
|
||||||
post: 'post'
|
post: 'post'
|
||||||
tag: 'tag'
|
tag: 'tag'
|
||||||
posts: 'posts'
|
posts: 'posts'
|
||||||
tags: 'tags'
|
tags: 'tags'
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
#By SrWoOoW
|
||||||
|
index:
|
||||||
|
home: 'Inicio'
|
||||||
|
search: 'Buscar'
|
||||||
|
archive: 'Archivo'
|
||||||
|
category: 'Categoria'
|
||||||
|
uncategorized: 'Sin categoría'
|
||||||
|
tag: 'Etiqueta'
|
||||||
|
nav:
|
||||||
|
next: 'Siguiente '
|
||||||
|
prev: 'Anterior'
|
||||||
|
older: 'Más viejo'
|
||||||
|
newer: 'Más nuevo'
|
||||||
|
widget:
|
||||||
|
recents: 'Recientes'
|
||||||
|
archives: 'Archivos'
|
||||||
|
categories: 'Categorias'
|
||||||
|
links: 'Links'
|
||||||
|
tags: 'Etiquetas'
|
||||||
|
tag_cloud: 'Nube de etiquetas'
|
||||||
|
article:
|
||||||
|
comments: 'Comentarios'
|
||||||
|
share: 'Compartir'
|
||||||
|
catalogue: 'Catálogo'
|
||||||
|
profile:
|
||||||
|
follow: 'SEGUIR'
|
||||||
|
post: 'Entrada'
|
||||||
|
tag: 'Etiqueta'
|
||||||
|
posts: 'Entradas'
|
||||||
|
tags: 'Etiquetas'
|
|
@ -8,6 +8,8 @@ index:
|
||||||
nav:
|
nav:
|
||||||
next: 'Berikutnya'
|
next: 'Berikutnya'
|
||||||
prev: 'Sebelumnya'
|
prev: 'Sebelumnya'
|
||||||
|
older: 'Lebih Tua'
|
||||||
|
newer: 'Lebih baru'
|
||||||
widget:
|
widget:
|
||||||
recents: 'terbaru'
|
recents: 'terbaru'
|
||||||
archives: 'arsip'
|
archives: 'arsip'
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
index:
|
||||||
|
home: 'ホーム'
|
||||||
|
search: '検索'
|
||||||
|
archive: 'アーカイブ'
|
||||||
|
category: 'カテゴリ'
|
||||||
|
uncategorized: '未分類'
|
||||||
|
tag: 'タグ'
|
||||||
|
nav:
|
||||||
|
next: '次'
|
||||||
|
prev: '前'
|
||||||
|
older: '古い記事'
|
||||||
|
newer: '新しい記事'
|
||||||
|
widget:
|
||||||
|
recents: '最近の記事'
|
||||||
|
archives: 'アーカイブ'
|
||||||
|
categories: 'カテゴリ'
|
||||||
|
links: 'リンク'
|
||||||
|
tags: 'タグ'
|
||||||
|
tag_cloud: 'タグクラウド'
|
||||||
|
article:
|
||||||
|
comments: 'コメント'
|
||||||
|
share: '共有'
|
||||||
|
catalogue: 'カタログ'
|
||||||
|
profile:
|
||||||
|
follow: 'フォローする'
|
||||||
|
post: '投稿'
|
||||||
|
tag: 'タグ'
|
||||||
|
posts: '投稿'
|
||||||
|
tags: 'タグ'
|
|
@ -0,0 +1,29 @@
|
||||||
|
index:
|
||||||
|
home: 'Главная'
|
||||||
|
search: 'Поиск'
|
||||||
|
archive: 'архив'
|
||||||
|
category: 'категории'
|
||||||
|
uncategorized: 'без категории'
|
||||||
|
tag: 'тэг'
|
||||||
|
nav:
|
||||||
|
next: 'Далее'
|
||||||
|
prev: 'Назад'
|
||||||
|
older: 'Старые'
|
||||||
|
newer: 'Новые'
|
||||||
|
widget:
|
||||||
|
recents: 'недавние'
|
||||||
|
archives: 'архивы'
|
||||||
|
categories: 'категории'
|
||||||
|
links: 'ссылки'
|
||||||
|
tags: 'тэги'
|
||||||
|
tag_cloud: 'облако тэгов'
|
||||||
|
article:
|
||||||
|
comments: 'Комментарии'
|
||||||
|
share: 'Поделиться'
|
||||||
|
catalogue: 'Каталог'
|
||||||
|
profile:
|
||||||
|
follow: 'Подписаться'
|
||||||
|
post: 'пост'
|
||||||
|
tag: 'тэг'
|
||||||
|
posts: 'посты'
|
||||||
|
tags: 'тэги'
|
|
@ -8,6 +8,8 @@ index:
|
||||||
nav:
|
nav:
|
||||||
next: '下一页'
|
next: '下一页'
|
||||||
prev: '上一页'
|
prev: '上一页'
|
||||||
|
older: '下一篇'
|
||||||
|
newer: '上一篇'
|
||||||
widget:
|
widget:
|
||||||
recents: '最新文章'
|
recents: '最新文章'
|
||||||
archives: '归档'
|
archives: '归档'
|
||||||
|
@ -18,9 +20,10 @@ widget:
|
||||||
article:
|
article:
|
||||||
comments: '评论'
|
comments: '评论'
|
||||||
share: '分享到'
|
share: '分享到'
|
||||||
|
catalogue: '文章目录'
|
||||||
profile:
|
profile:
|
||||||
follow: '关注我'
|
follow: '关注我'
|
||||||
post: '文章'
|
post: '文章'
|
||||||
tag: '标签'
|
tag: '标签'
|
||||||
posts: '文章'
|
posts: '文章'
|
||||||
tags: '标签'
|
tags: '标签'
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
</script>
|
</script>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<script src="//ajax.useso.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
|
<%- partial('cdn_after_footer') %>
|
||||||
|
|
||||||
<% if (theme.fancybox){ %>
|
<% if (theme.fancybox){ %>
|
||||||
<%- css('fancybox/jquery.fancybox') %>
|
<%- css('fancybox/jquery.fancybox') %>
|
||||||
|
|
|
@ -22,6 +22,12 @@
|
||||||
</p>
|
</p>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
|
<% if (!index && post.toc){ %>
|
||||||
|
<div id="toc" class="toc-article">
|
||||||
|
<strong class="toc-title"><%= __('article.catalogue') %></strong>
|
||||||
|
<%- toc(post.content) %>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
||||||
<%- post.content %>
|
<%- post.content %>
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
<% if (theme.cdn == "google"){ %>
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
||||||
|
<% } else if (theme.cdn == "useso"){ %>
|
||||||
|
<script src="//ajax.useso.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
||||||
|
<% } %>
|
|
@ -0,0 +1,7 @@
|
||||||
|
<% if (theme.cdn == "google"){ %>
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,400,600' rel='stylesheet' type='text/css'>
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro' rel='stylesheet' type='text/css'>
|
||||||
|
<% } else if (theme.cdn == "useso"){ %>
|
||||||
|
<link href='//fonts.useso.com/css?family=Open+Sans:400italic,400,600' rel='stylesheet' type='text/css'>
|
||||||
|
<link href="//fonts.useso.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
|
||||||
|
<% } %>
|
|
@ -0,0 +1,3 @@
|
||||||
|
<% if (theme.google_site_verification){ %>
|
||||||
|
<meta name="google-site-verification" content="<%= theme.google_site_verification %>" />
|
||||||
|
<% } %>
|
|
@ -28,11 +28,11 @@
|
||||||
<% if (theme.favicon){ %>
|
<% if (theme.favicon){ %>
|
||||||
<link rel="icon" href="<%- theme.favicon %>">
|
<link rel="icon" href="<%- theme.favicon %>">
|
||||||
<% } %>
|
<% } %>
|
||||||
<link href='//fonts.useso.com/css?family=Open+Sans:400italic,400,600' rel='stylesheet' type='text/css'>
|
<%- partial('cdn_head') %>
|
||||||
<link href="//fonts.useso.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
|
|
||||||
<%- css('css/style') %>
|
<%- css('css/style') %>
|
||||||
<%- css('font-awesome/css/font-awesome.min') %>
|
<%- css('font-awesome/css/font-awesome.min') %>
|
||||||
<%- partial('google-analytics') %>
|
<%- partial('google-analytics') %>
|
||||||
|
<%- partial('google_site_verification') %>
|
||||||
<% if( theme.customstylesheet ){ %>
|
<% if( theme.customstylesheet ){ %>
|
||||||
<%- css('css/'+theme.customstylesheet) %>
|
<%- css('css/'+theme.customstylesheet) %>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<nav id="article-nav">
|
<nav id="article-nav">
|
||||||
<% if (post.prev){ %>
|
<% if (post.prev){ %>
|
||||||
<a href="<%- url_for(post.prev.path) %>" id="article-nav-newer" class="article-nav-link-wrap">
|
<a href="<%- url_for(post.prev.path) %>" id="article-nav-newer" class="article-nav-link-wrap">
|
||||||
<strong class="article-nav-caption">Newer</strong>
|
<strong class="article-nav-caption"><%= __('nav.newer') %></strong>
|
||||||
<div class="article-nav-title">
|
<div class="article-nav-title">
|
||||||
<% if (post.prev.title){ %>
|
<% if (post.prev.title){ %>
|
||||||
<%= post.prev.title %>
|
<%= post.prev.title %>
|
||||||
|
@ -14,9 +14,9 @@
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (post.next){ %>
|
<% if (post.next){ %>
|
||||||
<a href="<%- url_for(post.next.path) %>" id="article-nav-older" class="article-nav-link-wrap">
|
<a href="<%- url_for(post.next.path) %>" id="article-nav-older" class="article-nav-link-wrap">
|
||||||
<strong class="article-nav-caption">Older</strong>
|
<strong class="article-nav-caption"><%= __('nav.older') %></strong>
|
||||||
<div class="article-nav-title"><%= post.next.title %></div>
|
<div class="article-nav-title"><%= post.next.title %></div>
|
||||||
</a>
|
</a>
|
||||||
<% } %>
|
<% } %>
|
||||||
</nav>
|
</nav>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
|
@ -337,4 +337,51 @@ $article-share-link
|
||||||
img
|
img
|
||||||
display: block
|
display: block
|
||||||
max-width: 100%
|
max-width: 100%
|
||||||
margin: 0 auto
|
margin: 0 auto
|
||||||
|
|
||||||
|
/* toc */
|
||||||
|
.toc-article
|
||||||
|
background #F9F9F9
|
||||||
|
margin 2em 0 0 0.2em
|
||||||
|
padding 1em
|
||||||
|
border-radius 0px
|
||||||
|
.toc-title
|
||||||
|
font-size 120%
|
||||||
|
strong
|
||||||
|
padding 0.3em 1
|
||||||
|
ol.toc
|
||||||
|
width 100%
|
||||||
|
margin 1em 2em 0 0
|
||||||
|
#toc
|
||||||
|
line-height 1em
|
||||||
|
font-size 0.8em
|
||||||
|
float right
|
||||||
|
.toc
|
||||||
|
padding 0
|
||||||
|
li
|
||||||
|
list-style-type none
|
||||||
|
.toc-child
|
||||||
|
padding-left 0em
|
||||||
|
#toc.toc-aside
|
||||||
|
display none
|
||||||
|
width 13%
|
||||||
|
position fixed
|
||||||
|
right 2%
|
||||||
|
top 320px
|
||||||
|
overflow hidden
|
||||||
|
line-height 1.5em
|
||||||
|
font-size 1em
|
||||||
|
color color-heading
|
||||||
|
opacity .6
|
||||||
|
transition opacity 1s ease-out
|
||||||
|
strong
|
||||||
|
padding 0.3em 0
|
||||||
|
color color-font
|
||||||
|
&:hover
|
||||||
|
transition opacity .3s ease-out
|
||||||
|
opacity 1
|
||||||
|
a
|
||||||
|
transition color 1s ease-out
|
||||||
|
&:hover
|
||||||
|
color color-theme
|
||||||
|
transition color .3s ease-out
|
Loading…
Reference in New Issue