Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日语语言包;显示ICP备案号;添加更多社交账号图标 #17

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.DS_Store
node_modules
tmp
*.log
*.log
source/css/style.css
source/css/style-dark.css
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
hexo-theme-Typography
======

[Check out the demo](https://yueplus.ink)

![Head](https://github.com/SumiMakito/hexo-theme-typography/blob/master/_art/head.png?raw=true)

![Screenshot](https://github.com/SumiMakito/hexo-theme-typography/blob/master/_art/screenshot.png?raw=true)
Expand Down Expand Up @@ -199,6 +201,9 @@ Then the generated HTML file will contain:

Typography natively supports the following social network accounts:

- E-mail
- Steam
- bilibili
- Twitter
- GitHub
- Instagram
Expand All @@ -207,6 +212,9 @@ Typography natively supports the following social network accounts:
To use light up those icons, just simply set the values for the corresponding options.

```yaml
email: E-mail address
steam: user name
bilibili: bilibili UID
twitter: user_name
weibo: user_id/permanent_name
instagram: user_name
Expand Down
11 changes: 11 additions & 0 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
hexo-theme-Typography
======

[点击查看演示](https://yueplus.ink)

![Head](https://github.com/SumiMakito/hexo-theme-typography/blob/master/_art/head.png?raw=true)

![Screenshot](https://github.com/SumiMakito/hexo-theme-typography/blob/master/_art/screenshot.png?raw=true)
Expand Down Expand Up @@ -89,6 +91,9 @@ prism_plugin:
mode: 'preprocess'
theme: 'default'
line_number: true

# 在页脚显示ICP备案号,不显示留空。
icp:
```

## 更新
Expand Down Expand Up @@ -197,6 +202,9 @@ desc: Description to be inserted into the metadata of the post page.

「活版印字」主题支持以下社交账号:

- E-mail
- Steam
- bilibili
- Twitter
- GitHub
- Instagram
Expand All @@ -205,6 +213,9 @@ desc: Description to be inserted into the metadata of the post page.
点亮这些图标十分简单,你只需要为它们设置好 ID 即可,图标的链接会自动生成。

```yaml
email: 邮箱地址
steam: steam用户名
bilibili: bilibili UID
twitter: user_name
weibo: user_id/permanent_name
instagram: user_name
Expand Down
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ title_primary: "活版印字" # the bigger text
title_secondary: "Typography" # the smaller text
keywords:

email: #E-mail address
bilibili: #bilibili UID
steam: #user name
twitter: #username
rss: atom.xml
weibo: #username/id
Expand Down
1 change: 1 addition & 0 deletions languages/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ About: About
Links: Links
Comments: Comments
posted_at: Posted at
edited_at: Edited at
TagCount: '%d tags'
ArchiveCount: '%d post'
CategoriesCount: '%d post'
Expand Down
20 changes: 20 additions & 0 deletions languages/ja.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
share: 共有
prev: 前のページ
next: 次のページ
prev_post: 前の記事
next_post: 次へ記事
Home: 家
Albums: 画廊
Categories: 分類
Archive: 書庫
Tags: 付箋
About: 私について
Links: リンク
Comments: コメント
posted_at: 提出時
edited_at: 変更時
TagCount: '%d 記事'
ArchiveCount: '%d 記事'
CategoriesCount: '%d 記事'
PageCount: '合計 %d ページ'
PageNumber: '%d ページ'
1 change: 1 addition & 0 deletions languages/zh-cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ About: 关于
Links: 链接
Comments: 评论
posted_at: 发布于
edited_at: 修改于
TagCount: '%d 篇'
ArchiveCount: '%d 篇'
CategoriesCount: '%d 篇'
Expand Down
1 change: 1 addition & 0 deletions languages/zh-tw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ About: 關於
Links: 連結
Comments: 評論
posted_at: 發佈於
edited_at: 脩改於
TagCount: '%d 篇'
ArchiveCount: '%d 篇'
CategoriesCount: '%d 篇'
Expand Down
3 changes: 2 additions & 1 deletion layout/mixins.jade
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ mixin make_post(item, is_detail)
else
a(href= url_for(item.path))= item.title
p.post-meta
span.date.meta-item!=__("posted_at")+" " + date(item.date, 'YYYY-MM-DD')
span.date.meta-item!=__("posted_at")+" " + date(item.date, config.date_format + " " + config.time_format)
span.date.meta-item!=__("edited_at")+" " + date(item.updated, config.date_format + " " + config.time_format)
if theme.duoshuo || theme.disqus
span.meta-item
i.fa.fa-comment-o
Expand Down
4 changes: 3 additions & 1 deletion layout/partial/footer.jade
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ footer
!=currYear
|  
a(target="_blank", href=config.url, rel="noopener noreferrer")!=theme.author ? theme.author : config.author ? config.author : config.title
|  
!=config.icp
p Theme 
a(target="_blank", href="https://github.com/SumiMakito/hexo-theme-typography", rel="noopener noreferrer") Typography
|  by 
a(target="_blank", href="https://www.keep.moe", rel="noopener noreferrer") Makito
p Proudly published with 
a(target="_blank", href="https://hexo.io", rel="noopener noreferrer") Hexo
a(target="_blank", href="https://hexo.io", rel="noopener noreferrer") Hexo
1 change: 1 addition & 0 deletions layout/partial/head.jade
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ meta(name="renderer",content="webkit")
link(rel="short icon", href="/images/favicon.png",type="image/x-icon")
link(rel="stylesheet", href= url_for('css/bootstrap.min.css'))
link(rel="stylesheet", href= url_for('css/font-awesome.min.css'))
link(rel="stylesheet", href= url_for('css/icon-bilibili.css'))
//- link(rel="stylesheet", href= url_for('css/typography-custom-font.css'))
if theme.themeStyle == "light"
link(rel="stylesheet", href= url_for('css/style.css'))
Expand Down
9 changes: 9 additions & 0 deletions layout/partial/nav.jade
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ div#site-nav.site-title-links
include ../mixins
+make_page_links()
li.soc
if theme.email
a(href="mailto:" + theme.email, target="_blank", rel="noopener noreferrer")
i.fa.fa-envelope  
if theme.bilibili
a(href="https://space.bilibili.com/" + theme.bilibili, target="_blank", rel="noopener noreferrer")
span.iconfont.icon-CN_bilibiliB  
if theme.steam
a(href="https://steamcommunity.com/id/" + theme.steam + "/", target="_blank", rel="noopener noreferrer")
i.fa.fa-steam  
if theme.github
a(href="https://github.com/" + theme.github, target="_blank", rel="noopener noreferrer")
i.fa.fa-github  
Expand Down
6 changes: 3 additions & 3 deletions layout/post.jade
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ block content
.share
span= __('share')
|  
span.soc
span
a.fa.fa-bookmark(href="javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var%20x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new%20Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();", ref="nofollow", target="_blank")
span.soc
span
a.fa.fa-weibo(href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://service.weibo.com/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));")
span.soc
span
a.fa.fa-twitter(href=url_for("http://twitter.com/home?status=" + "" + config.url + "/" + page.path + "%20" + config.title + "%20" + page.title + ""))
- var prev = page.prev ? page.prev.path : false;
- var next = page.next ? page.next.path : false;
Expand Down
Loading