fix: footer & languages

This commit is contained in:
shenyu 2020-04-15 22:17:11 +08:00
parent 2e211f7609
commit f21fbe4e2b
19 changed files with 115 additions and 33 deletions

View File

@ -13,10 +13,13 @@ recent_posts: letzter Beitrag
newer: Neuer
older: Älter
share: Teilen
powered_by: Powered by
powered_by: Powered by %s
theme: Theme - %s
rss_feed: RSS Feed
category: Kategorie
tag: Tag
site_visitors: Visitors
page_views: Views
post:
word_count: Wortzahl

View File

@ -13,10 +13,13 @@ recent_posts: Recent Posts
newer: Newer
older: Older
share: Share
powered_by: Powered by
powered_by: Powered by %s
theme: Theme - %s
rss_feed: RSS Feed
category: Category
tag: Tag
site_visitors: Visitors
page_views: Views
post:
word_count: Word count

View File

@ -13,10 +13,13 @@ recent_posts: Recent Posts
newer: Newer
older: Older
share: Share
powered_by: Powered by
powered_by: Powered by %s
theme: Theme - %s
rss_feed: RSS Feed
category: Category
tag: Tag
site_visitors: Visitors
page_views: Views
post:
word_count: Word count

View File

@ -13,10 +13,13 @@ recent_posts: Posts recientes
newer: Nuevo
older: Viejo
share: Compartir
powered_by: Construido por
powered_by: Powered by %s
theme: Theme - %s
rss_feed: RSS
category: Categoría
tag: Tag
site_visitors: Visitors
page_views: Views
post:
word_count: El recuento de palabras

View File

@ -13,10 +13,13 @@ recent_posts: Articles récents
newer: Récent
older: Ancien
share: Partager
powered_by: Propulsé par
powered_by: Powered by %s
theme: Theme - %s
rss_feed: Flux RSS
category: Catégorie
tag: Mot-clé
site_visitors: Visitors
page_views: Views
post:
word_count: Nombre de mots

View File

@ -13,10 +13,13 @@ recent_posts: 最近の投稿
newer: 次の記事
older: 前の記事
share: 共有
powered_by: Powered by
powered_by: Powered by %s
theme: Theme - %s
rss_feed: RSSフィード
category: カテゴリ
tag: タグ
site_visitors: Visitors
page_views: Views
post:
word_count: 単語数

View File

@ -13,10 +13,13 @@ recent_posts: 최근 포스트
newer: 최신
older: 이전
share: 공유
powered_by: Powered by
powered_by: Powered by %s
theme: Theme - %s
rss_feed: RSS Feed
category: 카테고리
tag: 태그
site_visitors: Visitors
page_views: Views
post:
word_count: 단어 수

View File

@ -13,10 +13,13 @@ recent_posts: Recente berichten
newer: Nieuwer
older: Ouder
share: Delen
powered_by: Powered by
powered_by: Powered by %s
theme: Theme - %s
rss_feed: RSS Feed
category: Categorie
tag: Label
site_visitors: Visitors
page_views: Views
post:
word_count: Aantal woorden in artikel

View File

@ -13,10 +13,13 @@ recent_posts: Siste innlegg
newer: Newer
older: Older
share: Share
powered_by: Powered by
powered_by: Powered by %s
theme: Theme - %s
rss_feed: RSS Feed
category: Category
tag: Tag
site_visitors: Visitors
page_views: Views
post:
word_count: Ordtelling

View File

@ -13,10 +13,13 @@ recent_posts: Postagens Recentes
newer: Mais Recente
older: Mais Antigo
share: Compartilhar
powered_by: Desenvolvido por
powered_by: Powered by %s
theme: Theme - %s
rss_feed: Feed RSS
category: Categoria
tag: Tag
site_visitors: Visitors
page_views: Views
post:
word_count: Word count

View File

@ -13,10 +13,13 @@ recent_posts: Недавние записи
newer: Следующий
older: Предыдущий
share: Поделиться
powered_by: Создано с помощью
powered_by: Powered by %s
theme: Theme - %s
rss_feed: RSS-каналы
category: Категория
tag: Метка
site_visitors: Visitors
page_views: Views
post:
word_count: Количество слов

View File

@ -13,10 +13,13 @@ recent_posts: Bài viết gần đây
newer: mới hơn
older: lớn hơn
share: chia sẻ
powered_by: Powered by
powered_by: Powered by %s
theme: Theme - %s
rss_feed: RSS Feed
category: Thể loại
tag: thẻ
site_visitors: Visitors
page_views: Views
post:
word_count: Đếm từ

View File

@ -13,10 +13,13 @@ recent_posts: 最新文章
newer: Newer
older: Older
share: 分享
powered_by: Powered by
powered_by: 由 %s 强力驱动
theme: 主题 - %s
rss_feed: RSS Feed
category: Category
tag: Tag
site_visitors: 访问人数
page_views: 浏览次数
post:
word_count: 字数统计

View File

@ -13,10 +13,13 @@ recent_posts: 最新文章
newer: Newer
older: Older
share: Share
powered_by: Powered by
powered_by: Powered by %s
theme: Theme - %s
rss_feed: RSS Feed
category: Category
tag: Tag
site_visitors: Visitors
page_views: Views
post:
word_count: 字數統計

View File

@ -1,32 +1,39 @@
<footer class="footer">
<div class="outer">
<ul class="list-inline">
<ul>
<li>
&copy;
Copyrights &copy;
<% if (theme.since && !isNaN(theme.since) && theme.since < date(new Date(), 'YYYY')) { %><%- theme.since%>-<% } %><%= date(new Date(), 'YYYY') %>
<%= config.author || config.title %>
<i class="ri-heart-fill heart_icon"></i> <%= config.author || config.title %>
</li>
</ul>
<ul>
<li>
<% if (theme.pageFooter){ %>
Powered by
<% var hexoLink = '<a href="https://hexo.io" target="_blank">Hexo</a>'; %>
<% var themeLink = '<a href="https://github.com/Shen-Yu/hexo-theme-ayer" target="_blank">Ayer</a>'; %>
<%- hexoLink %> Theme <%- themeLink %>
<%- __('powered_by', hexoLink) %>
<span class="division">|</span>
<%- __('theme', themeLink) %>
<% } %>
</li>
</ul>
<ul class="list-inline">
<ul>
<li>
<% if (theme.busuanzi && theme.busuanzi.enable){ %>
<%# "不蒜子统计" %>
<%- partial('post/busuanzi') %>
<% } %>
</li>
</ul>
<ul>
<% if (theme.icp&&theme.icp.enable){ %>
<li>
<a href="<%= theme.icp.url %>" target="_black"><%= theme.icp.text %></a>
</li>
<% } %>
<li>
<a href="<%= theme.icp.url %>" target="_black"><%= theme.icp.text %></a>
</li>
<% } %>
</ul>
<ul>
<li>
<!-- cnzz统计 -->
<% if (theme.cnzz&&theme.cnzz.enable){ %>

View File

@ -1,4 +1,5 @@
<span>
<i>PV:<span id="busuanzi_value_page_pv"></span></i>
<i>UV:<span id="busuanzi_value_site_uv"></span></i>
<span><i class="ri-user-3-fill"></i><%- __('site_visitors') %>:<span id="busuanzi_value_site_uv"></span></s>
<span class="division">|</span>
<span><i class="ri-eye-fill"></i><%- __('page_views') %>:<span id="busuanzi_value_page_pv"></span></span>
</span>

View File

@ -1,19 +1,50 @@
@keyframes footerHeartBeat
0%
transform: scale(1)
50%
transform: scale(1.2)
100%
transform: scale(1)
.footer
border-top 2px solid #f6f6f6
padding 3rem 0
font-size 115%
.outer
&>ul
position relative
display flex
justify-content space-between
&:first-child
border-bottom border-width solid #f1f1f1
justify-content center
li
display inline-block
padding .5rem 0
padding .3rem 0
a
text-decoration none
.division
display inline
margin 0 5px
i
margin 0 2px
font-style normal
transform translateY(2px)
span
margin-right 6px
margin-right 6px
.heart_icon
display: inline-block;
margin: 0 0.4rem;
font-size: 1em;
color: #f00;
-webkit-animation: footerHeartBeat 1.2s infinite;
-moz-animation: footerHeartBeat 1.2s infinite;
-o-animation: footerHeartBeat 1.2s infinite;
-ms-animation: footerHeartBeat 1.2s infinite;
animation: footerHeartBeat 1.2s infinite;
animation-duration: 1.2s;
animation-timing-function: ease;
animation-delay: 0s;
animation-iteration-count: infinite;
animation-direction: normal;
animation-fill-mode: none;
animation-play-state: running;
animation-name: footerHeartBeat;

View File

@ -39,6 +39,7 @@ a.toc-link
top 0
right 6rem
background-color #fff
z-index 996
// Left line before pseudo element.
.toc-link::before

File diff suppressed because one or more lines are too long