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 9 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
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
19 changes: 19 additions & 0 deletions languages/ja.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
share: 共有
prev: 前のページ
next: 次のページ
prev_post: 前の記事
next_post: 次へ記事
Home: 家
Albums: 画廊
Categories: 分類
Archive: 書庫
Tags: 付箋
About: 私について
Links: リンク
Comments: コメント
posted_at: 提出時
TagCount: '%d 記事'
ArchiveCount: '%d 記事'
CategoriesCount: '%d 記事'
PageCount: '合計 %d ページ'
PageNumber: '%d ページ'
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
Loading