diff --git a/CNAME b/CNAME new file mode 100644 index 00000000000..9ce3e329d51 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +b.maizer.xyz \ No newline at end of file diff --git a/Gemfile b/Gemfile index 7a68f5a8817..1cdce4946b3 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,5 @@ source "https://rubygems.org" # gem "github-pages", group: :jekyll_plugins + gemspec diff --git a/README-zh.md b/README-zh.md deleted file mode 100644 index ed3021e60b6..00000000000 --- a/README-zh.md +++ /dev/null @@ -1,106 +0,0 @@ -# [TeXt Theme](https://github.com/kitian616/jekyll-TeXt-theme) - -[![license](https://img.shields.io/github/license/kitian616/jekyll-TeXt-theme.svg)](https://github.com/kitian616/jekyll-TeXt-theme/blob/master/LICENSE) -[![Gem Version](https://img.shields.io/gem/v/jekyll-text-theme.svg)](https://github.com/kitian616/jekyll-TeXt-theme/releases) -[![Travis](https://img.shields.io/travis/kitian616/jekyll-TeXt-theme.svg)](https://travis-ci.org/kitian616/jekyll-TeXt-theme) -[![Tip Me via PayPal](https://img.shields.io/badge/PayPal-tip%20me-1462ab.svg?logo=paypal)](https://www.paypal.me/kitian616) -[![Tip Me via Bitcoin](https://img.shields.io/badge/Bitcoin-tip%20me-f7931a.svg?logo=bitcoin)](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/3Fkufxcw2xd8HnaRJBNK4ccdtkUDyyNu4V.jpg) - -![TeXt Theme](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/TeXt-home.jpg) - -![TeXt Theme Details](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/TeXt-layouts.png) - -TeXt 是针对个人或团队网站、博客、项目、文档等的一款高度可定制的 Jekyll 主题。它参考了 iOS 11 的风格,有大而突出的标题和圆润的按钮及卡片。 - -**[English](https://github.com/kitian616/jekyll-TeXt-theme/blob/master/README.md)** - -## 特性 - -- 响应式 -- HTML 语意化 -- 皮肤 -- 代码高亮主题 -- 国际化 -- 搜索 -- 目录 -- 作者(支持多个) -- 附加样式(提示,标签,图片,图标,按钮,栅格等) -- 扩展(音频,视频,幻灯片,在线示例) -- Markdown 增强([MathJax](https://www.mathjax.org/),[mermaid](https://mermaidjs.github.io/),[chartjs](http://www.chartjs.org/)) -- 分享([AddToAny](https://www.addtoany.com/),[AddThis](https://www.addthis.com/)) -- 评论([Disqus](https://disqus.com/),[Gitalk](https://gitalk.github.io/),[Valine](https://valine.js.org/en/)) -- 阅读量统计([LeanCloud](https://leancloud.cn/)) -- 站点统计([Google Analytics](https://analytics.google.com/analytics/web/)) -- RSS([jekyll-feed](https://github.com/jekyll/jekyll-feed)) - -## 皮肤 - -TeXt 内置有 6 套皮肤,你也可以定制自己的皮肤。 - -| `default` | `dark` | `forest` | -| --- | --- | --- | -| ![Default](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_default.jpg) | ![Dark](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_dark.jpg) | ![Forest](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_forest.jpg) | - -| `ocean` | `chocolate` | `orange` | -| --- | --- | --- | -| ![Ocean](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_ocean.jpg) | ![Chocolate](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_chocolate.jpg) | ![Orange](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_orange.jpg) | - -### 代码高亮主题 - -TeXt 使用 [Tomorrow](https://github.com/chriskempson/tomorrow-theme) 作为它的代码高亮主题。 - -| `tomorrow` | `tomorrow-night` | `tomorrow-night-eighties` | `tomorrow-night-blue` | `tomorrow-night-bright` | -| --- | --- | --- | --- | --- | -| ![Tomorrow](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow.png) | ![Tomorrow Night](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night.png) | ![Tomorrow Night Eighties](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night-eighties.png) | ![Tomorrow Night Blue](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night-blue.png) | ![Tomorrow Night Bright](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night-bright.png) | - -## 文档 - -### 开始 - -- [快速开始](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/quick-start) -- [从 1.x 升级到 2.x](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/update-from-1-to-2) - -### 定制 - -- [配置](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/configuration) -- [导航栏](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/navigation) -- [布局](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/layouts) -- [Logo 和 Favicon](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/logo-and-favicon) -- [作者](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/authors) -- [国际化](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/i18n) - -### 内容 - -- [撰写博客](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/writing-posts) -- [附加样式](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/additional-styles) -- [扩展](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/extensions) -- [Markdown 增强](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/markdown-enhancements) - -## 示例 - -| Name | Description | -| --- | --- | -| [Home](https://kitian616.github.io/jekyll-TeXt-theme/test/) | 列表页 | -| [Archive](https://kitian616.github.io/jekyll-TeXt-theme/archive.html) | 归档页 | -| [Layout Examples](https://kitian616.github.io/jekyll-TeXt-theme/samples.html) | 各种布局示例 | - -## 支持我 - -你的支持是我的动力。你可以通过以下方式支持我: - -- 给该项目点赞 🌟 -- 赞同[这个知乎回答](https://www.zhihu.com/question/20223939/answer/122596506) -- 关注我的 GitHub -- 打赏 - -| 微信支付 | 支付宝 | -| --- | --- | -| ![微信支付二维码](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/tip_wechat.jpg) | ![支付宝二维码](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/tip_alipay.jpg) | - -## 其他资源 - -在 *_includes/icon/social* 目录下有很多的社交产品图标,例如 Behance、Flickr、QQ、微信等,方便修改和使用。 - -## 协议 - -TeXt Theme 遵循 [MIT 协议](https://github.com/kitian616/jekyll-TeXt-theme/blob/master/LICENSE)。 diff --git a/_config.yml b/_config.yml index 11291bbf687..1da25b590f2 100644 --- a/_config.yml +++ b/_config.yml @@ -16,11 +16,13 @@ ## => Site Settings ############################## -text_skin: default # "default" (default), "dark", "forest", "ocean", "chocolate", "orange" +text_skin: dark # "default" (default), "dark", "forest", "ocean", "chocolate", "orange" highlight_theme: default # "default" (default), "tomorrow", "tomorrow-night", "tomorrow-night-eighties", "tomorrow-night-blue", "tomorrow-night-bright" url : # the base hostname & protocol for your site e.g. https://www.someone.com baseurl : # does not include hostname -title : Your Site Title +title : Maizer's Whimsy +future : true +logo : /assets/images/logo/logo.png description: > # this means to ignore newlines until "Language & timezone" Your Site Description @@ -35,11 +37,11 @@ timezone: # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for ############################## author: type : # "person" (default), "organization" - name : Your Name + name : Maizer url : avatar : # path or url of avatar image (square) bio : I am an amazing person. - email : + email : Maizer@foxmail.com facebook : # "user_name" the last part of your profile url, e.g. https://www.facebook.com/user_name twitter : # "user_name" the last part of your profile url, e.g. https://twitter.com/user_name weibo : # "user_id" the last part of your profile url, e.g. https://www.weibo.com/user_id/profile?... @@ -49,13 +51,13 @@ author: zhihu : # "user_name" the last part of your profile url, e.g. https://www.zhihu.com/people/user_name douban : # "user_name" the last part of your profile url, e.g. https://www.douban.com/people/user_name linkedin : # "user_name" the last part of your profile url, e.g. https://www.linkedin.com/in/user_name - github : # "user_name" the last part of your profile url, e.g. https://github.com/user_name + github : Maizer # "user_name" the last part of your profile url, e.g. https://github.com/user_name npm : # "user_name" the last part of your profile url, e.g. https://www.npmjs.com/~user_name ## => GitHub Repository (if the site is hosted by GitHub) ############################## -repository: user_name/repo_name +repository: Maizer/maizer.github.io repository_tree: master diff --git a/_data/variables.yml b/_data/variables.yml index 43aa3aaf4fe..2d3ab914c30 100644 --- a/_data/variables.yml +++ b/_data/variables.yml @@ -1,7 +1,7 @@ default: text_skin: default highlight_theme: default - lang: en + lang: zh paths: root: / home: / diff --git a/_includes/article-header.html b/_includes/article-header.html index 748b24c79af..72577643fbe 100644 --- a/_includes/article-header.html +++ b/_includes/article-header.html @@ -35,7 +35,8 @@ - + + {%- endif -%} {%- endif -%} diff --git a/_includes/footer.html b/_includes/footer.html index 0a4eb29c54c..78f6a997422 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -28,9 +28,9 @@
{%- include snippets/get-locale-string.html key='COPYRIGHT_DATES' -%} {%- assign _locale_copyright_dates = __return -%} - © {{ site.title }} {{ _locale_copyright_dates }}, - Powered by Jekyll & TeXt Theme. + © {{ site.author.name }} {{ _locale_copyright_dates }}, + Powered by Jekyll & TeXt Theme.
diff --git a/_includes/header.html b/_includes/header.html index c79d3992388..3be702e2adc 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -8,7 +8,17 @@
- {%- include svg/logo.svg -%} +
+ {%- if site.logo -%} + {%- if site.logotype == 'svg' -%} + {%- include site.logo -%} + {%- else -%} + + {%- endif -%} + {%- else -%} + {%- include svg/logo.svg -%} + {%- endif -%} +
{%- assign _paths_root = site.paths.root | default: site.data.variables.default.paths.root -%} {%- include snippets/get-nav-url.html path=_paths_root -%} {%- if site.title -%} diff --git a/_includes/svg/logo.png b/_includes/svg/logo.png new file mode 100644 index 00000000000..11fb0ad89e0 Binary files /dev/null and b/_includes/svg/logo.png differ diff --git a/_includes/svg/logo.svg b/_includes/svg/logo.svg index 740dd3e7209..f83dd8a0089 100644 --- a/_includes/svg/logo.svg +++ b/_includes/svg/logo.svg @@ -1,8 +1 @@ - - - - + diff --git a/_includes/tags.html b/_includes/tags.html index 424804cfefc..ae78a089db7 100644 --- a/_includes/tags.html +++ b/_includes/tags.html @@ -19,7 +19,7 @@