diff --git a/.commitlintrc.js b/.commitlintrc.js deleted file mode 100644 index 2f924ea..0000000 --- a/.commitlintrc.js +++ /dev/null @@ -1,37 +0,0 @@ -module.exports = { - parserPreset: 'conventional-changelog-conventionalcommits', - rules: { - 'body-leading-blank': [1, 'always'], - 'footer-leading-blank': [1, 'always'], - 'header-max-length': [2, 'always', 72], - 'scope-case': [2, 'always', 'lower-case'], - 'subject-case': [ - 2, - 'never', - ['sentence-case', 'start-case', 'pascal-case', 'upper-case'] - ], - 'subject-empty': [2, 'never'], - 'subject-full-stop': [2, 'never', '.'], - 'type-case': [2, 'always', 'lower-case'], - 'type-empty': [2, 'never'], - 'type-enum': [ - 2, - 'always', - [ - 'build', - 'chore', - 'ci', - 'docs', - 'feat', - 'fix', - 'improvement', - 'perf', - 'refactor', - 'release', - 'revert', - 'style', - 'test' - ] - ] - } -}; diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 975a2e8..0000000 --- a/.eslintrc +++ /dev/null @@ -1,20 +0,0 @@ -{ - "env": { - "browser": true, - "jquery": true, - "node": true - }, - "rules": { - "no-console": "error", - "semi": ["error", "always"], - "quotes": ["error", "single"], - "comma-dangle": ["error", "never"], - "block-scoped-var": "error", - "default-case": "error", - "no-extra-bind": "error", - "camelcase": "error", - "indent": ["error", 2, { "SwitchCase": 1 }], - "eol-last": ["error", "always"] - }, - "extends": ["eslint:recommended"] -} diff --git a/.stylelintignore b/.stylelintignore deleted file mode 100644 index ea41ac3..0000000 --- a/.stylelintignore +++ /dev/null @@ -1,5 +0,0 @@ -/node_modules/ -/_gh_pages/ -**/dist/ -**/*.min.css -**/vendor/ diff --git a/.stylelintrc b/.stylelintrc deleted file mode 100644 index 28df0f6..0000000 --- a/.stylelintrc +++ /dev/null @@ -1,276 +0,0 @@ - -{ - "extends": ["stylelint-config-standard", "stylelint-config-recommended-scss"], - "plugins": [ - "stylelint-order" - ], - "rules": { - "at-rule-empty-line-before": null, - "at-rule-name-space-after": "always", - "at-rule-no-vendor-prefix": true, - "at-rule-semicolon-space-before": "never", - "block-closing-brace-empty-line-before": null, - "block-closing-brace-newline-after": null, - "block-opening-brace-space-before": null, - "color-named": "never", - "color-hex-case": "lower", - "color-hex-length": "short", - "declaration-block-semicolon-newline-after": "always-multi-line", - "declaration-block-semicolon-newline-before": "never-multi-line", - "declaration-block-semicolon-space-after": "always-single-line", - "declaration-empty-line-before": null, - "declaration-no-important": true, - "font-family-name-quotes": "always-where-recommended", - "font-weight-notation": null, - "function-url-no-scheme-relative": true, - "function-url-quotes": "always", - "length-zero-no-unit": true, - "max-empty-lines": 2, - "max-line-length": null, - "media-feature-name-no-vendor-prefix": true, - "media-feature-parentheses-space-inside": "never", - "media-feature-range-operator-space-after": "always", - "media-feature-range-operator-space-before": "never", - "no-descending-specificity": null, - "no-duplicate-selectors": true, - "number-leading-zero": "never", - "media-feature-name-no-unknown": [true, { - "ignoreMediaFeatureNames": ["prefers-reduced-motion"] - }], - "order/properties-order": [ - "position", - "top", - "right", - "bottom", - "left", - "z-index", - "box-sizing", - "display", - "flex", - "flex-align", - "flex-basis", - "flex-direction", - "flex-wrap", - "flex-flow", - "flex-shrink", - "flex-grow", - "flex-order", - "flex-pack", - "align-content", - "align-items", - "align-self", - "justify-content", - "order", - "float", - "width", - "min-width", - "max-width", - "height", - "min-height", - "max-height", - "padding", - "padding-top", - "padding-right", - "padding-bottom", - "padding-left", - "margin", - "margin-top", - "margin-right", - "margin-bottom", - "margin-left", - "overflow", - "overflow-x", - "overflow-y", - "-webkit-overflow-scrolling", - "-ms-overflow-x", - "-ms-overflow-y", - "-ms-overflow-style", - "columns", - "column-count", - "column-fill", - "column-gap", - "column-rule", - "column-rule-width", - "column-rule-style", - "column-rule-color", - "column-span", - "column-width", - "orphans", - "widows", - "clip", - "clear", - "font", - "font-family", - "font-size", - "font-style", - "font-weight", - "font-variant", - "font-size-adjust", - "font-stretch", - "font-effect", - "font-emphasize", - "font-emphasize-position", - "font-emphasize-style", - "font-smooth", - "src", - "hyphens", - "line-height", - "color", - "text-align", - "text-align-last", - "text-emphasis", - "text-emphasis-color", - "text-emphasis-style", - "text-emphasis-position", - "text-decoration", - "text-indent", - "text-justify", - "text-outline", - "-ms-text-overflow", - "text-overflow", - "text-overflow-ellipsis", - "text-overflow-mode", - "text-shadow", - "text-transform", - "text-wrap", - "-webkit-text-size-adjust", - "-ms-text-size-adjust", - "letter-spacing", - "-ms-word-break", - "word-break", - "word-spacing", - "-ms-word-wrap", - "word-wrap", - "overflow-wrap", - "tab-size", - "white-space", - "vertical-align", - "direction", - "unicode-bidi", - "list-style", - "list-style-position", - "list-style-type", - "list-style-image", - "pointer-events", - "-ms-touch-action", - "touch-action", - "cursor", - "visibility", - "zoom", - "table-layout", - "empty-cells", - "caption-side", - "border-spacing", - "border-collapse", - "content", - "quotes", - "counter-reset", - "counter-increment", - "resize", - "user-select", - "nav-index", - "nav-up", - "nav-right", - "nav-down", - "nav-left", - "background", - "background-color", - "background-image", - "filter", - "background-repeat", - "background-attachment", - "background-position", - "background-position-x", - "background-position-y", - "background-clip", - "background-origin", - "background-size", - "border", - "border-color", - "border-style", - "border-width", - "border-top", - "border-top-color", - "border-top-style", - "border-top-width", - "border-right", - "border-right-color", - "border-right-style", - "border-right-width", - "border-bottom", - "border-bottom-color", - "border-bottom-style", - "border-bottom-width", - "border-left", - "border-left-color", - "border-left-style", - "border-left-width", - "border-radius", - "border-top-left-radius", - "border-top-right-radius", - "border-bottom-right-radius", - "border-bottom-left-radius", - "border-image", - "border-image-source", - "border-image-slice", - "border-image-width", - "border-image-outset", - "border-image-repeat", - "outline", - "outline-width", - "outline-style", - "outline-color", - "outline-offset", - "box-shadow", - "opacity", - "-ms-interpolation-mode", - "page-break-after", - "page-break-before", - "page-break-inside", - "transition", - "transition-delay", - "transition-timing-function", - "transition-duration", - "transition-property", - "transform", - "transform-origin", - "perspective", - "appearance", - "animation", - "animation-name", - "animation-duration", - "animation-play-state", - "animation-timing-function", - "animation-delay", - "animation-iteration-count", - "animation-direction", - "animation-fill-mode", - "fill", - "stroke" - ], - "property-no-vendor-prefix": true, - "rule-empty-line-before": null, - "selector-attribute-quotes": "always", - "selector-list-comma-newline-after": "always-multi-line", - "selector-list-comma-newline-before": "never-multi-line", - "selector-list-comma-space-after": "always-single-line", - "selector-list-comma-space-before": "never-single-line", - "selector-max-attribute": 2, - "selector-max-class": 4, - "selector-max-combinators": 4, - "selector-max-compound-selectors": 4, - "selector-max-empty-lines": 1, - "selector-max-id": 0, - "selector-max-specificity": null, - "selector-max-type": 2, - "selector-max-universal": 1, - "selector-no-qualifying-type": null, - "selector-no-vendor-prefix": true, - "string-quotes": "double", - "value-keyword-case": "lower", - "value-list-comma-newline-after": "never-multi-line", - "value-list-comma-newline-before": "never-multi-line", - "value-list-comma-space-after": "always", - "value-no-vendor-prefix": true - } -} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 09f7f28..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: ruby -rvm: - - 2.4.1 -branches: - only: - - master -before_script: cp -rfv docs/_includes . -script: JEKYLL_ENV=production bundle exec jekyll build --config ./docs/_config.yml -deploy: - provider: pages - skip_cleanup: true - github_token: $GITHUB_TOKEN - local_dir: _site - keep-history: true - on: - branch: master - target_branch: gh-pages diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index c5d1032..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,235 +0,0 @@ -# Change Log - -## 2.2.6 (2019-02-02) - -### Enhancements - -- Add [commit linter](https://commitlint.js.org/) -- Add [EditorConfig](https://editorconfig.org/) -- Update npm packages - -### Bug Fixes - -- Fix some spelling errors in documents -- Fix some errors in configs - -## 2.2.5 (2019-12-08) - -### Enhancements - -- Update to Jekyll 4.0 -- Add custom snippets for main/top, main/bottom, article/top, article/bottom, etc -- Add Medium, Zhihu social icons -- Add Google Custom Search support -- Add Korean locale (@ssosso) -- Add French locale (@ctrl-q) -- Add Docker support - -## 2.2.4 (2018-12-10) - -### Enhancements - -- Swiper component support mouse move -- Add lightbox (modal image gallery) -- Add Valine comment system (@Lloyar) - -### Bug Fixes - -- Fix some spelling errors in documents (@Krinkle) - -## 2.2.3 (2018-11-11) - -### Enhancements - -- Add Swiper component -- Add AddThis sharing service (@liao961120) -- Add extensions for demos (CodePen) -- Add special stylesheets for print - -## 2.2.2 (2018-10-21) - -### Enhancements - -- Add extensions for audios (SoundCloud, Netease Cloud Music), videos (YouTube, TED, bilibili) and slide(SlideShare) -- Add AddToAny sharing service - -## 2.2.1 (2018-10-02) - -### Enhancements - -- Update screenshots -- Landing layout `data.sections` item's `image` add `full_width` setting -- Remove `header.type` and add `header.background` setting -- Page layout sidebar use document scroll when viewport width < 1024px, this enhance the user experience on a phone or a pad -- Telegram social icon (@WangQiru) -- Search panel use dark background - -## 2.2.0 (2018-09-16) - -### Enhancements - -- `article_header` setting for page layout -- Articles layout -- New grid system -- Image, card, item and hero components -- Tag additional style -- chart.js update to 2.7.2, mathjax update to 2.7.4 and mermaid update to 8.0.0-rc.8 - -### Bug Fixes - -- Replace Lenna test image - -## 2.1.0 (2018-08-26) - -### Enhancements - -- Search panel (Click search icon in the header or press `s` or `/` key to search) -- Npm social icon (@WangQiru) - -### Bug Fixes - -- Google analytics may not work, use gtag.js - -## 2.0.2 (2018-07-29) - -### Enhancements - -- Highlight theme -- Articles whit `sidebar.toc` support section navigator (previous and next navigator) -- Aside Toc show immediately after page get ready (no more delay) - -### Bug Fixes - -- Aside Toc may display error when scroll to bottom - -## 2.0.1 (2018-07-07) - -> “All elements that respond to press should have a visual feedback when touched.” -> -> —TouchableWithoutFeedback in *React Native Docs* - -### Enhancements - -- Some interaction details optimize: button and link add feedback when clicked, cancel button of input in archive layout, button focus style, etc - -### Bug Fixes - -- `mathjax` and `mermaid` setting may not work - -## 2.0.0 (2018-07-01) - -Breaking changes, please check [Update from 1.x to 2.x](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/update-from-1-to-2) for details - -### Enhancements - -- Authors -- License -- New layouts (page, article, landing, etc) - -## 1.5.0 (2018-03-18) - -### Enhancements - -- `text_color_theme` setting -- Long pagination -- Additional styles (Alert, Image) -- Mathjax `autoNumber` setting (@liao961120) -- Article heading anchor -- Previous and next post -- Search - -## 1.4.3 (2018-01-13) - -### Enhancements - -- New TOC style -- Gitalk support (@WangQiru) -- Mermaid support -- `site.paths` and `site.nav_lists` configs support absolute URL - -## 1.4.2 (2017-12-10) - -### Enhancements - -- Use new liquid syntax `{%-` `-%}` to avoid unnecessary output whitespace -- Add `paths.base` setting - -## 1.4.1 (2017-12-05) - -### Enhancements - -- New color themes(Chocolate, Orange) - -### Bug Fixes - -- Issues 9: the _posts file can't recorded by git - -## 1.4.0 (2017-11-19) - -### Enhancements - -- Internationalization - -### Bug Fixes - -- Table overflow-x smooth on iOS - -## 1.3.0 (2017-11-11) - -### Enhancements - -- Article tag supports special characters -- Excerpts type (HTML | TEXT) -- Titles on the phone become smaller -- Change styles for table, code and blockquote - -## 1.2.2 (2017-11-04) - -### Enhancements - -- MathJax Support -- Add “Read more” link at the end of article excerpt -- 404 page - -### Bug Fixes - -- Fix Email link URL error -- Fix Site Title link URL error -- Fix table responsive style error - -## 1.2.1 (2017-10-27) - -### Enhancements - -- Optimize Article TOC - -### Bug Fixes - -- Pageview display error when the post key include `-` (@yuxianda) -- Email url error - -## 1.2.0 (2017-10-22) - -### Enhancements - -- Article excerpt no more than 200 words -- If `leancloud` is not set, 0 view won't display - -### Bug Fixes - -- Fix article TOC’s display error at proper situation -- Fix footer social buttons not in the center bug - -## 1.1.0 (2017-10-19) - -### Enhancements - -- Color variables -- More color themes (dark, forest, ocean) - -## 1.0.0 (2017-10-17) - -### Enhancements - -- Better article directories -- Dark color theme diff --git a/Dockerfile.dev b/Dockerfile.dev deleted file mode 100644 index 33682a9..0000000 --- a/Dockerfile.dev +++ /dev/null @@ -1,18 +0,0 @@ -FROM ruby:2.7 - -# Set default locale for the environment -ENV LC_ALL C.UTF-8 -ENV LANG en_US.UTF-8 -ENV LANGUAGE en_US.UTF-8 - -# throw errors if Gemfile has been modified since Gemfile.lock -RUN bundle config --global frozen 1 - -WORKDIR /usr/src/app - -COPY Gemfile Gemfile.lock jekyll-text-theme.gemspec ./ -RUN bundle install - -EXPOSE 4000 - -CMD ["bundle", "exec", "jekyll", "help"] diff --git a/HOW_TO_RELEASE.md b/HOW_TO_RELEASE.md deleted file mode 100644 index a10499b..0000000 --- a/HOW_TO_RELEASE.md +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO RELEASE - -## Preparation - -- diff configs (*_config.yml*, *docs/_config.yml*, *docs/_config.dev.yml*, *test/_config.yml*) -- diff data dirs (*_data*, *docs/_data*, *test/_data*) -- *assets/css/main.scss* use configurable skin -- *screenshot.jpg* is the same as *screenshots/TeXt-home.jpg* -- update *CHANGELOG.md* -- update version (*jekyll-text-theme.gemspec*, *package.json*, *_includes/scripts/variables.html*) - -## Publishing - -- run `npm run gem-build` to build gem -- run `npm run gem-push` to publish gem to rubygems.org -- run `git add . && git commit -m "release: vx.x.x"` to make a release commit -- run `git tag vx.x.x` to add a tag -- run `git push && git push origin vx.x.x` to push -- edit release on github.com diff --git a/README-zh.md b/README-zh.md deleted file mode 100644 index ed3021e..0000000 --- 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/README.md b/README.md index 4802996..a9c1e70 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ ## News format -Edit here: [news.yml](https://github.com/chonglab/chonglab.github.io/blob/master/_data/news.yml)
-Edit photo: [news_photo](https://github.com/chonglab/chonglab.github.io/tree/master/news_photo) +Edit here: [news.yml](https://github.com/chonglab/chonglab.github.io/blob/main/_data/news.yml)
+Edit photo: [news_photo](https://github.com/chonglab/chonglab.github.io/tree/main/news_photo) ``` - year: month: @@ -36,7 +36,7 @@ Edit photo: [news_photo](https://github.com/chonglab/chonglab.github.io/tree/mas ## Publications format -Edit here: [publication.yml](https://github.com/chonglab/chonglab.github.io/blob/master/_data/publication.yml) +Edit here: [publication.yml](https://github.com/chonglab/chonglab.github.io/blob/main/_data/publication.yml) ``` - year: author: @@ -57,27 +57,27 @@ Edit here: [publication.yml](https://github.com/chonglab/chonglab.github.io/blob ## Software format -Edit here: [software.yml](https://github.com/chonglab/chonglab.github.io/blob/master/_data/software.yml) +Edit here: [software.yml](https://github.com/chonglab/chonglab.github.io/blob/main/_data/software.yml) ``` - tag: name: description: - download2: + github: ``` #### example ``` - tag: ClipSV name: ClipSV description: ClipSV is a novel method for SV detection based on read extension, spliced alignment, and local assembly. - download2: https://doi.org/10.1101/2024.07.22.604443 + github: https://github.com/ChongLab/example ``` [CHONG LAB SOFTWARE](https://chonglab.github.io/software/) ## Team format -Edit here: [team.yml](https://github.com/chonglab/chonglab.github.io/blob/master/_data/team.yml)
-Edit photo: [team_member](https://github.com/chonglab/chonglab.github.io/tree/master/team_member) +Edit here: [team.yml](https://github.com/chonglab/chonglab.github.io/blob/main/_data/team.yml)
+Edit photo: [team_member](https://github.com/chonglab/chonglab.github.io/tree/main/team_member) ``` - name: "" role: "" @@ -96,8 +96,8 @@ Edit photo: [team_member](https://github.com/chonglab/chonglab.github.io/tree/ma ## Album format -Edit here: [album.yml](https://github.com/chonglab/chonglab.github.io/blob/master/_data/album.yml)
-Edit photo: [album photo](https://github.com/chonglab/chonglab.github.io/tree/master/album) +Edit here: [album.yml](https://github.com/chonglab/chonglab.github.io/blob/main/_data/album.yml)
+Edit photo: [album photo](https://github.com/chonglab/chonglab.github.io/tree/main/album) ``` - descript: photo: album/PHOTO @@ -110,5 +110,3 @@ Edit photo: [album photo](https://github.com/chonglab/chonglab.github.io/tree/ma [CHONG LAB ALBUM](https://chonglab.github.io/album/) - - diff --git a/_config.yml b/_config.yml index e289198..365137b 100644 --- a/_config.yml +++ b/_config.yml @@ -30,7 +30,7 @@ description: > ## => Language and Timezone ############################## lang: en-US -timezone: America/New_York +timezone: America/New_York # In _config.yml sass: style: compressed @@ -173,8 +173,6 @@ pageview: # google: # custom_search_engine_id: # Google Custom Search Engine ID -#permalink: pretty - ## => Analytics ############################## analytics: @@ -193,21 +191,12 @@ highlighter : rouge permalink : date exclude: - - CHANGELOG.md - - HOW_TO_RELEASE.md - Gemfile - Gemfile.lock - LICENSE - - README-*.md - README.md - - gulpfile.js - jekyll-text-theme.gemspec - - package-lock.json - - package.json - - /docs - /node_modules - - /screenshots - - /test - /vendor defaults: @@ -219,6 +208,7 @@ defaults: path: "" values: layout: page + ## => Plugins ############################## plugins: diff --git a/docker/docker-compose.build-image.yml b/docker/docker-compose.build-image.yml deleted file mode 100644 index 630aa66..0000000 --- a/docker/docker-compose.build-image.yml +++ /dev/null @@ -1,7 +0,0 @@ -version: "3.5" - -services: - jekyll-text-theme_dev: - build: - context: ../ - dockerfile: Dockerfile.dev diff --git a/docker/docker-compose.default.yml b/docker/docker-compose.default.yml deleted file mode 100644 index 96bc775..0000000 --- a/docker/docker-compose.default.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: "3.5" - -services: - jekyll-text-theme_dev: - image: docker_jekyll-text-theme_dev - environment: - - JEKYLL_ENV - ports: - - 4000:4000 - container_name: jekyll-TeXt-theme_default - volumes: - - ..:/usr/src/app - stdin_open: true - tty: true - command: bundle exec jekyll serve -H 0.0.0.0 -t diff --git a/docker/docker-compose.demo.yml b/docker/docker-compose.demo.yml deleted file mode 100644 index fcfdcc3..0000000 --- a/docker/docker-compose.demo.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: "3.5" - -services: - jekyll-text-theme_dev: - image: docker_jekyll-text-theme_dev - environment: - - JEKYLL_ENV - ports: - - 4000:4000 - container_name: jekyll-TeXt-theme_demo - volumes: - - ..:/usr/src/app - stdin_open: true - tty: true - command: bundle exec jekyll serve -H 0.0.0.0 -t --config ./docs/_config.yml diff --git a/docker/docker-compose.dev.yml b/docker/docker-compose.dev.yml deleted file mode 100644 index 1d2d724..0000000 --- a/docker/docker-compose.dev.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: "3.5" - -services: - jekyll-text-theme_dev: - image: docker_jekyll-text-theme_dev - environment: - - JEKYLL_ENV - ports: - - 4000:4000 - container_name: jekyll-TeXt-theme_dev - volumes: - - ..:/usr/src/app - stdin_open: true - tty: true - command: bundle exec jekyll serve -H 0.0.0.0 -t --config ./docs/_config.dev.yml diff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.yml deleted file mode 100644 index 1ad4c1e..0000000 --- a/docker/docker-compose.prod.yml +++ /dev/null @@ -1,25 +0,0 @@ -version: "3.5" - -services: - jekyll-text-theme_build: - image: docker_jekyll-text-theme_dev - environment: - - JEKYLL_ENV - ports: - - 4000:4000 - container_name: jekyll-text-theme_build - volumes: - - ..:/usr/src/app - command: bundle exec jekyll build - jekyll-text-theme_web: - image: nginx - ports: - - 80:80 - - 443:443 - container_name: jekyll-text-theme_web - restart: unless-stopped - volumes: - - ../_site:/usr/share/nginx/html:ro - - ./nginx.conf:/etc/nginx/conf.d/default.conf - depends_on: - - jekyll-text-theme_build diff --git a/docker/nginx.conf b/docker/nginx.conf deleted file mode 100644 index 8d33912..0000000 --- a/docker/nginx.conf +++ /dev/null @@ -1,16 +0,0 @@ -server { - # gzip config - gzip on; - gzip_min_length 1k; - gzip_comp_level 9; - gzip_types text/plain text/css text/javascript application/json application/javascript application/x-javascript application/xml; - gzip_vary on; - - root /usr/share/nginx/html; - - index index.html; - - location / { - try_files $uri $uri/ =404; - } -} diff --git a/docs/_config.dev.yml b/docs/_config.dev.yml deleted file mode 100644 index 3bdee3d..0000000 --- a/docs/_config.dev.yml +++ /dev/null @@ -1,297 +0,0 @@ -# Welcome to Jekyll! -# -# This config file is meant for settings that affect your whole blog, values -# which you are expected to set up once and rarely need to edit after that. -# For technical reasons, this file is *NOT* reloaded automatically when you use -# 'jekyll serve'. If you change this file, please restart the server process. -# -# ,--------. ,--. ,--. ,--. -# '--. .--',---. \ `.' /,-' '-. -# | | | .-. : .' \ '-. .-' -# | | \ --. / .'. \ | | -# `--' `----''--' '--' `--' - -# config file for development, DELETE IT IF YOU WANT. - - -## => Site Settings -############################## -text_skin: default # "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 : TeXt Theme -description: > # this means to ignore newlines until "Language & timezone" - TeXt Theme for development. - - -## => Language and Timezone -############################## -lang: # the language of your site, default as "en" -timezone: # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the available values - - -## => Author and Social -############################## -author: - type : organization # "person" (default), "organization" - name : TeXt - url : - avatar : /assets/apple-touch-icon.png - bio: > - TeXt Theme for development. - email : 1 - facebook : 1 - twitter : 1 - weibo : 1 - googleplus: 1 - telegram : 1 - medium : 1 - zhihu : 1 - douban : 1 - linkedin : 1 - github : 1 - npm : 1 - - -## => GitHub Repository (if the site is hosted by GitHub) -############################## -repository: kitian616/jekyll-TeXt-theme -repository_tree: master - - -## => Paths -############################## -paths: - root : # title link url, "/" (default) - home : /test/ # home layout url, "/" (default) - archive : # "/archive.html" (default) - rss : # "/feed.xml" (default) - - -## => Post -############################## -## excerpt -excerpt_separator: - -## license -license: CC-BY-4.0 # "CC-BY-4.0", "CC-BY-SA-4.0", "CC-BY-NC-4.0", "CC-BY-ND-4.0" - -## TOC -toc: - selectors: "h1,h2,h3,h4,h5,h6" # "h1,h2,h3" (default) - - -## => Markdown Enhancements -############################## -## Mathjax -mathjax: true # false (default), true -mathjax_autoNumber: true # false (default), true - -## Mermaid -mermaid: true # false (default), true - -## Chart -chart: true # false (default), true - - -## => Paginate -############################## -paginate: 4 -paginate_path: /test/page:num # don't change this unless for special need - - -## => Sources -############################## -sources: unpkg # bootcdn (default), unpkg - - -## => Sharing -############################## -sharing: - provider: addtoany # false (default), "addtoany", "addthis", "custom" - - ## AddThis - addthis: - id: # AddThis pubid, e.g. ra-5xxxxxxxxxxx - - -## => Comments -############################## -comments: - provider: false # false (default), "disqus", "gitalk", "valine", "custom" - - ## Disqus - disqus: - shortname: # the Disqus shortname for the site - - ## Gitalk - # please refer to https://github.com/gitalk/gitalk for more info. - gitalk: - clientID : # GitHub Application Client ID - clientSecret: # GitHub Application Client Secret - repository : # GitHub repo - owner : # GitHub repo owner - admin: # GitHub repo owner and collaborators, only these guys can initialize GitHub issues, IT IS A LIST. - # - your GitHub Id - - ## Valine - # please refer to https://valine.js.org/en/ for more info. - valine: - app_id : # LeanCloud App id - app_key : # LeanCloud App key - placeholder : # Prompt information - visitor : # false (default) - meta : # "[nick, mail, link]" (default) nickname, E-mail, Personal-site - - -## => Pageview -############################## -pageview: - provider: false # false (default), "leancloud", "custom" - - ## Leancloud - leancloud: - app_id : # LeanCloud App id - app_key : # LeanCloud App key - app_class : # LeanCloud App class - - -## => Search -############################## -search: - provider: default # "default" (default), false, "google", "custom" - - ## Google Custom Search Engine - google: - # custom_search_engine_id: 017643444788069204610:4gvhea_mvga # Google Custom Search Engine ID - - -## => Analytics -############################## -analytics: - provider: false # false (default), "google", "custom" - - ## Google Analytics - google: - tracking_id : # Google Analytics id for the site - anonymize_ip: false # Anonymize IP tracking for Analytics - - -## => Build -############################## -markdown : kramdown -highlighter : rouge -permalink : date - -exclude: - - CHANGELOG.md - - HOW_TO_RELEASE.md - - Gemfile - - Gemfile.lock - - LICENSE - - README-*.md - - README.md - - gulpfile.js - - jekyll-text-theme.gemspec - - package-lock.json - - package.json - # - /docs - - /node_modules - # - /screenshots - # - /test - - /vendor - - /_posts - - /index.html - -collections_dir: docs -collections: - docs: - output: true - sample_page: - output: true - sample_articles: - output: true - sample_languages: - output: true - -defaults: - ## home - - scope: - path: "test" - values: - articles: - excerpt_type: html - ## posts - - scope: - path: "" - type: posts - values: - layout: article - sharing: true - license: true - category: post - aside: - toc: true - show_edit_on_github: true - show_subscribe: true - pageview: true - lightbox: true - ## samples - - scope: - path: "" - type: sample_page - values: - nav_key: samples - - scope: - path: "" - type: sample_articles - values: - nav_key: samples - show_date: false - - scope: - path: "" - type: sample_languages - values: - layout: article - nav_key: samples - show_date: false - ## docs - - scope: - path: "_docs/en" - values: - layout: article - nav_key: docs - sidebar: - nav: docs-en - license: true - aside: - toc: true - show_edit_on_github: true - show_date: false - lightbox: true - - scope: - path: "_docs/zh" - values: - layout: article - nav_key: docs - sidebar: - nav: docs-zh - license: true - aside: - toc: true - lang: zh - show_edit_on_github: true - show_date: false - lightbox: true - - -## => Plugins -############################## -plugins: - # - jekyll-feed - - jekyll-paginate - # - jekyll-sitemap - - jemoji - -data_dir: /docs/_data diff --git a/docs/_config.yml b/docs/_config.yml deleted file mode 100644 index aef6474..0000000 --- a/docs/_config.yml +++ /dev/null @@ -1,299 +0,0 @@ -# Welcome to Jekyll! -# -# This config file is meant for settings that affect your whole blog, values -# which you are expected to set up once and rarely need to edit after that. -# For technical reasons, this file is *NOT* reloaded automatically when you use -# 'jekyll serve'. If you change this file, please restart the server process. -# -# ,--------. ,--. ,--. ,--. -# '--. .--',---. \ `.' /,-' '-. -# | | | .-. : .' \ '-. .-' -# | | \ --. / .'. \ | | -# `--' `----''--' '--' `--' - -# config file for demo site, DELETE IT IF YOU WANT. - - -## => Site Settings -############################## -text_skin: default # "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 : https://kitian616.github.io -baseurl : /jekyll-TeXt-theme -title : TeXt Theme -description: > - A super customizable Jekyll theme for personal site, team site, blog, project, documentation, etc. - - -## => Language and Timezone -############################## -lang: en # the language of your site, default as "en" -timezone: Asia/Shanghai - - -## => Author and Social -############################## -author: - type : organization # "person" (default), "organization" - name : TeXt - url : - avatar : /assets/apple-touch-icon.png - bio: > - TeXt is a super customizable Jekyll theme for personal site, team site, blog, project, documentation, etc. - Similar to iOS 11 style, it has large and prominent titles, round buttons and cards. - email : kitian616@outlook.com - facebook : - twitter : kitian616 - weibo : 234695683 - googleplus: 101827554735084402671 - telegram : - medium : - zhihu : - douban : - linkedin : - github : kitian616/jekyll-TeXt-theme - npm : - - -## => GitHub Repository (if the site is hosted by GitHub) -############################## -repository: kitian616/jekyll-TeXt-theme -repository_tree: master - - -## => Paths -############################## -paths: - root : # title link url, "/" (default) - home : /test/ # home layout url, "/" (default) - archive : # "/archive.html" (default) - rss : # "/feed.xml" (default) - - -## => Post -############################## -## excerpt -excerpt_separator: - -## license -license: CC-BY-4.0 # "CC-BY-4.0", "CC-BY-SA-4.0", "CC-BY-NC-4.0", "CC-BY-ND-4.0" - -## TOC -toc: - selectors: # "h1,h2,h3" (default) - - -## => Markdown Enhancements -############################## -## Mathjax -mathjax: true # false (default), true -mathjax_autoNumber: true # false (default), true - -## Mermaid -mermaid: true # false (default), true - -## Chart -chart: true # false (default), true - - -## => Paginate -############################## -paginate: 8 -paginate_path: /test/page:num # don't change this unless for special need - - -## => Sources -############################## -sources: # bootcdn (default), unpkg - - -## => Sharing -############################## -sharing: - provider: addthis # false (default), "addtoany", "addthis", "custom" - - ## AddThis - addthis: - id: ra-5be59ee2486770cb # AddThis pubid, e.g. ra-5xxxxxxxxxxx - - -## => Comments -############################## -comments: - provider: gitalk # false (default), "disqus", "gitalk", "valine", "custom" - # provider: valine - - ## Disqus - disqus: - shortname: # the Disqus shortname for the site - - ## Gitalk - # please refer to https://github.com/gitalk/gitalk for more info. - gitalk: - clientID : 143666b578a416f82175 - clientSecret: 1d1c0604a1a4bff9b59ab7f56724dc0e8b837775 - repository : gitalk-demo - owner : kitian616 - admin: - - kitian616 - - ## Valine - # please refer to https://valine.js.org/en/ for more info. - valine: - app_id : uAG3OhdcH8H4fxSqXLyBljA7-gzGzoHsz - app_key : Mzf5m9skSwYVWVXhGiYMNyXs - placeholder : # Prompt information - visitor : # false (default) - meta : # "[nick, mail, link]" (default) nickname, E-mail, Personal-site - - -## => Pageview -############################## -pageview: - provider: leancloud # false (default), "leancloud", "custom" - - ## Leancloud - leancloud: - app_id : uAG3OhdcH8H4fxSqXLyBljA7-gzGzoHsz - app_key : Mzf5m9skSwYVWVXhGiYMNyXs - app_class : TeXtDemo - - -## => Search -############################## -search: - provider: default # "default" (default), false, "google", "custom" - - ## Google Custom Search Engine - google: - custom_search_engine_id: # Google Custom Search Engine ID - - -## => Analytics -############################## -analytics: - provider: google # false (default), "google", "custom" - - ## Google Analytics - google: - tracking_id : UA-71907556-1 - anonymize_ip: false - - -## => Build -############################## -markdown : kramdown -highlighter : rouge -permalink : date - -exclude: - - CHANGELOG.md - - HOW_TO_RELEASE.md - - Gemfile - - Gemfile.lock - - LICENSE - - README-*.md - - README.md - - gulpfile.js - - jekyll-text-theme.gemspec - - package-lock.json - - package.json - # - /docs - - /node_modules - # - /screenshots - # - /test - - /vendor - - /_posts - - /index.html - -collections_dir: docs -collections: - docs: - output: true - sample_page: - output: true - sample_articles: - output: true - sample_languages: - output: true - -defaults: - ## home - - scope: - path: "test" - values: - articles: - excerpt_type: html - ## posts - - scope: - path: "" - type: posts - values: - layout: article - sharing: true - license: true - category: post - aside: - toc: true - show_edit_on_github: true - show_subscribe: true - pageview: true - # lightbox: true - ## samples - - scope: - path: "" - type: sample_page - values: - nav_key: samples - - scope: - path: "" - type: sample_articles - values: - nav_key: samples - show_date: false - - scope: - path: "" - type: sample_languages - values: - layout: article - nav_key: samples - show_date: false - ## docs - - scope: - path: "_docs/en" - values: - layout: article - nav_key: docs - sidebar: - nav: docs-en - license: true - aside: - toc: true - show_edit_on_github: true - show_date: false - # lightbox: true - - scope: - path: "_docs/zh" - values: - layout: article - nav_key: docs - sidebar: - nav: docs-zh - license: true - aside: - toc: true - lang: zh - show_edit_on_github: true - show_date: false - # lightbox: true - - -## => Plugins -############################## -plugins: - - jekyll-feed - - jekyll-paginate - - jekyll-sitemap - - jemoji - -data_dir: /docs/_data diff --git a/docs/_data/authors.yml b/docs/_data/authors.yml deleted file mode 100644 index 90e3e1b..0000000 --- a/docs/_data/authors.yml +++ /dev/null @@ -1,17 +0,0 @@ -Tian Qi: - name: Tian Qi # your Name - url: https://kitian616.github.io - avatar: https://wx3.sinaimg.cn/large/73bd9e13ly1fjkqy66hl8j208c08c0td.jpg # your photo - bio: The Creator of TeXt. - email: kitian616@outlook.com - facebook : # "user_name" the last part of your profile url, e.g. https://www.facebook.com/user_name - twitter : kitian616 # "user_name" the last part of your profile url, e.g. https://twitter.com/user_name - weibo : 234695683 # "user_id" the last part of your profile url, e.g. https://www.weibo.com/user_id/profile?... - googleplus: 101827554735084402671 # "user_id" the last part of your profile url, e.g. https://plus.google.com/u/0/user_id - telegram : # "user_name" the last part of your profile url, e.g. https://t.me/user_name - medium : # "user_name" the last part of your profile url, e.g. https://medium.com/user_name - 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 : kitian616 # "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 diff --git a/docs/_data/licenses.yml b/docs/_data/licenses.yml deleted file mode 100644 index 6729af5..0000000 --- a/docs/_data/licenses.yml +++ /dev/null @@ -1,16 +0,0 @@ -CC-BY-4.0: - name: Attribution 4.0 International - url: https://creativecommons.org/licenses/by/4.0/ - image: https://i.creativecommons.org/l/by/4.0/88x31.png -CC-BY-SA-4.0: - name: Attribution-ShareAlike 4.0 International - url: https://creativecommons.org/licenses/by-sa/4.0/ - image: https://i.creativecommons.org/l/by-sa/4.0/88x31.png -CC-BY-NC-4.0: - name: Attribution-NonCommercial 4.0 International - url: https://creativecommons.org/licenses/by-nc/4.0/ - image: https://i.creativecommons.org/l/by-nc/4.0/88x31.png -CC-BY-ND-4.0: - name: Attribution-NoDerivatives 4.0 International - url: https://creativecommons.org/licenses/by-nd/4.0/ - image: https://i.creativecommons.org/l/by-nd/4.0/88x31.png diff --git a/docs/_data/locale.yml b/docs/_data/locale.yml deleted file mode 100644 index c9c1abf..0000000 --- a/docs/_data/locale.yml +++ /dev/null @@ -1,170 +0,0 @@ -# @start locale config -## => English -######################## -en: &EN - SUBSCRIBE : "Subscribe" - READMORE : "Read more" - SEARCH : "Search" - CANCEL : "Cancel" - VIEWS : "views" - LAST_UPDATED : "Last updated" - PREVIOUS : "PREVIOUS" - NEXT : "NEXT" - ARTICLE_DATE_FORMAT : "%b %d, %Y" - ARTICLE_LIST_DATE_FORMAT: "%b %d" - STATISTICS : "[POST_COUNT] post articles, [PAGE_COUNT] pages." - LICENSE_ANNOUNCE : "This work is licensed under a [LICENSE] license." - POST_ON_GITHUB : "Edit on Github" - FOLLOW_ME : "Follow me on [NAME]." - FOLLOW_US : "Follow us on [NAME]." - EMAIL_ME : "Send me an Email." - EMAIL_US : "Send us an Email." - COPYRIGHT_DATES : "2021" - -en-GB: - <<: *EN -en-US: - <<: *EN -en-CA: - <<: *EN -en-AU: - <<: *EN - -## => Simplified Chinese -######################## -zh-Hans: &ZH_HANS - SUBSCRIBE : "订阅" - READMORE : "阅读更多" - SEARCH : "搜索" - CANCEL : "取消" - VIEWS : "阅读" - LAST_UPDATED : "更新于" - PREVIOUS : "上篇" - NEXT : "下篇" - ARTICLE_DATE_FORMAT : "%Y年 %m月%d日" - ARTICLE_LIST_DATE_FORMAT: "%m月%d日" - STATISTICS : "共计 [POST_COUNT] 篇文章,[PAGE_COUNT] 页。" - LICENSE_ANNOUNCE : "本文遵守 [LICENSE] 许可协议。" - POST_ON_GITHUB : "在 Github 上修改" - FOLLOW_ME : "在 [NAME] 上关注我。" - FOLLOW_US : "在 [NAME] 上关注我们。" - EMAIL_ME : "给我发邮件。" - EMAIL_US : "给我们发邮件。" - COPYRIGHT_DATES : "2021" - -zh: - <<: *ZH_HANS -zh-CN: - <<: *ZH_HANS -zh-SG: - <<: *ZH_HANS - -## => Traditional Chinese -######################## -zh-Hant: &ZH_HANT - SUBSCRIBE : "訂閱" - READMORE : "閱讀更多" - SEARCH : "搜索" - CANCEL : "取消" - VIEWS : "閱讀" - LAST_UPDATED : "更新於" - PREVIOUS : "上篇" - NEXT : "下篇" - ARTICLE_DATE_FORMAT : "%Y年 %m月%d日" - ARTICLE_LIST_DATE_FORMAT: "%m月%d日" - STATISTICS : "共計 [POST_COUNT] 篇文章,[PAGE_COUNT] 頁。" - LICENSE_ANNOUNCE : "本文遵守 [LICENSE] 許可協議。" - POST_ON_GITHUB : "在 Github 上修改" - FOLLOW_ME : "在 [NAME] 上關注我。" - FOLLOW_US : "在 [NAME] 上關注我們。" - EMAIL_ME : "給我發郵件。" - EMAIL_US : "給我們發郵件。" - COPYRIGHT_DATES : "2021" - -zh-TW: - <<: *ZH_HANT -zh-HK: - <<: *ZH_HANT - -## => Korean -######################## -ko: &KO - SUBSCRIBE : "구독하기" - READMORE : "더보기" - SEARCH : "검색" - CANCEL : "취소" - VIEWS : "조회" - LAST_UPDATED : "마지막 수정" - PREVIOUS : "이전" - NEXT : "다음" - ARTICLE_DATE_FORMAT : "%Y년 %m월 %d일" - ARTICLE_LIST_DATE_FORMAT: "%m월 %d일" - STATISTICS : "전체 글 [POST_COUNT]개, [PAGE_COUNT] 페이지" - LICENSE_ANNOUNCE : "이 글의 저작권은 [LICENSE] 라이센스를 따릅니다." - POST_ON_GITHUB : "Github에서 확인하기" - FOLLOW_ME : "[NAME]에서 팔로우하기" - FOLLOW_US : "[NAME]에서 팔로우하기" - EMAIL_ME : "이메일 보내기" - EMAIL_US : "이메일 보내기" - COPYRIGHT_DATES : "2021" - -ko-KR: - <<: *KO - -## => French -######################## -fr: &FR - SUBSCRIBE : "S'abonner" - READMORE : "Plus" - SEARCH : "Recherche" - CANCEL : "Annuler" - VIEWS : "vues" - LAST_UPDATED : "Dernière modification" - PREVIOUS : "PRÉCÉDENT" - NEXT : "SUIVANT" - ARTICLE_DATE_FORMAT : "%d %b, %Y" - ARTICLE_LIST_DATE_FORMAT: "%d %b" - STATISTICS : "[POST_COUNT] articles, [PAGE_COUNT] pages." - LICENSE_ANNOUNCE : "Ce travail est sous licence [LICENSE]." - POST_ON_GITHUB : "Modifier sur Github" - FOLLOW_ME : "Suivez-moi sur [NAME]." - FOLLOW_US : "Suivez-nous sur [NAME]." - EMAIL_ME : "Envoyez-moi un courriel." - EMAIL_US : "Envoyez-nous un courriel" - COPYRIGHT_DATES : "2021" - DONATE : "Faites un don de [NAME]." - -fr-BE: - <<: *FR -fr-CA: - <<: *FR -fr-CH: - <<: *FR -fr-FR: - <<: *FR -fr-LU: - <<: *FR - -## => Turkish -######################## -tr: &TR - SUBSCRIBE : "Takip et" - READMORE : "Devamını Oku" - SEARCH : "İçerik Ara" - CANCEL : "İptal" - VIEWS : "gösterim" - LAST_UPDATED : "Son güncellenme" - PREVIOUS : "ÖNCEKİ" - NEXT : "SONRAKİ" - ARTICLE_DATE_FORMAT : "%d %b, %Y" - ARTICLE_LIST_DATE_FORMAT: "%d %b" - STATISTICS : "Toplam [POST_COUNT] adet gönderim ve [PAGE_COUNT] adet sayfa bulunuyor." - LICENSE_ANNOUNCE : "Bu içerik [LICENSE] ile lisanslanmıştır." - POST_ON_GITHUB : "Github üzerinde düzenle" - FOLLOW_ME : "Beni [NAME] üzerinden takip et." - FOLLOW_US : "Bizi [NAME] üzerinden takip edin." - EMAIL_ME : "Bana email ile ulaşın." - EMAIL_US : "Bize email ile ulaşın." - COPYRIGHT_DATES : "2021" - -# @end locale config diff --git a/docs/_data/navigation.yml b/docs/_data/navigation.yml deleted file mode 100644 index 2d5bca7..0000000 --- a/docs/_data/navigation.yml +++ /dev/null @@ -1,142 +0,0 @@ -header: - - title: Home - url: /test/ - - title: Docs - url: /docs/en/quick-start - key: docs - - title: Samples - url: /samples.html - key: samples - - title: Archive - url: /archive.html - - title: About - url: /about.html - - title: GitHub - url: https://github.com/kitian616/jekyll-TeXt-theme - - -docs-en: - - title: Start - children: - - title: Quick Start - url: /docs/en/quick-start - - title: Structure - url: /docs/en/structure - - title: Update from 1.x to 2.x - url: /docs/en/update-from-1-to-2 - - title: Customization - children: - - title: Configuration - url: /docs/en/configuration - - title: Navigation - url: /docs/en/navigation - - title: Layouts - url: /docs/en/layouts - - title: Logo and Favicon - url: /docs/en/logo-and-favicon - - title: Authors - url: /docs/en/authors - - title: Internationalization - url: /docs/en/i18n - - title: Content - children: - - title: Writing Posts - url: /docs/en/writing-posts - - title: Additional Styles - url: /docs/en/additional-styles - - title: Extensions - url: /docs/en/extensions - - title: Markdown Enhancements - url: /docs/en/markdown-enhancements - - title: Extra - children: - - title: Spacing - url: /docs/en/spacing - - title: Grid - url: /docs/en/grid - - title: Icons - url: /docs/en/icons - - title: Image - url: /docs/en/image - - title: Button - url: /docs/en/button - - title: Item - url: /docs/en/item - - title: Card - url: /docs/en/card - - title: Hero - url: /docs/en/hero - - title: Swiper - url: /docs/en/swiper - - title: Languages - children: - - title: 中文 - url: /docs/zh/quick-start - - -docs-zh: - - title: 开始 - children: - - title: 快速开始 - url: /docs/zh/quick-start - - title: 从 1.x 升级到 2.x - url: /docs/zh/update-from-1-to-2 - - title: 定制 - children: - - title: 配置 - url: /docs/zh/configuration - - title: 导航栏 - url: /docs/zh/navigation - - title: 布局 - url: /docs/zh/layouts - - title: Logo 和 Favicon - url: /docs/zh/logo-and-favicon - - title: 作者 - url: /docs/zh/authors - - title: 国际化 - url: /docs/zh/i18n - - title: 内容 - children: - - title: 撰写博客 - url: /docs/zh/writing-posts - - title: 附加样式 - url: /docs/zh/additional-styles - - title: 扩展 - url: /docs/zh/extensions - - title: Markdown 增强 - url: /docs/zh/markdown-enhancements - - title: 其他语言 - children: - - title: English - url: /docs/en/quick-start - -layouts: - - title: Layouts - children: - - title: Single - url: /page/single.html - - title: Aside - url: /page/aside.html - - title: Sidebar - url: /page/sidebar.html - - - title: Sidebar (Aside) - url: /page/sidebar-aside.html - - title: Article Header Overlay Background Fill - url: /page/article-header-overlay-background-fill.html - - title: Article Header Overlay Background Image - url: /page/article-header-overlay-background-image.html - - - title: Article Header Image - url: /page/article-header-cover-image.html - - title: Article Header Overlay Background Image (Customized Header Background) - url: /page/article-header-overlay-background-image-header-background.html - - title: Article Header Image (Customized Header Background) - url: /page/article-header-cover-image-header-background.html - - - title: Article Header Overlay Background Fill (Immersive + Translucent Header) - url: /page/article-header-overlay-background-fill-immersive-translucent-header.html - - title: Article Header Overlay Background Image (Immersive + Translucent Header) - url: /page/article-header-overlay-background-image-immersive-translucent-header.html - - title: Article Header Image (Immersive + Translucent Header) - url: /page/article-header-cover-image-immersive-translucent-header.html diff --git a/docs/_data/variables.yml b/docs/_data/variables.yml deleted file mode 100644 index 43aa3aa..0000000 --- a/docs/_data/variables.yml +++ /dev/null @@ -1,64 +0,0 @@ -default: - text_skin: default - highlight_theme: default - lang: en - paths: - root: / - home: / - archive: /archive.html - rss: /feed.xml - mathjax: false - mathjax_autoNumber: false - mermaid: false - chart: false - toc: - selectors: 'h1,h2,h3' - sources: bootcdn - - page: - mode: normal - type: webpage - article_header: - align: left - theme: light - articles: - show_cover: true - show_excerpt: false - show_readmore: false - show_info: false - show_title: true - show_edit_on_github: false - show_date: true - show_tags: true - show_author_profile: false - show_subscribe: false - full_width: false - sharing: false - comment: true - license: false - pageview: false - search: default - -sources: - bootcdn: - font_awesome: 'https://cdn.bootcdn.net/ajax/libs/font-awesome/5.15.1/css/all.css' - jquery: 'https://cdn.bootcss.com/jquery/3.1.1/jquery.min.js' - leancloud_js_sdk: '//cdn.jsdelivr.net/npm/leancloud-storage@3.13.2/dist/av-min.js' - chart: 'https://cdn.bootcss.com/Chart.js/2.7.2/Chart.bundle.min.js' - gitalk: - js: 'https://cdn.bootcss.com/gitalk/1.2.2/gitalk.min.js' - css: 'https://cdn.bootcss.com/gitalk/1.2.2/gitalk.min.css' - valine: 'https://unpkg.com/valine/dist/Valine.min.js' # bootcdn not available - mathjax: 'https://cdn.bootcss.com/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML' - mermaid: 'https://cdn.bootcss.com/mermaid/8.0.0-rc.8/mermaid.min.js' - unpkg: - font_awesome: 'https://use.fontawesome.com/releases/v5.15.1/css/all.css' - jquery: 'https://unpkg.com/jquery@3.3.1/dist/jquery.min.js' - leancloud_js_sdk: '//cdn.jsdelivr.net/npm/leancloud-storage@3.13.2/dist/av-min.js' - chart: 'https://unpkg.com/chart.js@2.7.2/dist/Chart.min.js' - gitalk: - js: 'https://unpkg.com/gitalk@1.2.2/dist/gitalk.min.js' - css: 'https://unpkg.com/gitalk@1.2.2/dist/gitalk.css' - valine: 'https//unpkg.com/valine/dist/Valine.min.js' - mathjax: 'https://unpkg.com/mathjax@2.7.4/unpacked/MathJax.js?config=TeX-MML-AM_CHTML' - mermaid: 'https://unpkg.com/mermaid@8.0.0-rc.8/dist/mermaid.min.js' diff --git a/docs/_docs/en/1.1-quick-start.md b/docs/_docs/en/1.1-quick-start.md deleted file mode 100644 index e9874da..0000000 --- a/docs/_docs/en/1.1-quick-start.md +++ /dev/null @@ -1,143 +0,0 @@ ---- -title: Quick Start -permalink: /docs/en/quick-start -key: docs-quick-start ---- - -TeXt Theme is 100% compatible with GitHub Pages and it has been developed as a [gem-based themes](https://jekyllrb.com/docs/themes/) for easier use. - -In this document, you will learn how to **install the theme**, **setup your site**, **local preview** for development, **build** and **publish**. - - - -```mermaid -graph LR; - A0(Installing TeXt) - B0(Common Method) - B1[Ruby Gem Method] - C0[Fork this repo] - C1[Clone from GitHub] - C2[Download] - D0[Setup Your Site] - E0(Installing Development Environment) - F0[Installing Directly] - F1[Docker] - A0-->B0; - A0-->B1; - B0-->C0; - B0-->C1; - B0-->C2; - B1-->D0; - C1-->E0 - C2-->E0 - D0-->E0 - E0-->F0 - E0-->F1 -``` - -## Installing the Theme - -### Common Method - -To install it with common method, all you need to do is copying all the theme files to your project. There are several ways to do so: - -1. Clone [jekyll-TeXt-theme](https://github.com/kitian616/jekyll-TeXt-theme) from github. - - **Clone with HTTPS:** - - ```bash - git clone https://github.com/kitian616/jekyll-TeXt-theme.git - ``` - - **Clone with SSH:** - - ```bash - git clone git@github.com:kitian616/jekyll-TeXt-theme.git - ``` - -2. Download and unzip the file to your Jekyll site directory. - - Download TeXt Theme - -3. If you host your site on GitHub Pages, you can just fork [jekyll-TeXt-theme](https://github.com/kitian616/jekyll-TeXt-theme), then rename the repository to **USERNAME.github.io** — replacing **USERNAME** with your GitHub username. - - ![Fork](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/github-fork.jpg) - - ![Rename](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/github-rename-repo.jpg) - -### Ruby Gem Method - -1. Add this line to your Jekyll site’s *Gemfile*: - - ```ruby - gem "jekyll-text-theme" - ``` - -2. Add this line to your Jekyll site’s *_config.yml* file: - - ```yaml - theme: jekyll-text-theme - ``` - -## Setup Your Site - -If you install the theme with common method, you can go straight to the next step. But **if you install the theme with ruby gem method, you have to do some extra jobs**. - -With gem-based themes, some of the site’s directories (such as the *assets*, *_layouts*, *_includes* and *_sass* directories) are stored in the theme’s gem, hidden from your immediate view. You need add some files in your Jekyll site directory: - -```bash -├── 404.html -├── Gemfile -├── _config.yml -├── _data -│   └── locale.yml -├── _posts -│   └── ... -├── about.md -├── archive.html -└── index.html -``` - -You can refer to the [/test folder](https://github.com/kitian616/jekyll-TeXt-theme/tree/master/test), this is a example with gem-based themes. - -## Installing Development Environment - -If you want to run them them locally, you need first install Ruby and Jekyll, see [Installation](https://jekyllrb.com/docs/installation/) for details. - -After that, run bundler to install the dependencies: - -```bash -bundle install --path vendor/bundle -``` - -And also, TeXt offer [Docker](https://www.docker.com/) support for development and public, this make it easier to setup environment. - -![Docker](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/docker.jpg){:width="400px"} - -All you need todo is these 3 steps: - -1. [Install Docker](https://docs.docker.com/install/). - -2. Generate *Gemfile.lock*: - - ```bash - docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app ruby:2.6 bundle install - ``` - -3. Build Docker image: - - ```bash - docker-compose -f ./docker/docker-compose.build-image.yml build - ``` - -## Local Preview - -Run `bundle exec jekyll serve` to start the development server, then you can visit [http://localhost:4000/](http://localhost:4000/) to preview your site. - -For Docker, run `docker-compose -f ./docker/docker-compose.default.yml up` to start the development server. - -## Build and Publish - -If you host your site on GitHub Pages, just push the source to the master branch of your USERNAME.github.io repository, GitHub would build automatically. You can visit your site on **https://USERNAME.github.io** several minutes later. - -If you host your site on your server, you need first run `JEKYLL_ENV=production bundle exec jekyll build` to generated your site, then update the files in *_site* folder to your server. diff --git a/docs/_docs/en/1.2-structure.md b/docs/_docs/en/1.2-structure.md deleted file mode 100644 index 45a6554..0000000 --- a/docs/_docs/en/1.2-structure.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: Structure -permalink: /docs/en/structure -key: docs-structure ---- - -```bash -├── _data -│ ├── locale.yml -│ ├── navigation.yml -│ └── variables.yml -├── _includes -│ ├── analytics-providers -│ ├── aside -│ ├── comments-providers -│ ├── markdown-enhancements -│ ├── pageview-providers -│ ├── scripts -│ ├── sidebar -│ ├── snippets -│ ├── svg -│ │ ├── icon -│ │ │ ├── social -│ │ │ │ ├── facebook.svg -│ │ │ │ └── ... -│ │ └── logo.svg -│ └── ... -├── _layouts -│ ├── 404.html -│ ├── archive.html -│ ├── article.html -│ ├── base.html -│ ├── home.html -│ ├── none.html -│ └── page.html -├── _sass -├── assets -│ ├── css -│ │ └── blog.scss -│ └── images -├── tools -├── 404.html -├── Gemfile -├── _config.yml -├── about.md -├── archive.html -├── favicon.ico -├── gulpfile.js -├── index.html -├── jekyll-text-theme.gemspec -└── package.json -``` diff --git a/docs/_docs/en/1.7-update-from-1-to-2.md b/docs/_docs/en/1.7-update-from-1-to-2.md deleted file mode 100644 index e566771..0000000 --- a/docs/_docs/en/1.7-update-from-1-to-2.md +++ /dev/null @@ -1,215 +0,0 @@ ---- -title: Update from 1.x to 2.x -permalink: /docs/en/update-from-1-to-2 -key: docs-update-from-1-to-2 ---- - -![TeXt 2](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/TeXt-version-2.jpg) - -After several months effort, **TeXt 2** has finally released. the new version has lots of refactors and changes, which leads to some configuration incompatibilities. Hope this document will help you with your upgrade. - -## Skin - -`text_color_theme` in *_config.yml* rename to `text_skin`. - -1.x: - -```yml -text_color_theme: forest -``` - -```yml -text_skin: forest -``` - -## Layout - -### Article Layout - -Post Layout and Page Layout rename to Article Layout. - -1.x: - -```yml -layout: post -``` - -```yml -layout: page -``` - -2.x: - -```yml -layout: article -``` - -Since TOC, Edit on Github button, license and pageview are disabled by default on the new Article Layout, in order to keep same whit the former version, you can add these settings in the Front Matter: - -```yml -license: true -aside: - toc: true -show_edit_on_github: true -pageview: true -``` - -You can also use [Front Matter defaults](https://jekyllrb.com/docs/configuration/#front-matter-defaults) to specify configuration for all the posts of your site: - -```yml -defaults: - - scope: - path: "" - type: posts - values: - layout: article - license: true - aside: - toc: true - show_edit_on_github: true - pageview: true -``` - -### Archive Layout - -All Layout rename to Archive Layout. - -1.x: - -```yml -layout: all -``` - -2.x: - -```yml -layout: archive -``` - -## Paths - -In order to maintain consistency with the layout naming, TeXt 2 renamed *all.html* to *archive.html*. `base` and `all` variables under `paths` in *_config.yml* has renamed to `root` and `archive`. - -1.x: - -```yml -paths: - base : /blog - all : /blog/all.html - rss : /feed.xml -``` - -2.x: - -```yml -paths: - root : /blog - home : /blog - archive : /blog/archive.html - rss : /feed.xml -``` - -## License - -You need to specify `license` in *_config.yml* to enable license, which default to `false`: - -```yml -license: CC-BY-4.0 -``` - -## Comments - -There are some changes for configuration of comments, pageview and analytics in TeXt 2. which mainly add a `provider` attribute and change providers into corresponding sub-configuration items. - -1.x: - -```yml -disqus: - shortname: kitian616-github-io -``` - -2.x: - -```yml -comments: - provider: disqus - disqus: - shortname: kitian616-github-io -``` - -## Pageview - -1.x: - -```yml -leancloud: - app_id: uAG3OhdcH8H4fxSqXLyBljA7-gzGzoHsz - app_key: Mzf5m9skSwYVWVXhGiYMNyXs - app_class: ThomasBlog -``` - -2.x: - -```yml -pageview: - provider: leancloud - leancloud: - app_id: uAG3OhdcH8H4fxSqXLyBljA7-gzGzoHsz - app_key: Mzf5m9skSwYVWVXhGiYMNyXs - app_class: ThomasBlog -``` - -## Analytics - -1.x: - -```yml -ga_tracking_id: UA-71907556-1 -``` -2.x: - -```yml -analytics: - provider: google - google: - tracking_id: UA-71907556-1 -``` - -## Logo and Favicon - -The location of the default logo has changed。the old icon generation tool has been removed,TeXt 2 recommend [RealFaviconGenerator](https://realfavicongenerator.net/) for generating favicon. - -## Navigator - -The navigation configuration at the top right of the site has been moved to *_data/navigation.yml* and the entire navigation is freely customizable in the new version. - -1.x: - -```yml -nav_lists: - - titles: - en: About - zh: 关于 - zh-Hans: 关于 - zh-Hant: 關於 - url: /blog/about.html -``` - -2.x: - -```yml -## _data/navigation.yml -header: - - titles: - en: Archive - zh: 归档 - zh-Hans: 归档 - zh-Hant: 歸檔 - url: /blog/archive.html - - titles: - en: About - zh: 关于 - zh-Hans: 关于 - zh-Hant: 關於 - url: /blog/about.html -``` diff --git a/docs/_docs/en/2.1-configuration.md b/docs/_docs/en/2.1-configuration.md deleted file mode 100644 index c04bbbe..0000000 --- a/docs/_docs/en/2.1-configuration.md +++ /dev/null @@ -1,365 +0,0 @@ ---- -title: Configuration -permalink: /docs/en/configuration -key: docs-configuration ---- - -Jekyll allows you to concoct your sites in any way you can dream up, and it’s thanks to the powerful and flexible configuration options that this is possible. These options can either be specified in a *_config.yml* file placed in your site’s root directory, or can be specified as flags for the jekyll executable in the terminal. - -For technical reasons, *_config.yml* is **NOT** reloaded automatically when you use `jekyll serve`. If you change this file, please restart the server process. -{:.warning} - - - -## Site Settings - -### Theme - -If you’re using the Ruby gem version of the theme you’ll need this line to activate it: - -```yaml -theme: jekyll-text-theme -``` - -### Skin - -TeXt has 6 built-in skins, you can also set up your own skin. - -| `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) | - -```yaml -text_skin: default # "default" (default), "dark", "forest", "ocean", "chocolate", "orange" -``` - -### Highlight Theme - -TeXt use [Tomorrow](https://github.com/chriskempson/tomorrow-theme) as the highlight 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) | - -Every skin has a default highlight theme, but you can overwrite it by `highlight_theme` variable. - -```yaml -highlight_theme: default # "default" (default), "tomorrow", "tomorrow-night", "tomorrow-night-eighties", "tomorrow-night-blue", "tomorrow-night-bright" -``` - -### URL - -The base hostname and protocol for your site. if you are hosting the site on Github Pages this will be set as the GitHub Pages domain (cname or user domain)[^gitHub_metadata]. For example, https://kitian616.github.io or https://kitian616.github.io if there is cname file. - -Jekyll 3.3 overrides this value with url: http://localhost:4000 when running `jekyll serve` in a development environment[^jekyll_site_variables]. You can specifying Jekyll environment[^jekyll_specifying_environment] to production environment by `JEKYLL_ENV=production` to avoid this behavior. -{:.warning} - -[^gitHub_metadata]: [GitHub Metadata, a.k.a. site.github](https://github.com/jekyll/github-metadata#what-it-does) - -[^jekyll_site_variables]: [Variables#Site Variables](https://jekyllrb.com/docs/variables/#site-variables) - -[^jekyll_specifying_environment]: [Configuration#Specifying a Jekyll environment at build timePermalink](https://jekyllrb.com/docs/configuration/#specifying-a-jekyll-environment-at-build-time) - -### Base URL - -The base URL for your site, default to '/'. If you are hosting the site on Github Pages this will be set as the project name for project pages if none is set[^gitHub_metadata]. - -### Title - -The name of your site. - -```yaml -title: "My Awesome Website" -``` - -### Description - -Use some words to describe your site. - -```yaml -description: > # this means to ignore newlines until "nav_lists:" - A website with awesome stories. -``` - -## Language and Timezone - -### Language - -The language of your site, you can override it with different ones on specific posts, pages by YAML Front Matter[^font_matter], learn more at [Internationalization](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/i18n). - -```yaml -lang: en -``` - -[^font_matter]: [Front Matter](https://jekyllrb.com/docs/frontmatter/) - -### Timezone - -Set the time zone for site generation. This sets the TZ environment variable, which Ruby uses to handle time and date creation and manipulation. A list of all available values can be found [HERE](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). - -When serving on a local machine, the default time zone is set by your operating system. But when served on a remote host/server, the default time zone depends on the server’s setting or location.[^jekyll_global_configuration] - -[^jekyll_global_configuration]: [Configuration#Global Configuration](https://jekyllrb.com/docs/configuration/#global-configuration) - -```yaml -timezone: Asia/Shanghai -``` - -## Author and Social - -Information of the site author (a person, a team or an organization). - -### Type - -Type of the site author, a person or an organization, used by [schema.org](https://schema.org/) markup, default as "person". - -### Name - -Used to assign a site author. - -### Avatar - -Photo or Logo for site author - -### Bio - -Short introduction for site author - -### Social - -Username or id of site author’s social networks. - -TeXt supports Email, Facebook, Twitter, Weibo, Google Plus, Telegram, Medium, Zhihu, Douban, Linkedin, Github and Npm, more to be added. - -Depending on your settings, the social network buttons would show on every pages' footer. - -## GitHub repository - -Setting for [GitHub Metadata](https://github.com/jekyll/github-metadata) plugin, you can refer to [HERE](https://github.com/jekyll/github-metadata/blob/master/docs/configuration.md#configuration) for more info. - -In order for jekyll-github-metadata to know what metadata to fetch it must be able to determine the repository NWO to ask GitHub about. - -“NWO” stands for “name with owner.” It is GitHub lingo for the username of the owner of the repository plus a forward slash plus the name of the repository, e.g. kitian616/jekyll-TeXt-theme, where “kitian616” is the owner and “jekyll-TeXt-theme” is the repository name. - -```yaml -repository: user_name/repo_name -``` - -## Post - -### Excerpt - -Each post automatically takes the first block of text, from the beginning of the content to the first occurrence of `excerpt_separator`, and sets it as the post’s excerpt. - -The post’s excerpt is show in the articles list in the home layout. There are two excerpt types, text type and html type. - -| Type Name | Description | -| --- | --- | -| **text** | the excerpt are plain text that filters out all non-text elements (such as title, link, list, table, picture, etc.) and only show 350 characters most. | -| **html** | the excerpt are HTML document just like the content of the article, This will show all the content by default, except adding `` in the article Markdown file, You can find more info [HERE](https://jekyllrb.com/docs/posts/#post-excerpts). | - -```yaml -excerpt_separator: -excerpt_type: text # text (default), html -``` - -This setting has been **MOVED** to the YAML Front Matter of Articles and home layout **Since Version 2.2.0**, You can find more information [HERE](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/layouts#articles-layout). -{:.error} - -### License - -| Name | License | Image | -| --- | --- | --- | -| CC-BY-4.0 | [Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/) | ![CC-BY-4.0](https://i.creativecommons.org/l/by/4.0/88x31.png) | -| CC-BY-SA-4.0 | [Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/) | ![CC-BY-SA-4.0](https://i.creativecommons.org/l/by-sa/4.0/88x31.png) | -| CC-BY-NC-4.0 | [Attribution-NonCommercial 4.0 International](https://creativecommons.org/licenses/by-nc/4.0/) | ![CC-BY-NC-4.0](https://i.creativecommons.org/l/by-nc/4.0/88x31.png) | -| CC-BY-ND-4.0 | [Attribution-NoDerivatives 4.0 International](https://creativecommons.org/licenses/by-nd/4.0/) | ![CC-BY-ND-4.0](https://i.creativecommons.org/l/by-nd/4.0/88x31.png) | - -```yaml -license: CC-BY-NC-4.0 -``` - -### TOC - -Elements to use as headings. - -```yaml -toc: - selectors: "h1,h2,h3" -``` - -### Markdown Enhancements - -To improve the user experience for both reading and writing posts, TeXt made some enhancements for markdown. By default, all the enhancements for markdown is enabled. you need set the settings to true to enable them: - -```yaml -# Mathjax -mathjax: true -mathjax_autoNumber: true - -# Mermaid -mermaid: true - -# Chart -chart: true -``` - -And also you can override it with different ones on specific posts, pages by YAML Front Matter[^font_matter]. - -Check [Writing Posts](/) for detail usage. - -## Paginate - -Settings for [Jekyll Paginate](https://github.com/jekyll/jekyll-paginate) plugin. to enable pagination for posts on your blog, add a line to the *_config.yml* file that specifies how many items should be displayed per page: - -```yaml -paginate: 8 -``` - -The number should be the maximum number of posts you’d like to be displayed per-page in the generated site. - -You may also specify the destination of the pagination pages: - -```yaml -paginate_path: /page:num # don't change this unless for special need -``` - -## Sources - -TeXt use CDN[^cdn] for speed improvements, You can choose [BootCDN](http://www.bootcdn.cn/) (default) or [unpkg](https://unpkg.com/) as your site’s CDN provider, both of them are open source and free. - -If your website is mainly for Chinese, just use BootCDN. - -```yaml -sources: bootcdn # bootcdn (default), unpkg -``` - -[^cdn]: [Content delivery network](https://en.wikipedia.org/wiki/Content_delivery_network) - -## Sharing - -| Name | Sharing Provider | Minimum Version | -| --- | --- | --- | -| **addtoany** | [AddToAny](https://www.addtoany.com/) | 2.2.2 | -| **addthis** | [AddThis](https://www.addthis.com/) | 2.2.3 | -| **custom** | | | - -### AddToAny - -```yaml -comments: - provider: addtoany -``` - -### AddThis - -```yaml -comments: - provider: addthis - addthis: - id: "your-addthis-pubid" -``` - -You NEED set `sharing` variable as `true` in the page’s YAML Front Matter to enable sharing on this page, you can find more information [HERE](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/layouts#article-layout). -{:.warning} - -## Comments - -| Name | Comments Provider | Minimum Version | -| --- | --- | --- | -| **disqus** | [Disqus](https://disqus.com/) | | -| **gitalk** | [Gitalk](https://github.com/gitalk/gitalk/) | | -| **valine** | [Valine](https://valine.js.org/en/) | 2.2.4 | -| **custom** | | | - -### Disqus - -To use Disqus you’ll need to create an account and [shortname](https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-). Once you have both update *_config.yml* to: - -```yaml -comments: - provider: disqus - disqus: - shortname: "your-disqus-shortname" -``` - -### Gitalk - -To use Gitalk you need a GitHub application, if you don't have one, [Click here to register](https://github.com/settings/applications/new) a new one. and then update *_config.yml* to: - -```yaml -comments: - provider: gitalk - gitalk: - clientID : "github-application-client-id" - clientSecret: "github-application-client-secret" - repository : "github-repo" - owner : "github-repo-owner" - admin: # Github repo owner and collaborators, only these guys can initialize github issues, IT IS A LIST. - - "your-github-id" - - "the-other-admin-github-id" -``` - -### Valine - -To use Valine you need a [LeanCloud](https://leancloud.cn/) application, see [LeanCloud](#leancloud) for more information. - -```yaml -comments: - provider: valine - valine: - app_id : "your-leanCloud-app-id" - app_key : "your-leanCloud-app-key" -``` - -For all the above comments systems, you NEED set `key` variable in the page’s YAML Front Matter to enable comments on this page, you can find more information [HERE](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/layouts#page-layout). -{:.warning} - -## Pageview - -| Name | Pageview Provider | -| --- | --- | -| **leancloud** | [LeanCloud](https://leancloud.cn/) | -| **custom** | | - -### LeanCloud - -This use [LeanCloud](https://leancloud.cn/) as back-end service. You need create an application on the dashboard, and config the app’s id, key and class name. - -The detail guide of LeanCloud will find in [Chinese document](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/configuration#leancloud) since LeanCloud haven't provide an English-language edition. -{:.info} - -```yaml -pageview: - provider: leancloud - leancloud: - app_id : "your-leanCloud-app-id" - app_key : "your-leanCloud-app-key" - app_class : "your-leanCloud-app-class" -``` - -For all the above pageview statistics, you **NEED** set `key` variable in the page’s YAML Front Matter to enable statistics on this page, you can find more information [HERE](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/layouts#page-layout). -{:.warning} - -## Analytics - -| Name | Analytics Provider | -| --- | --- | -| **google** | [Google Analytics](https://analytics.google.com/) | -| **custom** | | - -### Google Analytics - -In order to use Google Analytics, set `tracking_id` to your Google Analytics tracking code. You can also set `anonymize_ip` to `true` to anonymize IP tracking for analytic. - -```yaml -analytics: - provider: google - google: - tracking_id: "your-google-analytics-tracking-code" - anonymize_ip: true -``` diff --git a/docs/_docs/en/2.2-navigation.md b/docs/_docs/en/2.2-navigation.md deleted file mode 100644 index 2cfa0ea..0000000 --- a/docs/_docs/en/2.2-navigation.md +++ /dev/null @@ -1,66 +0,0 @@ ---- -title: Navigation -permalink: /docs/en/navigation -key: docs-navigation ---- - -There are two types of navigation in TeXt: **Header Navigation** and **Sidebar Navigation**, both are defined in *data/navigation.yml*. - - - -## Header Navigation - -Header navigation is defined under the `header` key in *data/navigation.yml*, it is an array of title(s) and url: - -```yaml -header: - - title: Docs - url: /docs/en/quick-start - - title: 文档 - url: /docs/zh/quick-start - - titles: - en: Archive - zh: 归档 - zh-Hans: 归档 - zh-Hant: 歸檔 - url: /archive.html - - titles: - en: About - zh: 关于 - zh-Hans: 关于 - zh-Hant: 關於 - url: /about.html - - title: GitHub - url: https://github.com/kitian616/jekyll-TeXt-theme -``` - -You can use `titles` for a multi-language name. - -## Sidebar Navigation - -To use sidebar navigation, you should first define a navigation in *data/navigation.yml*. - -```yaml -docs-en: - - title: Start - children: - - title: Quick Start - url: /docs/en/quick-start - - title: Structure - url: /docs/en/structure - ... - - title: Customization - children: - - title: Configuration - url: /docs/en/configuration - - title: Navigation - url: /docs/en/navigation - ... -``` - -And then use the defined navigation as article’s sidebar navigation in the Front Matter: - -```yaml -sidebar: - nav: docs-en -``` diff --git a/docs/_docs/en/2.3-layouts.md b/docs/_docs/en/2.3-layouts.md deleted file mode 100644 index 4e0522a..0000000 --- a/docs/_docs/en/2.3-layouts.md +++ /dev/null @@ -1,178 +0,0 @@ ---- -title: Layout -permalink: /docs/en/layouts -key: docs-layouts ---- - -```mermaid -graph TB; - NONE[none] - BASE[base] - PAGE[page] - ARTICLE[article] - ARTICLES[articles] - HOME[home] - ARCHIVE[archive] - LANDING[landing] - 404[404] - NONE-->BASE; - BASE-->PAGE; - PAGE-->ARTICLE; - PAGE-->ARTICLES; - ARTICLES-->HOME; - PAGE-->ARCHIVE; - PAGE-->LANDING; - PAGE-->404; -``` - -## Base Layout - -Base on None. - -## Page Layout - -Base on Base Layout. - -| Variable | Option Values | Description | Minimum Version | -| --- | --- | --- | --- | -| **mode** | normal (default), immersive | mode of the page. | 2.2.0 | -| **type** | webpage (default), article | type of the page, used by [schema.org](https://schema.org/) markup. | | -| **key** | `!!str` | Unique key for the post, required by Comments and Pageview. begin with a letter (`[A-Za-z]`) and may be followed by any number of letters, digits (`[0-9]`), hyphens (`-`), underscores (`_`), colons (`:`), and periods (`.`). | | -| **lang** | en (default), zh, zh-Hans, zh-Hant | Language of this page. | | -| **author** | `!!map` | Assign one of the authors in *authors.yml* to a post or page, see [Authors](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/authors) for detail. | 2.2.0 | -| **show_title** | true (default), false | Set as `false` to hide title on this page. | | -| **show_edit_on_github** | true, false (default) | Set as `true` to show “Edit on Github” button. you need set `repository` and `repository_tree` in *_config.yml* first. | | -| **show_date** | true (default), false | Set as `false` to hide date on this page. | 2.2.0 | -| **show_tags** | true (default), false | Set as `false` to hide tags on this page. | 2.2.0 | -| **full_width** | true, false (default) | Set as `true` to make main full width on this page. | | -| **pageview** | true, false (default) | Set as `true` to enable pageview on this page. | 2.2.0 | -| **comment** | true (default), false | Set as `false` to disable comment on this page. | | -| **mathjax** | true, false | Set as `true` to enable Mathjax on this page. | | -| **mathjax_autoNumber** | true, false | Set as `true` to enable Mathjax autoNumber on this page. | | -| **mermaid** | true, false | Set as `true` to enable Mermaid on this page. | | -| **chart** | true, false | Set as `true` to enable Chart on this page. | | -| **cover** | `!!str` | Url of the cover image. | 2.2.0 | -| **header** | false, `!!map` | Set as `false` to hide header on this page. | 2.2.0 | -| **article_header**| `!!map` | | 2.2.0 | -| **aside** | `!!map` | | | -| **sidebar** | `!!map` | | | -| **footer** | false | Set as `false` to hide footer on this page. | 2.2.3 | -| **lightbox** | true, false | Set as `true` to enable lightbox (modal image gallery) for large images on this page, you can set `lightbox-ignore` class name to ignore the certain image. | 2.2.4 | - -### header - -| Variable | Option Values | Description | -| --- | --- | --- | -| **theme** | light, dark | | -| **background** | `!!str` | Available when specified theme. | - -### article_header - -| Variable | Option Values | Description | -| --- | --- | --- | -| **type** | overlay, cover | | -| **align** | left (default), center| | -| **theme** | light (default), dark | | -| **background_color** | `!!str` | Available when type is `overlay`. If set to a dark color, you need set theme as 'dark'. | -| **background_image** | `!!map` | Available when type is `overlay`, set as `false` can overwrite `cover` to disable background image. | -| **image** | `!!map` | Available when type is `cover`. | -| **actions** | `!!seq` | | - -### article_header.background_image - -| Variable | Option Values | Description | -| --- | --- | --- | -| **gradient** | `!!str` | | -| **src** | `!!str` | Default to `cover` | - -### article_header.image - -| Variable | Option Values | Description | -| --- | --- | --- | -| **src** | `!!str` | | - -### aside - -| Variable | Option Values | Description | -| --- | --- | --- | -| **toc** | true, false | Set as `true` to enable TOC on this page's aside. | - -### sidebar - -| Variable | Option Values | Description | -| --- | --- | --- | -| **nav** | `!!str` | | - -## Article Layout - -Base on Page Layout. - -| Variable | Option Values | Description | Minimum Version | -| --- | --- | --- | --- | -| **modify_date** | `!!str` | The last modified date of this article, the date is modified in the format `YYYY-MM-DD HH:MM:SS +/-TTTT`; hours, minutes, seconds, and timezone offset are optional. just like `date` variable. | | -| **sharing** | true, false (default) | Set as `true` to enable Sharing on this article. | 2.2.2 | -| **show_author_profile** | true, false (default) | Set as `true` to show author profile at the beginning of the article. | | -| **show_subscribe**| true, false (default) | Set as `true` to show subscribe info on this page. | latest | -| **license** | true, false (default), CC-BY-4.0, CC-BY-SA-4.0, CC-BY-NC-4.0, CC-BY-ND-4.0 | license of the article. Set true to use `license` variable that set in *_config.yml*, set false to enable it. | | - -## Articles Layout - -Base on Page Layout, available since version **2.2.0**. - -| Variable | Option Values | Description | -| --- | --- | --- | -| **articles** | `!!map` | | - -### articles - -| Variable | Option Values | Description | -| --- | --- | --- | -| **data_source** | `!!str` | You can set it as a collections name, then the page will show the article list of this collections. You can refer to [Collections](https://jekyllrb.com/docs/collections/) to learn more about collections. | -| **type** | item, brief, grid | TeXt supports 3 article list type with various settings, yan can find examples [HERE](https://kitian616.github.io/jekyll-TeXt-theme/samples.html#articles-layout). | -| **size** | md, sm | Available when type is `grid`. | -| **article_type** | BlogPosting | Available when type is `normal`. | -| **show_cover** | true (default), false | Available when type is `normal`. Before set it to `true`, you need first set each article a cover image, refer to the `cover` variable in [Page Layout](#page-layout). | -| **cover_size** | lg, md, sm | Available when type is `normal`. | -| **show_excerpt** | true, false (default) | Available when type is `normal`, refer to [excerpt_type](#excerpt_type) below. | -| **excerpt_type** | text, html | Available when type is `normal`. | -| **show_readmore** | true, false (default) | Available when type is `normal`. | -| **show_info** | true, false (default) | Available when type is `normal` or `brief`. | - -### articles.excerpt_type - -Each post automatically takes the first block of text, from the beginning of the content to the first occurrence of `excerpt_separator`, and sets it as the post’s excerpt. - -The excerpt is show in the article list in the Articles and Home Layout. There are two excerpt types, text type and html type. - -| Type Name | Description | -| --- | --- | -| **text** | the excerpt are plain text that filters out all non-text elements (such as title, link, list, table, picture, etc.) and only show 350 characters most. | -| **html** | the excerpt are HTML document just like the content of the article, This will show all the content by default, except adding `` in the article Markdown file, You can find more info [HERE](https://jekyllrb.com/docs/posts/#post-excerpts). | - -For the home page, you can set `excerpt_type` to `HTML` like this: - -```yaml -layout: home -articles: - excerpt_type: html -``` - -## Home Layout - -Base on Articles Layout. - -## Archive Layout - -Base on Page Layout. - -## Landing Layout - -Base on Page Layout. - -| Variable | Option Values | Description | -| --- | --- | --- | -| **data** | `!!map` | | - -## 404 Layout - -Base on Page Layout. diff --git a/docs/_docs/en/2.4-logo-and-favicon.md b/docs/_docs/en/2.4-logo-and-favicon.md deleted file mode 100644 index 82b9148..0000000 --- a/docs/_docs/en/2.4-logo-and-favicon.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: Logo and Favicon -permalink: /docs/en/logo-and-favicon -key: docs-logo-and-favicon ---- - -## Logo - -

TeXt {% include svg/logo.svg %} as logo, you can change it by replacing _includes/svg/logo.svg with your own logo.

- -## Favicon - -TeXt recommend [RealFaviconGenerator](https://realfavicongenerator.net/) for generating favicon. - -Open [RealFaviconGenerator](https://realfavicongenerator.net/), click “Select your Favicon picture” and then choose your favicon picture. - -![Select your Favicon picture](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/realfavicongenerator-select-favicon-picture.jpg) - -After settings you need tell the generator where you would place favicon files, TeXt default put them to */assets*. - -It’s recommended to put favicon files at the root of your site. -{:.warning} - -![Select your Favicon path](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/realfavicongenerator-path.jpg) - -If all are done, just click “Generate your Favicons and HTML code” to the last step. - -![Result](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/realfavicongenerator-result.jpg) - -Download favicon package and unzip it to the path you just set, and replace the HTML code in *_includes/head/favicon.html*. diff --git a/docs/_docs/en/2.5-authors.md b/docs/_docs/en/2.5-authors.md deleted file mode 100644 index a4c31c7..0000000 --- a/docs/_docs/en/2.5-authors.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: Authors -permalink: /docs/en/authors -key: docs-authors ---- -By default all the posts or pages are authored by `author` that configured in *_config.yml*, but you can overwrite it in the page’s YAML Front Mater. - -Todo so, you need create *_data/authors.yml* and add authors using the following format. Any variables found under `author` in *_config.yml* can be used (type, name, url, avatar, bio, email, facebook etc.). - -```yml -Tian Qi: - name : Tian Qi - url : https://kitian616.github.io - avatar : https://wx3.sinaimg.cn/large/73bd9e13ly1fjkqy66hl8j208c08c0td.jpg - bio : Author of TeXt. - email : kitian616@outlook.com - facebook : # "user_name" the last part of your profile url, e.g. https://www.facebook.com/user_name - twitter : kitian616 # "user_name" the last part of your profile url, e.g. https://twitter.com/user_name - weibo : 234695683 # "user_id" the last part of your profile url, e.g. https://www.weibo.com/user_id/profile?... - googleplus: 101827554735084402671 # "user_id" the last part of your profile url, e.g. https://plus.google.com/u/0/user_id - telegram : # "user_name" the last part of your profile url, e.g. https://t.me/user_name - medium : # "user_name" the last part of your profile url, e.g. https://medium.com/user_name - 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 : kitian616 # "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 -``` - -Assign one of the authors in *authors.yml* to a post or page you wish to override the `site.author` with. - - --- - author: Tian Qi - --- diff --git a/docs/_docs/en/2.7-i18n.md b/docs/_docs/en/2.7-i18n.md deleted file mode 100644 index f72ff55..0000000 --- a/docs/_docs/en/2.7-i18n.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -title: Internationalization -permalink: /docs/en/i18n -key: docs-i18n ---- - -Text for UI elements are grouped together as a set of translation keys in *_data/locale.yml*, this make TeXt easy to support different languages. - -By using `titles`, you can define multi-language name for page, layout and navigator title. TeXt default defined some multi-language name in *_data/navigation*, *_layouts/archive*, *_layouts/home* and *about.md*. - - - -The translation keys and multi-language names mentioned above support the following languages: - - -| Language | `lang` | -| --- | --- | -| **English** | en, en-GB, en-US, en-CA, en-AU | -| **Simplified Chinese** | zh-Hans, zh, zh-CN, zh-SG | -| **Traditional Chinese** | zh-Hant, zh-TW, zh-HK | -| **Korean** | ko, ko-KR | -| **French** | fr, fr-BE, fr-CA, fr-CH, fr-FR, fr-LU | -| **Turkish** | tr | - - -You can see examples for different languages [HERE](https://kitian616.github.io/jekyll-TeXt-theme/samples.html#languages). diff --git a/docs/_docs/en/3.1-writing-posts.md b/docs/_docs/en/3.1-writing-posts.md deleted file mode 100644 index 2174232..0000000 --- a/docs/_docs/en/3.1-writing-posts.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: Writing Posts -permalink: /docs/en/writing-posts -key: docs-writing-posts ---- - -As explained on the [directory structure](https://jekyllrb.com/docs/structure/) page, **the */_posts* folder is where your blog posts will live**. These files are generally Markdown or HTML. All posts must have YAML Front Matter, and they will be converted from their source format into an HTML page that is part of your static site. - - - -## Creating Post Files - -To create a new post, all you need to do is create a file in the */_posts* directory. Jekyll requires blog post files to be named like these: - - 2011-12-31-new-years-eve-is-awesome.md - 2012-09-12-how-to-write-a-blog.markdown - -## Content - -All blog post files must begin with YAML Front Matter. - -To improve the user experience for both reading and writing posts, TeXt made some enhancements for markdown and some additional styles. - -### YAML Front Matter - - --- - layout: article - title: Document - Writing Posts - mathjax: true - --- - -Between these triple-dashed lines you can set variables. you can consider it as page configuration, these would overrides the global configuration in *_config.yml*. - -Beside Jekyll’s predefined variables, TeXt define some new variables for each layouts, see [Layouts](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/layouts) for details. diff --git a/docs/_docs/en/3.2-markdown-enhancements.md b/docs/_docs/en/3.2-markdown-enhancements.md deleted file mode 100644 index 76772ba..0000000 --- a/docs/_docs/en/3.2-markdown-enhancements.md +++ /dev/null @@ -1,171 +0,0 @@ ---- -title: Markdown Enhancements -permalink: /docs/en/markdown-enhancements -key: docs-markdown-enhancements ---- - -You need set the variable true in the *_config.yml* or in the YAML Front Matter to enable markdown enhancement. - -| Enhancemen Name | Description | -| --------------- | ----------- | -| **Mathjax** | Make it easy to add mathematics in articles, using MathML, LaTeX and ASCIIMathML markup | [EXAMPLES](https://kitian616.github.io/jekyll-TeXt-theme/post/2017/07/07/mathjax.html) | -| **Mermaid** | Bring diagrams and flowcharts in articles | [EXAMPLES](https://kitian616.github.io/jekyll-TeXt-theme/post/2017/06/06/mermaid.html) | -| **Chart** | Bring charts in articles | [EXAMPLES](https://kitian616.github.io/jekyll-TeXt-theme/post/2017/05/05/chart.html) | - -## Mathjax - -When $$a \ne 0$$, there are two solutions to $$ax^2 + bx + c = 0$$ and they are - -$$x_1 = {-b + \sqrt{b^2-4ac} \over 2a}$$ - -$$x_2 = {-b - \sqrt{b^2-4ac} \over 2a} \notag$$ - -**markdown:** - -```tex -When $$a \ne 0$$, there are two solutions to $$ax^2 + bx + c = 0$$ and they are -$$x_1 = {-b + \sqrt{b^2-4ac} \over 2a}$$ -$$x_2 = {-b - \sqrt{b^2-4ac} \over 2a} \notag$$ -``` - -**After MathJax enabled**, you can set `mathjax_autoNumber: true` to have equations be numbered automatically, You can use \notag or \nonumber to prevent individual equations from being numbered. -{:.info} - -## Mermaid - -```mermaid -graph TB; - A[Do you have a problem in your life?] - B[Then don't worry] - C[Can you do something about it?] - A--no-->B; - A--yes-->C; - C--no-->B; - C--yes-->B; -``` - -**markdown:** - - ```mermaid - graph TB; - A[Do you have a problem in your life?] - B[Then don't worry] - C[Can you do something about it?] - A--no-->B; - A--yes-->C; - C--no-->B; - C--yes-->B; - ``` - -[Mermaid](https://mermaidjs.github.io/) supports 3 kinds of diagram: - -- [Flowchart](https://mermaidjs.github.io/flowchart.html) - -- [Sequence Diagram](https://mermaidjs.github.io/sequenceDiagram.html) - -- [Gant Diagram](https://mermaidjs.github.io/gantt.html) - -## Chart - -```chart -{ - "type": "line", - "data": { - "labels": [ - "January", - "February", - "March", - "April", - "May", - "June", - "July" - ], - "datasets": [ - { - "label": "# of bugs", - "fill": false, - "lineTension": 0.1, - "backgroundColor": "rgba(75,192,192,0.4)", - "borderColor": "rgba(75,192,192,1)", - "borderCapStyle": "butt", - "borderDash": [], - "borderDashOffset": 0, - "borderJoinStyle": "miter", - "pointBorderColor": "rgba(75,192,192,1)", - "pointBackgroundColor": "#fff", - "pointBorderWidth": 1, - "pointHoverRadius": 5, - "pointHoverBackgroundColor": "rgba(75,192,192,1)", - "pointHoverBorderColor": "rgba(220,220,220,1)", - "pointHoverBorderWidth": 2, - "pointRadius": 1, - "pointHitRadius": 10, - "data": [ - 65, - 59, - 80, - 81, - 56, - 55, - 40 - ], - "spanGaps": false - } - ] - }, - "options": {} -} -``` - -**markdown:** - - ```chart - { - "type": "polarArea", - "data": { - "datasets": [ - { - "data": [ - 11, - 16, - 7, - 3, - 14 - ], - "backgroundColor": [ - "#FF6384", - "#4BC0C0", - "#FFCE56", - "#E7E9ED", - "#36A2EB" - ], - "label": "My dataset" - } - ], - "labels": [ - "Red", - "Green", - "Yellow", - "Grey", - "Blue" - ] - }, - "options": {} - } - ``` - -[Chart.js](http://www.chartjs.org/docs/latest/) supports 7 kinds of chart: - -- [Line Chart](http://www.chartjs.org/docs/latest/charts/line.html) - -- [Bar Chart](http://www.chartjs.org/docs/latest/charts/bar.html) - -- [Radar Chart](http://www.chartjs.org/docs/latest/charts/radar.html) - -- [Polar Area Chart](http://www.chartjs.org/latest/charts/polar.html) - -- [Pie Chart](http://www.chartjs.org/docs/latest/charts/doughnut.html) - -- [Doughnut Chart](http://www.chartjs.org/docs/latest/charts/doughnut.html) - -- [Bubble Chart](http://www.chartjs.org/docs/latest/charts/bubble.html) diff --git a/docs/_docs/en/3.3-additional-styles.md b/docs/_docs/en/3.3-additional-styles.md deleted file mode 100644 index 8c0d16f..0000000 --- a/docs/_docs/en/3.3-additional-styles.md +++ /dev/null @@ -1,169 +0,0 @@ ---- -title: Additional styles -permalink: /docs/en/additional-styles -key: docs-additional-styles ---- - -Jekyll use kramdown as the default markdown processor. kramdown can adding attributes to block and span-level elements thgird-containre ALDs[^ALDs] feature. with the help of ALDs, we can defined class names to an element by `{:.class-name1.class-name-2}`. - -TeXt offer some CSS classes that you can use in the post. You can refer to [THIS POST](https://kitian616.github.io/jekyll-TeXt-theme/post/2017/08/08/additional-styles.html). - -[^ALDs]: [Attribute List Definitions](https://kramdown.gettalong.org/syntax.html#attribute-list-definitions) - -## Alert - -| Class Names | -| ---- | -| **success** | -| **info** | -| **warning** | -| **error** | - -Success Text. -{:.success} - -Info Text. -{:.info} - -Warning Text. -{:.warning} - -Error Text. -{:.error} - -**markdown:** - - Success Text. - {:.success} -^ - Info Text. - {:.info} -^ - Warning Text. - {:.warning} -^ - Error Text. - {:.error} - -## Tag - -| Class Names | -| ---- | -| **success** | -| **info** | -| **warning** | -| **error** | - -`success`{:.success} - -`info`{:.info} - -`warning`{:.warning} - -`error`{:.error} - -**markdown:** - - `success`{:.success} -^ - `info`{:.info} -^ - `warning`{:.warning} -^ - `error`{:.error} - -## Image - -| Class Names | -| ---- | -| **border** | -| **shadow** | -| **rounded** | -| **circle** | - -### Border - -
-
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_border"){:.border} -
-
- ![Image](path-to-image){:.border} -
-
-
- -### Shadow - -
-
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_shadow"){:.shadow} -
-
- ![Image](path-to-image){:.shadow} -
-
-
- -### Rounded - -
-
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_rounded"){:.rounded} -
-
- ![Image](path-to-image){:.rounded} -
-
-
- -### Circle - -
-
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_circle"){:.circle} -
-
- ![Image](path-to-image){:.circle} -
-
-
- -### Mixture - -
-
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_border+rounded"){:.border.rounded} -
-
- ![Image](path-to-image){:.border.rounded} -
-
-
- -
-
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_circle+shadow"){:.circle.shadow} -
-
- ![Image](path-to-image){:.circle.shadow} -
-
-
- -
-
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_circle+border+shadow"){:.circle.border.shadow} -
-
- ![Image](path-to-image){:.circle.border.shadow} -
-
-
diff --git a/docs/_docs/en/3.4-extensions.md b/docs/_docs/en/3.4-extensions.md deleted file mode 100644 index 8720634..0000000 --- a/docs/_docs/en/3.4-extensions.md +++ /dev/null @@ -1,174 +0,0 @@ ---- -title: Extensions -permalink: /docs/en/extensions -key: docs-extensions ---- - -## Audio - -| Name | Minimum Version | -| --- | --- | -| SoundCloud | 2.2.2 | -| Netease Cloud Music | 2.2.2 | - -### SoundCloud - -**id:** - -![extensions-soundcloud](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/extensions-soundclound.jpg){:style="max-height:500px"}{:.border} - -**html:** - -{% raw %} -```html -{%- include extensions/soundcloud.html id='313627932' -%} -``` - -**markdown:** - -``` -
{%- include extensions/soundcloud.html id='313627932' -%}
-``` -{% endraw %} - -### Netease Cloud Music (网易云音乐) - -Available in Chinese mainland. - -**id:** - -![extensions-soundcloud](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/extensions-netease-cloud-music.jpg){:style="max-height:320px"}{:.border} - -**html:** - -{% raw %} -```html -{%- include extensions/netease-cloud-music.html id='413812448' -%} -``` - -**markdown:** - -``` -
{%- include extensions/netease-cloud-music.html id='413812448' -%}
-``` -{% endraw %} - -## Video - -| Name | Minimum Version | -| --- | --- | -| YouTube | 2.2.2 | -| TED | 2.2.2 | -| bilibili | 2.2.2 | - -### YouTube - -**id:** - -![extensions-soundcloud](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/extensions-youtube.jpg){:style="max-height:250px"}{:.border} - -**html:** - -{% raw %} -```html -{%- include extensions/youtube.html id='wbY97-hdD5c' -%} -``` - -**markdown:** - -``` -
{%- include extensions/youtube.html id='wbY97-hdD5c' -%}
-``` -{% endraw %} - -### TED - -**id:** - -![extensions-soundcloud](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/extensions-ted.jpg){:style="max-height:83px"}{:.border} - -**html:** - -{% raw %} -```html -{%- include extensions/ted.html id='emily_esfahani_smith_there_s_more_to_life_than_being_happy' -%} -``` - -**markdown:** - -``` -
{%- include extensions/ted.html id='emily_esfahani_smith_there_s_more_to_life_than_being_happy' -%}
-``` -{% endraw %} - -### bilibili (哔哩哔哩) - -**id:** - -![extensions-bilibili](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/extensions-bilibili.jpg){:style="max-height:190px"}{:.border} - -**html:** - -{% raw %} -```html -{%- include extensions/bilibili.html id='11091080' -%} -``` - -**markdown:** - -``` -
{%- include extensions/bilibili.html id='11091080' -%}
-``` -{% endraw %} - -## Slide - -| Name | Minimum Version | -| --- | --- | -| SlideShare | 2.2.2 | - -### SlideShare - -**id:** - -![extensions-slideshare](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/extensions-slideshare.jpg){:style="max-height:480px"}{:.border} - -**html:** - -{% raw %} -```html -{%- include extensions/slideshare.html id='u9L9zDsqEWNKE1' -%} -``` - -**markdown:** - -``` -
{%- include extensions/slideshare.html id='u9L9zDsqEWNKE1' -%}
-``` -{% endraw %} - -## Demos - -| Name | Minimum Version | -| --- | --- | -| CodePen | 2.2.3 | - -### CodePen - -**user & hash:** - -![extensions-codepen](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/extensions-codepen.jpg){:style="max-height:100px"}{:.border} - -**html:** - -{% raw %} -```html -{%- include extensions/codepen.html user='kitian616' hash='aQmWZG' default_tab='html,result' -%} -``` - -**markdown:** - -``` -
{%- include extensions/codepen.html user='kitian616' hash='aQmWZG' default_tab='html,result' -%}
-``` -{% endraw %} diff --git a/docs/_docs/en/4.1-spacing.md b/docs/_docs/en/4.1-spacing.md deleted file mode 100644 index 957532b..0000000 --- a/docs/_docs/en/4.1-spacing.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: Spacing -permalink: /docs/en/spacing -key: docs-spacing ---- - -Spacing classes are named using the format `{property}{side}-{spacer}`. - -Where *property* is one of: - -- `m` - for classes that set `margin` -- `p` - for classes that set `padding` - -Where *side* is one of: - -- `t` - for classes that set `margin-top` or `padding-top` -- `b` - for classes that set `margin-bottom` or `padding-bottom` -- `l` - for classes that set `margin-left` or `padding-left` -- `r` - for classes that set `margin-right` or `padding-right` -- `x` - for classes that set both `*-left` and `*-right` -- `y` - for classes that set both `*-top` and `*-bottom` - -blank - for classes that set a `margin` or `padding` on all 4 sides of the element - -Where *spacer* is one of: - -- 0 - for classes that eliminate the `margin` or `padding` by setting it to `0` -- 1 - for classes that set the `margin` or `padding` to `$spacer * .25` -- 2 - for classes that set the `margin` or `padding` to `$spacer * .5` -- 3 - for classes that set the `margin` or `padding` to `$spacer` -- 4 - for classes that set the `margin` or `padding` to `$spacer * 1.5` -- 5 - for classes that set the `margin` or `padding` to `$spacer * 3` -- auto - for classes that set the `margin` to `auto` - -`$spacer` is default to `1rem`, you can change or add new entries to the `$spacers` Sass map variable. - -## Examples - -```html -
-
-``` - -```html -
-
-``` - -```html -
-
-``` diff --git a/docs/_docs/en/4.2-grid.md b/docs/_docs/en/4.2-grid.md deleted file mode 100644 index 9a3633f..0000000 --- a/docs/_docs/en/4.2-grid.md +++ /dev/null @@ -1,209 +0,0 @@ ---- -title: Grid -permalink: /docs/en/grid -key: docs-grid ---- - - - -## Base - -
-
-
6 cells
-
2 cells
-
4 cells
-
-
- -```html -
-
6 cells
-
2 cells
-
4 cells
-
-``` - -## Responsive - -
-
-
12/12/6 cells
-
12/4/2 cells
-
12/8/4 cells
-
-
- -```html -
-
12/12/6 cells
-
12/4/2 cells
-
12/8/4 cells
-
-``` - -## Auto Sizing - -
-
-
2 cells
-
Whatever's left!
-
-
- -```html -
-
2 cells
-
whatever's left!
-
-``` - -
-
-
shrink
-
expand
-
-
- -```html -
-
shrink
-
expand
-
-``` - -## Gutters - -
-
-
-
6 cells
-
-
-
6 cells
-
-
-
6 cells
-
-
-
6 cells
-
-
-
- -```html -
-
-
6 cells
-
6 cells
-
6 cells
-
6 cells
-
-
-``` - -
-
-
-
6 cells
-
-
-
6 cells
-
-
-
6 cells
-
-
-
6 cells
-
-
-
- -```html -
-
-
6 cells
-
6 cells
-
6 cells
-
6 cells
-
-
-``` - -
-
-
-
6 cells
-
-
-
6 cells
-
-
-
6 cells
-
-
-
6 cells
-
-
-
- -```html -
-
-
6 cells
-
6 cells
-
6 cells
-
6 cells
-
-
-``` - -## Overflow - -
-
-
-
loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
-
-
-
loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
-
-
-
- -
-
-
-
loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
-
-
-
loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
-
-
-
- -
-
-
-
loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
-
-
-
loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
-
-
-
diff --git a/docs/_docs/en/4.3-icons.md b/docs/_docs/en/4.3-icons.md deleted file mode 100644 index 917004a..0000000 --- a/docs/_docs/en/4.3-icons.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: Icons -permalink: /docs/en/icons -key: docs-icons ---- - -TeXt uses Font Awesome for icons, you can search available icon code snippet [HERE](https://fontawesome.com/icons?d=gallery&q=donw&m=free). - - - -```html - -``` - -
Download TeXt Theme
- -```html - Download TeXt Theme -``` diff --git a/docs/_docs/en/4.4-image.md b/docs/_docs/en/4.4-image.md deleted file mode 100644 index 20b78b7..0000000 --- a/docs/_docs/en/4.4-image.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: Image -permalink: /docs/en/image -key: docs-image ---- - -| Type | Class Names | -| ---- | ---- | -| **base** | image | -| **size** | image\-\-md (default), image\-\-xs, image\-\-sm, image\-\-lg, image\-\-xl | - -## Size - -### Extreme Small - - - -```html - -``` - -### Small - - - -```html - -``` - -### Middle - - - -```html - -``` - -### Large - - - -```html - -``` - -### Extreme Large - - - -```html - -``` diff --git a/docs/_docs/en/4.5-button.md b/docs/_docs/en/4.5-button.md deleted file mode 100644 index 3bcb556..0000000 --- a/docs/_docs/en/4.5-button.md +++ /dev/null @@ -1,138 +0,0 @@ ---- -title: Button -permalink: /docs/en/button -key: docs-button ---- - -| Type | Class Names | -| ---- | ---- | -| **base** | button | -| **type** | button\-\-primary, button\-\-secondary, button\-\-success, button\-\-info, button\-\-warning, button\-\-error, button\-\-outline\-primary, button\-\-outline\-secondary, button\-\-outline\-success, button\-\-outline\-info, button\-\-outline\-warning, button\-\-outline\-error | -| **shape** | button\-\-pill, button\-\-rounded, button\-\-circle | -| **size** | button\-\-md (default), button\-\-xs, button\-\-sm, button\-\-lg, button\-\-xl | - -## Type - -### Primary - -
BUTTON
- - [BUTTON](#){:.button.button--primary.button--pill} - -```html -BUTTON -``` - -### Secondary - -
BUTTON
- - [BUTTON](#){:.button.button--secondary.button--pill} - -```html -BUTTON -``` - -### Success - -
BUTTON
- - [BUTTON](#){:.button.button--success.button--pill} - -```html -BUTTON -``` - -### Outline - -
BUTTON
- - [BUTTON](#){:.button.button--outline-success.button--pill} - -```html -BUTTON -``` - -## Shape - -### Pill - -
BUTTON
- - [BUTTON](#){:.button.button--primary.button--pill} - -```html -BUTTON -``` - -### Rounded - -
BUTTON
- - [BUTTON](#){:.button.button--primary.button--rounded} - -```html -BUTTON -``` - -### Circle - -
X
- - [X](#){:.button.button--primary.button--circle} - -```html -X -``` - -## Size - -### Extreme Small - -
BUTTON
- - [BUTTON](#){:.button.button--primary.button--rounded.button--xs} - -```html -BUTTON -``` - -### Small - -
BUTTON
- - [BUTTON](#){:.button.button--primary.button--rounded.button--sm} - -```html -BUTTON -``` - -### Middle - -
BUTTON
- - [BUTTON](#){:.button.button--primary.button--rounded} - -```html -BUTTON -``` - -### Large - -
BUTTON
- - [BUTTON](#){:.button.button--primary.button--rounded.button--lg} - -```html -BUTTON -``` - -### Extreme Large - -
BUTTON
- - [BUTTON](#){:.button.button--primary.button--rounded.button--xl} - -```html -BUTTON -``` diff --git a/docs/_docs/en/4.6-item.md b/docs/_docs/en/4.6-item.md deleted file mode 100644 index d87aa02..0000000 --- a/docs/_docs/en/4.6-item.md +++ /dev/null @@ -1,182 +0,0 @@ ---- -title: Item -permalink: /docs/en/item -key: docs-item ---- - -## Content - -
-
-
-

Photograph

-
-
-

- A photograph is an image created by light falling on a photosensitive surface, usually photographic film or an electronic image sensor, such as a CCD or a CMOS chip. -

-
-
-
- -```html -
-
-
-

Photograph

-
-
-

...

-
-
-
-``` - -## Image and Content - - -
-
- -
-
-
-

Photograph

-
-
-
- -```html -
-
- -
-
-
-

Photograph

-
-
-
-``` - -
-
- -
-
-
-

Photograph

-
-
-

- A photograph is an image created by light falling on a photosensitive surface, usually photographic film or an electronic image sensor, such as a CCD or a CMOS chip. -

-
-
-
- -```html -
-
- -
-
-
-

Photograph

-
-
-

...

-
-
-
-``` - -## Image Size - -
-
- -
-
-
-

Photograph

-
-
-
- -```html -
-
- -
-
-
-

Photograph

-
-
-
-``` - -
-
- -
-
-
-

Photograph

-
-
-

- A photograph is an image created by light falling on a photosensitive surface, usually photographic film or an electronic image sensor, such as a CCD or a CMOS chip. -

-
-
-
- -```html -
-
- -
-
-
-

Photograph

-
-
-

...

-
-
-
-``` - -
-
- -
-
-
-

Photograph

-
-
-

- A photograph is an image created by light falling on a photosensitive surface, usually photographic film or an electronic image sensor, such as a CCD or a CMOS chip. -

-
-
-
- -```html -
-
- -
-
-
-

Photograph

-
-
-

...

-
-
-
-``` diff --git a/docs/_docs/en/4.7-card.md b/docs/_docs/en/4.7-card.md deleted file mode 100644 index 2c52dfb..0000000 --- a/docs/_docs/en/4.7-card.md +++ /dev/null @@ -1,185 +0,0 @@ ---- -title: Card -permalink: /docs/en/card -key: docs-card ---- - -## Image - -
-
- -
-
- -```html -
-
- -
-
-``` - -## Content - -
-
-
-

Photograph

-
-

A photograph is an image created by light falling on a photosensitive surface, usually photographic film or an electronic image sensor, such as a CCD or a CMOS chip.

-
-
- -```html -
-
-
-

Photograph

-
-

...

-
-
-``` - -## Image and Content - -
-
- -
-
-
-

Photograph

-
-
-
- -```html -
-
- -
-
-
-

Photograph

-
-
-
-``` - -
-
- -
-
-
-

Photograph

-
-

- A photograph is an image created by light falling on a photosensitive surface, usually photographic film or an electronic image sensor, such as a CCD or a CMOS chip. -

-
-
- -```html -
-
- -
-
-
-

Photograph

-
-

...

-
-
-``` - -## Image Overlay - -
-
- -
-

Photograph

-
-
-
- -```html -
-
- -
-

Photograph

-
-
-
-``` - -
-
- -
-

Photograph

-
-
-
- -```html -
-
- -
-

Photograph

-
-
-
-``` - -## Flat - -
-
- -
-
-
-

Photograph

-
-
-
- -```html -
-
- -
-
-
-

Photograph

-
-
-
-``` - -## Clickable - -
-
-
- -
-
-
- -```html - -
-
- -
-
-
-``` diff --git a/docs/_docs/en/4.8-hero.md b/docs/_docs/en/4.8-hero.md deleted file mode 100644 index 7dfc975..0000000 --- a/docs/_docs/en/4.8-hero.md +++ /dev/null @@ -1,168 +0,0 @@ ---- -title: Hero -permalink: /docs/en/hero -key: docs-hero ---- - - - -## Normal - -
-
-

Hero

-
-
- -```html -
-
-

Hero

-
-
-``` - -## Center - -
-
-

Hero

-
-
- -```html -
-
-

Hero

-
-
-``` - -## Dark Theme - -
-
-

Hero

-
-
- -```html -
-
-

Hero

-
-
-``` - -## Background Image - -
-
-

Hero

-
-
- -```html -
-
-

Hero

-
-
-``` - -
-
-

Hero

-

There's a hero, If you look inside your heart,

-

You don't have to be afraid of what you are.

-
-
- -```html -
-
-

Hero

-

...

-
-
-``` - -## Height - -
-
-

Hero

-

There's a hero, If you look inside your heart,

-

You don't have to be afraid of what you are.

-
-
- -```html -
-
-

Hero

-

...

-
-
-``` - -## Background Image + Center - -
-
-

Hero

-

There's a hero, If you look inside your heart,

-

You don't have to be afraid of what you are.

-
-
- -```html -
-
-

Hero

-

...

-
-
-``` - -
-
-

Hero

-

There's a hero, If you look inside your heart,

-

You don't have to be afraid of what you are.

-
-
- -```html - - -
-
-

Hero

-

...

-
-
-``` diff --git a/docs/_docs/en/4.9-swiper.md b/docs/_docs/en/4.9-swiper.md deleted file mode 100644 index cee99cd..0000000 --- a/docs/_docs/en/4.9-swiper.md +++ /dev/null @@ -1,161 +0,0 @@ ---- -title: Swiper -permalink: /docs/en/swiper -key: docs-swiper ---- - - - -`Alpha`{:.warning} - -## Normal - -
-
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
- -
-
- -
- -```css -.swiper-demo { - height: 220px; -} -``` - -```html -
-
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
-
-
-
-``` - -```js -{%- raw -%} -{%- include scripts/lib/swiper.js -%} -var SOURCES = window.TEXT_VARIABLES.sources; -window.Lazyload.js(SOURCES.jquery, function() { - $('.swiper-demo').swiper(); -}); -{% endraw %} -``` - -## Light Theme - -
-
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
-
-
-
- -## Dark Theme - -
-
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
-
-
-
- -## Images - -
-
-
-
-
-
-
-
-
-
-
-
-
- -## Without Animation - -
-
-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
-
-
-
- - diff --git a/docs/_docs/zh/1.1-quick-start.md b/docs/_docs/zh/1.1-quick-start.md deleted file mode 100644 index 216e046..0000000 --- a/docs/_docs/zh/1.1-quick-start.md +++ /dev/null @@ -1,145 +0,0 @@ ---- -title: 快速开始 -permalink: /docs/zh/quick-start -key: docs-quick-start-zh ---- - -TeXt 是一款 100% 兼容 GitHub Pages 的 Jekyll 主题,你可以通过 Fork、下载或主题等方式安装。 - -在这篇文章中,你将学到如何**安装设置主题**,通过**本地预览**进行开发以及**编译**和**发布**。 - - - -```mermaid -graph LR; - A0(安装 TeXt) - B0(普通方式) - B1[主题方式] - C0[从 GitHub 克隆] - C1[Fork 该仓库] - C2[下载] - D0[设置] - E0(安装开发环境) - F0[直接安装] - F1[使用 Docker] - A0-->B0; - A0-->B1; - B0-->C0; - B0-->C1; - B0-->C2; - B1-->D0; - C1-->E0 - C2-->E0 - D0-->E0 - E0-->F0 - E0-->F1 -``` - -## 安装 - -### 普通方式 - -这种方式要求你的项目里包含所有的主题文件,你可以通过以下途径来安装: - -1. 从 GitHub 克隆 [jekyll-TeXt-theme](https://github.com/kitian616/jekyll-TeXt-theme) 项目: - - **通过 HTTPS 方式克隆:** - - ```bash - git clone https://github.com/kitian616/jekyll-TeXt-theme.git - ``` - - **通过 SSH 方式克隆:** - - ```bash - git clone git@github.com:kitian616/jekyll-TeXt-theme.git - ``` - -2. 下载主题压缩包并解压到你的项目目录中: - - 下载 TeXt 主题 - -3. 如果你打算在 GitHub Pages 上搭建你的网站,你可以直接 fork [jekyll-TeXt-theme](https://github.com/kitian616/jekyll-TeXt-theme) 到你的仓库,然后将其重命名为 **USERNAME.github.io** — 这里的 **USERNAME** 是你的 GitHub 用户名。 - - ![Fork](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/github-fork.jpg) - - ![Rename](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/github-rename-repo.jpg) - -### 主题方式 - -1. 若要安装一套主题,请先将该主题添加到您站点的 *Gemfile* 文件中: - - ```ruby - gem "jekyll-text-theme" - ``` - -2. 向站点的 *_config.yml* 中加入下列代码来启用主题: - - ```yaml - theme: jekyll-text-theme - ``` - -## 设置 - -**这里仅针对主题方式的安装,普通方式安装请跳过。** - -Jekyll 主题含有主题默认的布局文件、包含文件和样式表, 但是有些目录(例如*assets*, *_layouts*, *_includes* 以及 *_sass* 目录)需要手动添加到项目目录中,这样的好处在于将主题的文件和站点的内容和配置隔离开来,方便主题的升级。 - -```bash -├── 404.html -├── Gemfile -├── _config.yml -├── _data -│   └── locale.yml -├── _posts -│   └── ... -├── about.md -├── archive.html -└── index.html -``` - -你可以参考主题源码的 [/test 目录](https://github.com/kitian616/jekyll-TeXt-theme/tree/master/test), 这是一个使用主题的示例。 - -## 安装开发环境 - -如果你想本地运行主题,你需要安装 Ruby 以及 Jekyll,详情请戳 [这里](https://jekyllrb.com/docs/installation/)。 - -上述步骤完成后,安装 Ruby 依赖包: - -```bash -bundle install --path vendor/bundle -``` - -当然,TeXt 还提供了 [Docker](https://www.docker.com/) 支持,使用 Docker 能让你更方便的完成环境的安装,并且环境统一,不会出错。 - -![Docker](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/docker.jpg){:width="400px"} - -你只需要以下 3 步即可通过 Docker 完成环境的搭建: - -1. [安装 Docker](https://docs.docker.com/install/)。 - -2. 生成 *Gemfile.lock* 文件: - - ```bash - docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app ruby:2.6 bundle install - ``` - -3. 创建 Docker 镜像 (Image): - - ```bash - docker-compose -f ./docker/docker-compose.build-image.yml build - ``` - -## 本地预览 - -Jekyll 集成了一个开发用的服务器,可以让你使用浏览器在本地进行预览。 - -通过 `bundle exec jekyll serve` 命令启动开发服务器,然后你就可以访问 [http://localhost:4000/](http://localhost:4000/) 预览你的网站了。 - -如果是通过 Docker 搭建的环境,请运行 `docker-compose -f ./docker/docker-compose.default.yml up` 命令以启动开发服务器。 - -## 编译和发布 - -如果你打算把网站搭建在 GitHub Pages 上,那你所需要做的就是将项目的源码上传到 USERNAME.github.io 源码仓库的 master 分支,GitHub 会自动的编译,几分钟后你就可以通过 **https://USERNAME.github.io** 访问到你的网站了。 - -如果你的网站是搭建在其他服务器上的,那么你就需要来自己编译了。首先运行命令 `JEKYLL_ENV=production bundle exec jekyll build` 编译你的网站,然后将编译的文件(位于 *_site* 目录)更新到你的服务器上。 diff --git a/docs/_docs/zh/1.7-update-from-1-to-2.md b/docs/_docs/zh/1.7-update-from-1-to-2.md deleted file mode 100644 index d584bf3..0000000 --- a/docs/_docs/zh/1.7-update-from-1-to-2.md +++ /dev/null @@ -1,215 +0,0 @@ ---- -title: 从 1.x 升级到 2.x -permalink: /docs/zh/update-from-1-to-2 -key: docs-update-from-1-to-2-zh ---- - -![TeXt 2](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/TeXt-version-2.jpg) - -经过几个月的努力,**TeXt 2** 终于发布了,第二版在第一版的基础上做了大量的重构与更改,这也导致了一些配置的不兼容。希望这篇文档能对你的升级起到一些帮助,感谢你们的支持。 - -## 皮肤 - -*_config.yml* 中 `text_color_theme` 配置项更名为 `text_skin`。 - -1.x: - -```yml -text_color_theme: forest -``` - -```yml -text_skin: forest -``` - -## Layout - -### Article 布局 - -“Post 布局”和“Page 布局”更名为“Article 布局”。 - -1.x: - -```yml -layout: post -``` - -```yml -layout: page -``` - -2.x: - -```yml -layout: article -``` - -由于新的“Article 布局”默认不显示 Toc、在 GitHub 上编辑按钮、许可协议和阅读量。为了和之前的“Post 布局”保持一致,可以在头信息里设置: - -```yml -license: true -aside: - toc: true -show_edit_on_github: true -pageview: true -``` - -你也可以在 *_config.yml* 中设置 posts 类型的[默认值](https://jekyllrb.com/docs/configuration/#front-matter-defaults): - -```yml -defaults: - - scope: - path: "" - type: posts - values: - layout: article - license: true - aside: - toc: true - show_edit_on_github: true - pageview: true -``` - -### Archive 布局 - -原有的“All 布局”更名为“Archive 布局”。 - -1.x: - -```yml -layout: all -``` - -2.x: - -```yml -layout: archive -``` - -## Paths - -为了保持和布局命名的一致性,新版将原有的 *all.html* 更名为 *archive.html*。*_config.yml* 中 `paths` 的配置项 `base` 和 `all` 分别更名为 `root` 和 `archive`。 - -1.x: - -```yml -paths: - base : /blog - all : /blog/all.html - rss : /feed.xml -``` - -2.x: - -```yml -paths: - root : /blog - home : /blog - archive : /blog/archive.html - rss : /feed.xml -``` - -## 许可协议 - -对于许可协议,你还需要在 *_config.yml* 中指定使用的许可协议, 默认为 `false` 不显示: - -```yml -license: CC-BY-4.0 -``` - -## 评论 - -新版对评论、文章点击量和站点统计在 *_config.yml* 中的配置做了一些变化,主要是增加了 `provider` 属性,并且将对应的提供方变为对应的子配置项。 - -1.x: - -```yml -disqus: - shortname: kitian616-github-io -``` - -2.x: - -```yml -comments: - provider: disqus - disqus: - shortname: kitian616-github-io -``` - -## 文章点击量 - -1.x: - -```yml -leancloud: - app_id: uAG3OhdcH8H4fxSqXLyBljA7-gzGzoHsz - app_key: Mzf5m9skSwYVWVXhGiYMNyXs - app_class: ThomasBlog -``` - -2.x: - -```yml -pageview: - provider: leancloud - leancloud: - app_id: uAG3OhdcH8H4fxSqXLyBljA7-gzGzoHsz - app_key: Mzf5m9skSwYVWVXhGiYMNyXs - app_class: ThomasBlog -``` - -## 站点统计 - -1.x: - -```yml -ga_tracking_id: UA-71907556-1 -``` -2.x: - -```yml -analytics: - provider: google - google: - tracking_id: UA-71907556-1 -``` - -## Logo 和 Favicon - -默认 Logo 的位置发生了变化。移除了之前的图标生成工具,新版推荐使用 [RealFaviconGenerator](https://realfavicongenerator.net/) 来生成 Favicon。 - -## 导航 - -网站右上的导航配置移到了 *_data/navigation.yml* 中,在新版中整个导航都可以自由定制了。 - -1.x: - -```yml -nav_lists: - - titles: - en: About - zh: 关于 - zh-Hans: 关于 - zh-Hant: 關於 - url: /blog/about.html -``` - -2.x: - -```yml -## _data/navigation.yml -header: - - titles: - en: Archive - zh: 归档 - zh-Hans: 归档 - zh-Hant: 歸檔 - url: /blog/archive.html - - titles: - en: About - zh: 关于 - zh-Hans: 关于 - zh-Hant: 關於 - url: /blog/about.html -``` diff --git a/docs/_docs/zh/2.1-configuration.md b/docs/_docs/zh/2.1-configuration.md deleted file mode 100644 index b752f2c..0000000 --- a/docs/_docs/zh/2.1-configuration.md +++ /dev/null @@ -1,382 +0,0 @@ ---- -title: 配置 -permalink: /docs/zh/configuration -key: docs-configuration-zh ---- - -Jekyll 允许你很轻松的设计你的网站,这很大程度上归功于灵活强大的配置功能。既可以配置在网站根目录下的 *_config.yml* 文件,也可以作为命令行的标记来配置。 - -*_config.yml* 包括一些在运行时一次性读入的全局配置和变量定义, 在自动生成的过程中并**不会**重新加载,除非重新运行。注意 Data Files 包括在自动生成范围内,可以在更改后自动重新加载。 -{:.warning} - - - -## 网站配置项 - -### 主题 - -如果是通过主题方式安装的,你需要这样配置以启用主题: - -```yaml -theme: jekyll-text-theme -``` - -### 皮肤 - -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) | - -```yaml -text_skin: default # "default" (default), "dark", "forest", "ocean", "chocolate", "orange" -``` - -### 代码高亮主题 - -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) | - -每个皮肤有一个默认的代码高亮主题,当然你可以通过 `highlight_theme` 配置项来指定其他主题。 - -```yaml -highlight_theme: default # "default" (default), "tomorrow", "tomorrow-night", "tomorrow-night-eighties", "tomorrow-night-blue", "tomorrow-night-bright" -``` - -### URL - -网站的协议和域名。 - -如果你的网站是搭建在 Github Pages 上的,这个只会被设置为 GitHub Pages 域名(CNAME 或个人域名)[^gitHub_metadata]. 举个例子, https://kitian616.github.io 或者 https://kitian616.github.io 如果设置了 CNAME。 - -在 3.3 及更高版本的 Jekyll 中运行 `jekyll serve` 命令会在开发模式时将其设置为 url: http://localhost:4000,你可以通过 `JEKYLL_ENV=production` 设置生产环境。 -{:.warning} - -[^gitHub_metadata]: [GitHub Metadata, a.k.a. site.github](https://github.com/jekyll/github-metadata#what-it-does) - -[^jekyll_site_variables]: [Variables#Site Variables](https://jekyllrb.com/docs/variables/#site-variables) - -[^jekyll_specifying_environment]: [Configuration#Specifying a Jekyll environment at build timePermalink](https://jekyllrb.com/docs/configuration/#specifying-a-jekyll-environment-at-build-time) - -### Base URL - -网站的根路径,不包含域名,其默认值为“/”。如果你的网站是搭建在 Github Pages 上的,那么这个值会默认设置为网站对应的项目名[^gitHub_metadata]。 - -### 网站标题 - -网站的标题。 - -```yaml -title: "My Awesome Website" -``` - -### 网站描述 - -使用一些简短的语言来描述你的网站。 - -```yaml -description: > # this means to ignore newlines until "nav_lists:" - A website with awesome stories. -``` - -## 语言与时区 - -### 语言 - -网站的语言,当然你可以在头信息[^font_matter]里指定特定的文章或页面的语言,你可以在[国际化](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/i18n)找到更多信息。 - -```yaml -lang: en -``` - -[^font_matter]: [Front Matter](https://jekyllrb.com/docs/frontmatter/) - -### 时区 - -设置时区,这个设置作用于 TZ 变量, Ruby 用它来处理日期和时间。使用 IANA Time Zone Database 标准,比如 America/New_York 。其默认值为操作系统的时区。详情请戳 [这里](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)。[^jekyll_global_configuration] - -[^jekyll_global_configuration]: [Configuration#Global Configuration](https://jekyllrb.com/docs/configuration/#global-configuration) - -```yaml -timezone: Asia/Shanghai -``` - -## 作者信息 - -网站作者的信息(可以是个人、团队或者组织)。 - -### 类型 (type) - -作者的类型,个人或者是组织,作为 [schema.org](https://schema.org/) 的语义化标记使用。 - -### 作者名 (name) - -用来表明网站的作者。 - -### 头像 (avatar) - -作者的图片或 Logo。 - -### 简介 (bio) - -关于作者的一个简单介绍。 - -### 社交 - -社交网站的用户名或用户 ID。 - -目前支持邮件,微博,Facebook,Twitter,微博,Google Plus,Telegram,Medium,知乎,豆瓣,Linkedin,Github 和 Npm,持续添加中。 - -当你设置了相应项的值后,对应的社交按钮就会出现在页面下方。 - -## GitHub 源码仓库 - -[GitHub Metadata](https://github.com/jekyll/github-metadata) 插件的设置, 详情请戳 [这里](https://github.com/jekyll/github-metadata/blob/master/docs/configuration.md#configuration)。 - -这个设置告诉 jekyll-github-metadata 插件应该从哪个项目中获取元数据,其格式为 `项目所有者 ID/项目名称`,例如:kitian616/jekyll-TeXt-theme。 - -```yaml -repository: user_name/repo_name -``` - -## 文章配置项 - -### 摘要 - -该主题的摘要有两种模式——TEXT 模式和 HTML 模式。 当 *_config.yml* 配置项 `excerpt_type` 的值为 `text` 时是 TEXT 模式,为 `html` 时是 HTML 模式,**默认为 TEXT 模式**。 - -| 模式名称 | 描述 | -| --- | --- | -| **text** | 此时摘要为纯文本,会过滤掉一切非文本元素(标题,链接,列表,表格,图片等等),且截取前 350 个字符。 | -| **html** | 此时摘要为 HTML 文档,与文章内容一致,并且 **默认展示整篇文章的内容**。若想控制摘要内容,需要在文章中想要显示到的地方加上 ``,详情请戳 [这里](https://jekyllrb.com/docs/posts/#post-excerpts)。 | - -```yaml -excerpt_separator: -excerpt_type: text # text (default), html -``` - -该设置在 2.2.0 版中移到了 Articles 和 Home 布局的头信息中,详情请戳 [这里](https://kitian616.github.io/jekyll-TeXt-theme/docs/cn/layouts#articles-layout)。 -{:.error} - -### 许可协议 - -| 名称 | 许可协议 | 图片 | -| --- | --- | --- | -| CC-BY-4.0 | [Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/) | ![CC-BY-4.0](https://i.creativecommons.org/l/by/4.0/88x31.png) | -| CC-BY-SA-4.0 | [Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/) | ![CC-BY-SA-4.0](https://i.creativecommons.org/l/by-sa/4.0/88x31.png) | -| CC-BY-NC-4.0 | [Attribution-NonCommercial 4.0 International](https://creativecommons.org/licenses/by-nc/4.0/) | ![CC-BY-NC-4.0](https://i.creativecommons.org/l/by-nc/4.0/88x31.png) | -| CC-BY-ND-4.0 | [Attribution-NoDerivatives 4.0 International](https://creativecommons.org/licenses/by-nd/4.0/) | ![CC-BY-ND-4.0](https://i.creativecommons.org/l/by-nd/4.0/88x31.png) | - -```yaml -license: CC-BY-NC-4.0 -``` - -### 目录 - -作为文章目录的元素。 - -```yaml -toc: - selectors: "h1,h2,h3" -``` - -### Markdown 增强 - -为了增强文章的写作和阅读体验,TeXt 对 Jekyll 现有的 markdown 做了一些增强。当然这些增强都是默认禁止的,你需要设置相应的配置项为 true 来启动它们: - -```yaml -# Mathjax -mathjax: true -mathjax_autoNumber: true - -# Mermaid -mermaid: true - -# Chart -chart: true -``` - -当然你也可以为某一篇文章或页面通过头信息[^font_matter]来做单独的指定。 - -在 [撰写博客](/) 篇中有更详细的使用说明。 - -## 分页 - -[Jekyll Paginate](https://github.com/jekyll/jekyll-paginate) 插件的配置。 - -要想对文章列表做分页,你需要在 *_config.yml* 文件中配置每页显示的文章数: - -```yaml -paginate: 8 -``` - -这个数字代表了文章列表页每页显示的最大文章数。 - -你也可以像这样指定分页页面的地址: - -```yaml -paginate_path: /page:num # don't change this unless for special need -``` - -## CDN 源 - -TeXt 使用 CDN[^cdn] 来加快载入速度,你可以选择 [BootCDN](http://www.bootcdn.cn/)(默认项)或者[unpkg](https://unpkg.com/)作为网站的 CDN 源。它们都是开源而免费的。 - -国内用户请优先使用 BootCDN。 - -```yaml -sources: bootcdn # bootcdn (default), unpkg -``` - -[^cdn]: [Content delivery network](https://en.wikipedia.org/wiki/Content_delivery_network) - -## 分享 - -| 名称 | 分享系统提供方 | 最低版本 | -| --- | --- | --- | -| **addtoany** | [AddToAny](https://www.addtoany.com/) | 2.2.2 | -| **addthis** | [AddThis](https://www.addthis.com/) | 2.2.3 | -| **custom** | | | - -### AddToAny - -```yaml -comments: - provider: addtoany -``` - -### AddThis - -```yaml -comments: - provider: addthis - addthis: - id: "your-addthis-pubid" -``` - -你需要在页面的头信息里设置 `sharing` 属性为 `true` 来开启该页的评论,详情请戳 [这里](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/layouts#article-%E5%B8%83%E5%B1%80)。 -{:.warning} - -## 评论 - -| 名称 | 评论系统提供方 | 最低版本 | -| --- | --- | --- | -| **disqus** | [Disqus](https://disqus.com/) | | -| **gitalk** | [Gitalk](https://github.com/gitalk/gitalk/) | | -| **valine** | [Valine](https://valine.js.org/en/) | 2.2.4 | -| **custom** | | | - -### Disqus - -要想启用 Disqus 作为评论系统,你需要注册一个 Disqus 账号然后申请一个针对该网站的 [shortname](https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-),完成后将 shortname 填入到 *_config.yml* 中: - -```yaml -comments: - provider: disqus - disqus: - shortname: "your-disqus-shortname" -``` - -### Gitalk - -要想启用 Gitalk 作为评论系统,首先你需要一个 GitHub Application,如果没有[点击这里](https://github.com/settings/applications/new)申请。然后将相应的参数添加到 *_config.yml* 配置中: - -```yaml -comments: - provider: gitalk - gitalk: - clientID : "github-application-client-id" - clientSecret: "github-application-client-secret" - repository : "github-repo" - owner : "github-repo-owner" - admin: # Github repo owner and collaborators, only these guys can initialize github issues, IT IS A LIST. - - "your-github-id" - - "the-other-admin-github-id" -``` - -### Valine - -要想启用 Valine 作为评论系统,你需要注册一个 LeanCloud 账号然后建立一个 LeanCloud 应用,详情见 [LeanCloud](#leancloud)。因为 Valine 会自动在应用中建立一个 Class,因此并不需要像文章点击量那样手动建立 Class。 - -可以和[文章点击量](#文章点击量)公用一个 LeanCloud 应用。 - -```yaml -comments: - provider: valine - valine: - app_id : "your-leanCloud-app-id" - app_key : "your-leanCloud-app-key" -``` - -对于上面所有的评论系统, 你都需要在页面的头信息里设置 `key` 属性来开启该页的评论,详情请戳 [这里](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/layouts#page-%E5%B8%83%E5%B1%80)。 -{:.warning} - -## 文章点击量 - -| 名称 | 文章点击量后台提供方 | -| --- | --- | -| **leancloud** | [LeanCloud](https://leancloud.cn/) | -| **custom** | | - -### LeanCloud - -TeXt 使用 LeanCloud 作为点击量功能的后台服务。你需要建立一个 LeanCloud 应用,然后在应用中建立一个 Class,之后将必要的信息填写到 *_config.yml* 文件中。下面详细介绍其操作步骤。 - -在进入[主页](https://leancloud.cn/)后点击页面右上角的“访问控制台”,然后注册账号并登录。 - -在应用面板存储子页中点击“创建应用”按钮,在弹出的对话框中填写应用名称,计价方案选择“开发版”(土豪随意),然后点击“创建”按钮创建应用。 - -创建完成后应用面板上会出现你刚刚创建的应用卡片,点击进入选择创建 Class: - -![Leancloud:创建 Class 0](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/leancloud-create-class-0.jpg){:style="max-height:420px"}{:.border} - -在弹出的对话框中填写 Class 的名字,权限选择“无限制”,点击“创建 Class”按钮: - -![Leancloud:创建 Class 1](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/leancloud-create-class-1.jpg){:style="max-height:620px"}{:.border} - -当然你可以随时更改 Class 的权限,在应用面板存储子页中选择想要修改的 Class,点击上面菜单的其他 -> 权限设置项,即可进入设置页: - -![Leancloud:权限设置](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/leancloud-authorization.jpg){:style="max-height:300px"} - -最后点击应用面板右侧的“设置”,点击“应用 Key” 选项,即可得到对应的 APP ID 和 APP KEY: - -![Leancloud:App Info](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/leancloud-app-info.jpg){:.border} - -```yaml -pageview: - provider: leancloud - leancloud: - app_id : "your-leanCloud-app-id" - app_key : "your-leanCloud-app-key" - app_class : "your-leanCloud-app-class" -``` - -对于上面所有的点击量统计, 你都需要在页面的头信息里设置 `key` 属性来开启该页的统计功能,详情请戳 [这里](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/layouts#page-%E5%B8%83%E5%B1%80)。 -{:.warning} - -## 站点统计 - -| 名称 | 站点统计提供方 | -| --- | --- | -| **google** | [Google Analytics](https://analytics.google.com/) | -| **custom** | | - -### Google Analytics - -你需要将 `tracking_id` 设置成你的 Google Analytics 账户中针对该网站的跟踪代码来启动这项功能。你也可以通过设置 `anonymize_ip` 为 `true` 将所有事件的 IP 地址匿名化。 - -```yaml -analytics: - provider: google - google: - tracking_id: "your-google-analytics-tracking-code" - anonymize_ip: true -``` diff --git a/docs/_docs/zh/2.2-navigation.md b/docs/_docs/zh/2.2-navigation.md deleted file mode 100644 index 20e4a74..0000000 --- a/docs/_docs/zh/2.2-navigation.md +++ /dev/null @@ -1,66 +0,0 @@ ---- -title: 导航栏 -permalink: /docs/zh/navigation -key: docs-navigation-zh ---- - -在 TeXt 中有两种导航栏:**头部导航栏**(Header Navigation)和**侧边栏导航栏**(Sidebar Navigation),它们均在 *data/navigation.yml* 中配置。 - - - -## 头部导航栏 - -头部导航栏在 *data/navigation.yml* 文件的 `header` 项定义,它是一个包含标题和 URL 项的数组: - -```yaml -header: - - title: Docs - url: /docs/en/quick-start - - title: 文档 - url: /docs/zh/quick-start - - titles: - en: Archive - zh: 归档 - zh-Hans: 归档 - zh-Hant: 歸檔 - url: /archive.html - - titles: - en: About - zh: 关于 - zh-Hans: 关于 - zh-Hant: 關於 - url: /about.html - - title: GitHub - url: https://github.com/kitian616/jekyll-TeXt-theme -``` - -你可以用 `titles` 来定义一个支持多语言的标题名。 - -## 侧边栏导航栏 - -要想在某篇文章或页面中使用侧边栏导航栏,首先你需要在 *data/navigation.yml* 中定义一个导航栏。 - -```yaml -docs-en: - - title: Start - children: - - title: Quick Start - url: /docs/en/quick-start - - title: Structure - url: /docs/en/structure - ... - - title: Customization - children: - - title: Configuration - url: /docs/en/configuration - - title: Navigation - url: /docs/en/navigation - ... -``` - -然后在头信息中将定义的导航作为这篇文章或页面的侧边栏导航栏: - -```yaml -sidebar: - nav: docs-en -``` diff --git a/docs/_docs/zh/2.3-layouts.md b/docs/_docs/zh/2.3-layouts.md deleted file mode 100644 index 61e7044..0000000 --- a/docs/_docs/zh/2.3-layouts.md +++ /dev/null @@ -1,176 +0,0 @@ ---- -title: 布局 -permalink: /docs/zh/layouts -key: docs-layouts-zh ---- - -```mermaid -graph TB; - NONE[none] - BASE[base] - PAGE[page] - ARTICLE[article] - ARTICLES[articles] - HOME[home] - ARCHIVE[archive] - LANDING[landing] - 404[404] - NONE-->BASE; - BASE-->PAGE; - PAGE-->ARTICLE; - PAGE-->ARTICLES; - ARTICLES-->HOME; - PAGE-->ARCHIVE; - PAGE-->LANDING; - PAGE-->404; -``` - -## Base 布局 - -继承于 None。 - -## Page 布局 - -继承于 Base 布局。 - -| 配置项 | 可选值 | 描述 | 最低版本 | -| --- | --- | --- | --- | -| **mode** | normal (default), immersive | 该页的模式。 | 2.2.0 | -| **type** | webpage (default), article | 该页的类型, 作为 [schema.org](https://schema.org/) 的语义化标记使用。 | | -| **key** | `!!str` | 页面的唯一标识符,供评论系统和点击量统计使用。必须以字母(`[A-Za-z]`)开头,其后可以接若干字母、数字(`[0-9]`)、连字符(`-`)、下划线(`_`)、冒号(`:`)和小数点(`.`)。 | | -| **lang** | en (default), zh, zh-Hans, zh-Hant | 该页的语言。 | | -| **author** | `!!map` | 将在 *authors.yml* 中定义的作者作为某篇文章或页面的作者, 详情请看[作者](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/authors)。 | 2.2.0 | -| **show_title** | true (default), false | 是否显示标题,默认显示,设置为 `false` 隐藏。 | | -| **show_edit_on_github** | true, false (default) | 是否显示“在 Github 上修改”按钮,设置为 `true` 显示。你需要先在 *_config.yml* 中设置 `repository` 和 `repository_tree`。 | | -| **show_date** | true (default), false | 是否展示该页的发布日期,设置为 `false` 隐藏。 | 2.2.0 | -| **show_tags** | true (default), false | 是否展示该页的标签,设置为 `false` 隐藏。 | 2.2.0 | -| **full_width** | true, false (default) | 该页内容是否占据全部宽度,设置为 `true` 开启。 | | -| **pageview** | true, false (default) | 是否开启阅读量统计,默认关闭,设置为 `true` 开启。 | 2.2.0 | -| **comment** | true (default), false | 是否开启评论支持,默认开启,设置为 `false` 关闭。 | | -| **mathjax** | true, false | 是否开启 Mathjax 公式支持,设置为 `true` 开启。 | | -| **mathjax_autoNumber** | true, false | 该页的 Mathjax 公式是否自动编号,设置为 `true` 开启。 | | -| **mermaid** | true, false | 是否开启 Mermaid 流程图支持,设置为 `true` 开启。 | | -| **chart** | true, false | 是否开启 Chart 图表支持,设置为 `true` 开启。 | | -| **cover** | `!!str` | 封面图片的 URL。 | | -| **header** | false, `!!map` | 设置为 `false` 隐藏标题栏。 | 2.2.0 | -| **article_header**| `!!map` | | 2.2.0 | -| **aside** | `!!map` | | | -| **sidebar** | `!!map` | | | -| **footer** | false | 设置为 `false` 隐藏底部栏。 | 2.2.3 | -| **lightbox** | true, false | 该页的大图是否能点击预览,设置为 `true` 开启,你可以通过设置 `lightbox-ignore` 类名来忽略特定的图片元素。 | 2.2.4 | - -### header - -| 配置项 | 可选值 | 描述 | -| --- | --- | --- | -| **theme** | light, dark | 当 type 为 `translucent` 时有效。 | -| **background** | `!!str` | 当指定了 theme 值时有效。 | - -### article_header - -| 配置项 | 可选值 | 描述 | -| --- | --- | --- | -| **type** | overlay, cover | | -| **align** | left (default), center | | -| **theme** | light (default), dark | | -| **background_color** | `!!str` | 当 type 为 `overlay` 时有效。当设置的背景色较深时,你需要设置 `theme` 为 dark。 | -| **background_image** | `!!map` | 当 type 为 `overlay` 时有效,设置为 `false` 可覆盖 `cover` 禁止背景图片。 | -| **image** | `!!map` | 当 type 为 `cover` 时有效。 | -| **actions** | `!!seq` | | - -### article_header.background_image - -| Variable | Option Values | Description | -| --- | --- | --- | -| **gradient** | `!!str` | | -| **src** | `!!str` | 默认为 `cover` | - -### article_header.image - -| Variable | Option Values | Description | -| --- | --- | --- | -| **src** | `!!str` | | - -### aside - -| 配置项 | 可选值 | 描述 | -| --- | --- | --- | -| **toc** | false (default), true | 设置为 `true` 时展示右侧边栏目录。 | - -### sidebar - -| 配置项 | 可选值 | 描述 | -| --- | --- | --- | -| **nav** | `!!str` | | - -## Article 布局 - -继承于 Page 布局。 - -| 配置项 | 可选值 | 描述 | 最低版本 | -| --- | --- | --- | --- | -| **modify_date** | `!!str` | 该文章的最后修改时间, 其格式为 `YYYY-MM-DD HH:MM:SS +/-TTTT` 和 `date` 的格式相同 | | -| **sharing** | true, false (default) | 是否开启分享,设置为 `true` 开启。 | 2.2.2 | -| **show_author_profile** | true, false (default) | 是否在文章开头显示作者信息卡片,设置为 `true` 显示。 | | -| **show_subscribe**| true, false (default) | 是否在文章末尾显示订阅信息,设置为 `true` 显示。 | latest | -| **license** | true, false (default), CC-BY-4.0, CC-BY-SA-4.0, CC-BY-NC-4.0, CC-BY-ND-4.0 | 该文章的许可协议。设置为 `true` 使用在 *_config.yml* 中设置的 `license` 值,设置为 `false` 不使用许可协议。 | | - -## Articles 布局 - -继承于 Page 布局,从 **2.2.0** 版本支持。 - -| 配置项 | 可选值 | 描述 | -| --- | --- | --- | -| **articles** | `!!map` | | - -### articles - -| 配置项 | 可选值 | 描述 | -| --- | --- | --- | -| **data_source** | `!!str` | 如果你将将集合名设置为该项的值,该页面将会展示这个集合下的文章列表。你可以在 [Collections](https://jekyllrb.com/docs/collections/) 找到更多关于集合的信息。 | -| **type** | item, brief, grid | TeXt 支持三种文章列表类型,每种类型都对应着一些配置,你可以在 [这里](https://kitian616.github.io/jekyll-TeXt-theme/samples.html#articles-layout) 看到相关的示例。 | -| **size** | md, sm | 当 type 为 `grid` 时有效。 | -| **article_type** | BlogPosting | 当 type 为 `normal` 时有效。 | -| **show_cover** | true (default), false | 当 type 为 `normal` 时有效。 在设置改参数为 `true` 前,你需要给集合里的每篇文章设置封面, 参考 [Page 布局](#page-layout)的 `cover` 配置项。 | -| **cover_size** | lg, md, sm | 当 type 为 `normal` 时有效。 | -| **show_excerpt** | true, false (default) | 当 type 为 `normal` 时有效, 参考下面 [excerpt_type](#excerpt_type) 章节。 | -| **excerpt_type** | text, html | 当 type 为 `normal` 时有效。 | -| **show_readmore** | true, false (default) | 当 type 为 `normal` 时有效。 | -| **show_info** | true, false (default) | 当 type 为 `normal` 或 `brief` 时有效。 | - -### articles.excerpt_type - -文章列表中文章项的摘要有两种模式——TEXT 模式和 HTML 模式。 - -| 模式名称 | 描述 | -| --- | --- | -| **text** | 此时摘要为纯文本,会过滤掉一切非文本元素(标题,链接,列表,表格,图片等等),且截取前 350 个字符。 | -| **html** | 此时摘要为 HTML 文档,与文章内容一致,并且 **默认展示整篇文章的内容**。若想控制摘要内容,需要在文章中想要显示到的地方加上 ``,详情请戳 [这里](https://jekyllrb.com/docs/posts/#post-excerpts)。 | - -对于 Home 页,你可以像这样把 `excerpt_type` 设置为 `HTML`: - -```yaml -layout: home -articles: - excerpt_type: html -``` - -## Home 布局 - -继承于 Articles 布局。 - -## Archive 布局 - -继承于 Page 布局。 - -## Landing 布局 - -继承于 Page 布局。 - -| 配置项 | 可选值 | 描述 | -| --- | --- | --- | -| **data** | `!!map` | | - -## 404 布局 - -继承于 Page 布局。 diff --git a/docs/_docs/zh/2.4-logo-and-favicon.md b/docs/_docs/zh/2.4-logo-and-favicon.md deleted file mode 100644 index fb0bbba..0000000 --- a/docs/_docs/zh/2.4-logo-and-favicon.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: Logo 和 Favicon -permalink: /docs/zh/logo-and-favicon -key: docs-logo-and-favicon-zh ---- - -## Logo - -

TeXt 使用 {% include svg/logo.svg %} 作为它的 Logo,你可以通过替换 _includes/svg/logo.svg 来设置你的 Logo。

- -## Favicon - -TeXt 推荐使用 [RealFaviconGenerator](https://realfavicongenerator.net/) 来生成 Favicon。 - -打开 [RealFaviconGenerator](https://realfavicongenerator.net/) 后点击“Select your Favicon picture”,选择图片进入下一步。 - -![Select your Favicon picture](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/realfavicongenerator-select-favicon-picture.jpg) - -图标设置完成后,你需要告诉生成器 Favicon 文件的网站路径,TeXt 将他们放在了 */assets* 目录。 - -推荐将 Favicon 文件放在网站的根目录下。 -{:.warning} - -![Select your Favicon path](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/realfavicongenerator-path.jpg) - -完成后点击“Generate your Favicons and HTML code”进入到最后一步。 - -![Result](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/realfavicongenerator-result.jpg) - -下载生成的 favicon 包,解压文件到你方才填写的路径,将 HTML 代码替换到 *_includes/head/favicon.html* 文件中。 diff --git a/docs/_docs/zh/2.5-authors.md b/docs/_docs/zh/2.5-authors.md deleted file mode 100644 index da36a9c..0000000 --- a/docs/_docs/zh/2.5-authors.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: 作者 -permalink: /docs/zh/authors -key: docs-authors-zh ---- -文章或页面的作者默认为在 *_config.yml* 中配置的 `author`,当然你可以通过 YAML 头信息来指定特定文章的作者。 - -首先你需要有一个 *_data/authors.yml* 的文件,参考以下格式来增加作者信息。其可用参数和 *_config.yml* 中的 `author` 项的参数一致(type, name, url, avatar, bio, email, facebook 等)。 - -```yml -Tian Qi: - name : Tian Qi - url : https://kitian616.github.io - avatar : https://wx3.sinaimg.cn/large/73bd9e13ly1fjkqy66hl8j208c08c0td.jpg - bio : Author of TeXt. - email : kitian616@outlook.com - facebook : # "user_name" the last part of your profile url, e.g. https://www.facebook.com/user_name - twitter : kitian616 # "user_name" the last part of your profile url, e.g. https://twitter.com/user_name - weibo : 234695683 # "user_id" the last part of your profile url, e.g. https://www.weibo.com/user_id/profile?... - googleplus: 101827554735084402671 # "user_id" the last part of your profile url, e.g. https://plus.google.com/u/0/user_id - telegram : # "user_name" the last part of your profile url, e.g. https://t.me/user_name - medium : # "user_name" the last part of your profile url, e.g. https://medium.com/user_name - 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 : kitian616 # "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 -``` - -将在 *authors.yml* 中定义的作者作为某篇文章或页面的作者以覆盖 `site.author` 全局作者。 - - --- - author: Tian Qi - --- diff --git a/docs/_docs/zh/2.7-i18n.md b/docs/_docs/zh/2.7-i18n.md deleted file mode 100644 index 7ed42cb..0000000 --- a/docs/_docs/zh/2.7-i18n.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -title: 国际化 -permalink: /docs/zh/i18n -key: docs-i18n-zh ---- - -TeXt 把 UI 元素的文字整理成一系列的翻译标识统一的放置在 *_data/locale.yml* 中,这样能够比较方便添加不同语言的支持。 - -通过 `titles` 配置项可以给文章,布局和导航定义定义多语言标题,TeXt 默认定义了很多这样的标题,它们分别位于 *_data/navigation*,*_layouts/archive*,*_layouts/home* 和 *about.md* 中。 - - - -上文所提到的翻译标识和多语言标题支持以下语言: - - -| 语言 | `lang` | -| --- | --- | -| **英语** | en, en-GB, en-US, en-CA, en-AU | -| **简体中文** | zh-Hans, zh, zh-CN, zh-SG | -| **繁体中文** | zh-Hant, zh-TW, zh-HK | -| **韩语** | ko, ko-KR | -| **法语** | fr, fr-BE, fr-CA, fr-CH, fr-FR, fr-LU | - - -你可以在 [这里](https://kitian616.github.io/jekyll-TeXt-theme/samples.html#languages) 找到不同语言的示例。 diff --git a/docs/_docs/zh/3.1-writing-posts.md b/docs/_docs/zh/3.1-writing-posts.md deleted file mode 100644 index 491ef2a..0000000 --- a/docs/_docs/zh/3.1-writing-posts.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -title: 撰写博客 -permalink: /docs/zh/writing-posts -key: docs-writing-posts-zh ---- - -在[目录结构](http://jekyllcn.com/docs/structure/)介绍中说明过,**所有的文章都在 */_posts* 文件夹中**。这些文件可以用 Markdown 或 HTML 编写。只要文件中有 YAML 头信息,它们就会从源格式转化成 HTML 页面,从而成为你的静态网站的一部分。 - - - -## 创建文章 - -发表一篇新文章,你所需要做的就是在 */_posts* 文件夹中创建一个新的文件。文件名的命名非常重要。Jekyll 要求一篇文章的文件名遵循下面的格式: - - 年-月-日-标题.MARKUP - -下面是一些合法的文件名的例子: - - 2011-12-31-new-years-eve-is-awesome.md - 2012-09-12-how-to-write-a-blog.markdown - -## 内容相关 - -所有博客文章顶部必须有一段 YAML 头信息(YAML front-matter)。 - -为了提高文章的阅读和书写体验,TeXt 在 Markdown 原有的基础上做了一些增强。 - -### YAML 头信息 - - --- - layout: article - title: Document - Writing Posts - mathjax: true - --- - -在 `---` 之间你可以设置属性的值,可以把它们看作页面的配置,这些配置会覆盖在 *_config.yml* 文件中设置的全局配置。 - -除去 Jekyll 自定义的变量外,TeXt 也定义了一些额外的变量,详情请戳[布局](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/layouts)。 diff --git a/docs/_docs/zh/3.2-markdown-enhancements.md b/docs/_docs/zh/3.2-markdown-enhancements.md deleted file mode 100644 index 5e149e0..0000000 --- a/docs/_docs/zh/3.2-markdown-enhancements.md +++ /dev/null @@ -1,171 +0,0 @@ ---- -title: Markdown 增强 -permalink: /docs/zh/markdown-enhancements -key: docs-markdown-enhancements-zh ---- - -你需要在 *_config.yml* 或 YAML 头信息中设置相关的属性为 `true` 来开启对应的功能。 - -| 增强项 | 描述 | -| --------------- | ----------- | -| **Mathjax** | 在文章中方便的加入数学公式,使用 MathML、LaTeX 和 ASCIIMathML 语法 | [示例](https://kitian616.github.io/jekyll-TeXt-theme/post/2017/07/07/mathjax.html) | -| **Mermaid** | 在文章中方便的加入流程图 | [示例](https://kitian616.github.io/jekyll-TeXt-theme/post/2017/06/06/mermaid.html) | -| **Chart** | 在文章中方便的加入可交互的图表 | [示例](https://kitian616.github.io/jekyll-TeXt-theme/post/2017/05/05/chart.html) | - -## Mathjax - -When $$a \ne 0$$, there are two solutions to $$ax^2 + bx + c = 0$$ and they are - -$$x_1 = {-b + \sqrt{b^2-4ac} \over 2a}$$ - -$$x_2 = {-b - \sqrt{b^2-4ac} \over 2a} \notag$$ - -**markdown:** - -```tex -When $$a \ne 0$$, there are two solutions to $$ax^2 + bx + c = 0$$ and they are -$$x_1 = {-b + \sqrt{b^2-4ac} \over 2a}$$ -$$x_2 = {-b - \sqrt{b^2-4ac} \over 2a} \notag$$ -``` - -**当 MathJax 激活后**,你可以设置 `mathjax_autoNumber: true` 让公式自动编号,你可以使用 \notag 或者 \nonumber 阻止某条公式自动编号。 -{:.info} - -## Mermaid - -```mermaid -graph TB; - A[Do you have a problem in your life?] - B[Then don't worry] - C[Can you do something about it?] - A--no-->B; - A--yes-->C; - C--no-->B; - C--yes-->B; -``` - -**markdown:** - - ```mermaid - graph TB; - A[Do you have a problem in your life?] - B[Then don't worry] - C[Can you do something about it?] - A--no-->B; - A--yes-->C; - C--no-->B; - C--yes-->B; - ``` - -[Mermaid](https://mermaidjs.github.io/) 支持以下三种示意图: - -- [Flowchart](https://mermaidjs.github.io/flowchart.html) - -- [Sequence Diagram](https://mermaidjs.github.io/sequenceDiagram.html) - -- [Gant Diagram](https://mermaidjs.github.io/gantt.html) - -## Chart - -```chart -{ - "type": "line", - "data": { - "labels": [ - "January", - "February", - "March", - "April", - "May", - "June", - "July" - ], - "datasets": [ - { - "label": "# of bugs", - "fill": false, - "lineTension": 0.1, - "backgroundColor": "rgba(75,192,192,0.4)", - "borderColor": "rgba(75,192,192,1)", - "borderCapStyle": "butt", - "borderDash": [], - "borderDashOffset": 0, - "borderJoinStyle": "miter", - "pointBorderColor": "rgba(75,192,192,1)", - "pointBackgroundColor": "#fff", - "pointBorderWidth": 1, - "pointHoverRadius": 5, - "pointHoverBackgroundColor": "rgba(75,192,192,1)", - "pointHoverBorderColor": "rgba(220,220,220,1)", - "pointHoverBorderWidth": 2, - "pointRadius": 1, - "pointHitRadius": 10, - "data": [ - 65, - 59, - 80, - 81, - 56, - 55, - 40 - ], - "spanGaps": false - } - ] - }, - "options": {} -} -``` - -**markdown:** - - ```chart - { - "type": "polarArea", - "data": { - "datasets": [ - { - "data": [ - 11, - 16, - 7, - 3, - 14 - ], - "backgroundColor": [ - "#FF6384", - "#4BC0C0", - "#FFCE56", - "#E7E9ED", - "#36A2EB" - ], - "label": "My dataset" - } - ], - "labels": [ - "Red", - "Green", - "Yellow", - "Grey", - "Blue" - ] - }, - "options": {} - } - ``` - -[Chart.js](http://www.chartjs.org/docs/latest/) 支持以下 7 种图表: - -- [Line Chart](http://www.chartjs.org/docs/latest/charts/line.html) - -- [Bar Chart](http://www.chartjs.org/docs/latest/charts/bar.html) - -- [Radar Chart](http://www.chartjs.org/docs/latest/charts/radar.html) - -- [Polar Area Chart](http://www.chartjs.org/latest/charts/polar.html) - -- [Pie Chart](http://www.chartjs.org/docs/latest/charts/doughnut.html) - -- [Doughnut Chart](http://www.chartjs.org/docs/latest/charts/doughnut.html) - -- [Bubble Chart](http://www.chartjs.org/docs/latest/charts/bubble.html) diff --git a/docs/_docs/zh/3.3-additional-styles.md b/docs/_docs/zh/3.3-additional-styles.md deleted file mode 100644 index 367e42e..0000000 --- a/docs/_docs/zh/3.3-additional-styles.md +++ /dev/null @@ -1,169 +0,0 @@ ---- -title: 附加样式 -permalink: /docs/zh/additional-styles -key: docs-additional-styles-zh ---- - -Jekyll 使用 kramdown 作为默认 Markdown 解释器。kramdown 可以通过 ALDs[^ALDs] 来设置块级元素或行内元素的属性。例如,可以通过 `{:.class-name1.class-name-2}` 来给元素定义样式类。 - -TeXt 定义了一些样式类,你可以在文章和页面的方便的使用,可以在 [这里](https://kitian616.github.io/jekyll-TeXt-theme/post/2017/08/08/additional-styles.html) 看到示例和详细的说明. - -[^ALDs]: [Attribute List Definitions](https://kramdown.gettalong.org/syntax.html#attribute-list-definitions) - -## 提示 - -| 样式名称 | -| ---- | -| **success** | -| **info** | -| **warning** | -| **error** | - -Success Text. -{:.success} - -Info Text. -{:.info} - -Warning Text. -{:.warning} - -Error Text. -{:.error} - -**markdown:** - - Success Text. - {:.success} -^ - Info Text. - {:.info} -^ - Warning Text. - {:.warning} -^ - Error Text. - {:.error} - -## 标签 - -| Class Names | -| ---- | -| **success** | -| **info** | -| **warning** | -| **error** | - -`success`{:.success} - -`info`{:.info} - -`warning`{:.warning} - -`error`{:.error} - -**markdown:** - - `success`{:.success} -^ - `info`{:.info} -^ - `warning`{:.warning} -^ - `error`{:.error} - -## 图片 - -| 样式名称 | -| ---- | -| **border** | -| **shadow** | -| **rounded** | -| **circle** | - -### Border - -
-
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_border"){:.border} -
-
- ![Image](path-to-image){:.border} -
-
-
- -### Shadow - -
-
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_shadow"){:.shadow} -
-
- ![Image](path-to-image){:.shadow} -
-
-
- -### Rounded - -
-
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_rounded"){:.rounded} -
-
- ![Image](path-to-image){:.rounded} -
-
-
- -### Circle - -
-
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_circle"){:.circle} -
-
- ![Image](path-to-image){:.circle} -
-
-
- -### Mixture - -
-
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_border+rounded"){:.border.rounded} -
-
- ![Image](path-to-image){:.border.rounded} -
-
-
- -
-
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_circle+shadow"){:.circle.shadow} -
-
- ![Image](path-to-image){:.circle.shadow} -
-
-
- -
-
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_circle+border+shadow"){:.circle.border.shadow} -
-
- ![Image](path-to-image){:.circle.border.shadow} -
-
-
diff --git a/docs/_docs/zh/3.4-extensions.md b/docs/_docs/zh/3.4-extensions.md deleted file mode 100644 index d79f4b0..0000000 --- a/docs/_docs/zh/3.4-extensions.md +++ /dev/null @@ -1,172 +0,0 @@ ---- -title: 扩展 -permalink: /docs/zh/extensions -key: docs-extensions-zh ---- - -## 音频 - -| 扩展名称 | 最新版本 | -| --- | --- | -| SoundCloud | 2.2.2 | -| Netease Cloud Music | 2.2.2 | - -### SoundCloud - -**id:** - -![extensions-soundcloud](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/extensions-soundclound.jpg){:style="max-height:500px"}{:.border} - -**html:** - -{% raw %} -```html -{%- include extensions/soundcloud.html id='313627932' -%} -``` - -**markdown:** - -``` -
{%- include extensions/soundcloud.html id='313627932' -%}
-``` -{% endraw %} - -### 网易云音乐 - -**id:** - -![extensions-soundcloud](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/extensions-netease-cloud-music.jpg){:style="max-height:320px"}{:.border} - -**html:** - -{% raw %} -```html -{%- include extensions/netease-cloud-music.html id='413812448' -%} -``` - -**markdown:** - -``` -
{%- include extensions/netease-cloud-music.html id='413812448' -%}
-``` -{% endraw %} - -## 视频 - -| 扩展名称 | 最新版本 | -| --- | --- | -| YouTube | 2.2.2 | -| TED | 2.2.2 | -| bilibili | 2.2.2 | - -### YouTube - -**id:** - -![extensions-soundcloud](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/extensions-youtube.jpg){:style="max-height:250px"}{:.border} - -**html:** - -{% raw %} -```html -{%- include extensions/youtube.html id='wbY97-hdD5c' -%} -``` - -**markdown:** - -``` -
{%- include extensions/youtube.html id='wbY97-hdD5c' -%}
-``` -{% endraw %} - -### TED - -**id:** - -![extensions-soundcloud](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/extensions-ted.jpg){:style="max-height:83px"}{:.border} - -**html:** - -{% raw %} -```html -{%- include extensions/ted.html id='emily_esfahani_smith_there_s_more_to_life_than_being_happy' -%} -``` - -**markdown:** - -``` -
{%- include extensions/ted.html id='emily_esfahani_smith_there_s_more_to_life_than_being_happy' -%}
-``` -{% endraw %} - -### 哔哩哔哩 - -**id:** - -![extensions-bilibili](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/extensions-bilibili.jpg){:style="max-height:190px"}{:.border} - -**html:** - -{% raw %} -```html -{%- include extensions/bilibili.html id='11091080' -%} -``` - -**markdown:** - -``` -
{%- include extensions/bilibili.html id='11091080' -%}
-``` -{% endraw %} - -## 幻灯片 - -| 扩展名称 | 最新版本 | -| --- | --- | -| SlideShare | 2.2.2 | - -### SlideShare - -**id:** - -![extensions-slideshare](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/extensions-slideshare.jpg){:style="max-height:480px"}{:.border} - -**html:** - -{% raw %} -```html -{%- include extensions/slideshare.html id='u9L9zDsqEWNKE1' -%} -``` - -**markdown:** - -``` -
{%- include extensions/slideshare.html id='u9L9zDsqEWNKE1' -%}
-``` -{% endraw %} - -## 在线示例 - -| 扩展名称 | 最新版本 | -| --- | --- | -| CodePen | 2.2.3 | - -### CodePen - -**user & hash:** - -![extensions-codepen](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/extensions-codepen.jpg){:style="max-height:100px"}{:.border} - -**html:** - -{% raw %} -```html -{%- include extensions/codepen.html user='kitian616' hash='aQmWZG' default_tab='html,result' -%} -``` - -**markdown:** - -``` -
{%- include extensions/codepen.html user='kitian616' hash='aQmWZG' default_tab='html,result' -%}
-``` -{% endraw %} diff --git a/docs/_includes/article/footer/custom.html b/docs/_includes/article/footer/custom.html deleted file mode 100644 index 866459e..0000000 --- a/docs/_includes/article/footer/custom.html +++ /dev/null @@ -1,44 +0,0 @@ - -{% assign _root_path = page.path | slice: 0, 5 %} -{% assign _lang = page.lang | slice: 0, 2 %} -{%- if _root_path == '_docs' -%} - {%- if _lang == 'zh' -%} -
-
-

你的支持是我的动力。你可以通过以下方式支持我:

- - - - - - - - - - -
微信支付支付宝
微信支付二维码支付宝二维码
-
- - {%- else -%} -
-
- Tip Me via PayPal - - Tip Me via Bitcoin -
BTC: 3Fkufxcw2xd8HnaRJBNK4ccdtkUDyyNu4V
-
-
- Star This Project
-
- {%- endif -%} -{%- endif -%} - diff --git a/docs/_includes/main/bottom/custom.html b/docs/_includes/main/bottom/custom.html deleted file mode 100644 index 6da85c6..0000000 --- a/docs/_includes/main/bottom/custom.html +++ /dev/null @@ -1,15 +0,0 @@ - -
- - - - -
- diff --git a/docs/_posts/2015-01-01-article-with-long-toc.md b/docs/_posts/2015-01-01-article-with-long-toc.md deleted file mode 100644 index 1448b6c..0000000 --- a/docs/_posts/2015-01-01-article-with-long-toc.md +++ /dev/null @@ -1,67 +0,0 @@ ---- -title: Test - Article with Long TOC -key: 20150101 -tags: Test ---- - -Article with long TOC. - - - -## TeXt Heading - -### TeXt Heading - -### TeXt Heading - -#### TeXt Heading - -##### TeXt Heading - -###### TeXt Heading - -### TeXt Heading - -## Very Very Very Very Very Very Very Very Very Very Very Very Very Extremely Completely Extraordinary Long Long Long Long Title - -### TeXt Heading - -### TeXt Heading - -### TeXt Heading - -### TeXt Heading - -### TeXt Heading - -### TeXt Heading - -## TeXt Heading - -### TeXt Heading - -### Very Very Very Very Very Very Very Very Very Very Very Very Very Extremely Completely Extraordinary Long Long Long Long Title - -## TeXt Heading - -### TeXt Heading - -### TeXt Heading - -## TeXt Heading - -### TeXt Heading - -### TeXt Heading - -### TeXt Heading - -### TeXt Heading - -### TeXt Heading - -### Very Very Very Very Very Very Very Very Very Very Very Very Very Extremely Completely Extraordinary Long Long Long Long Title - -### TeXt Heading - -### TeXt Heading diff --git a/docs/_posts/2015-01-03-article-with-lots-images.md b/docs/_posts/2015-01-03-article-with-lots-images.md deleted file mode 100644 index 0bdecb4..0000000 --- a/docs/_posts/2015-01-03-article-with-lots-images.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -title: Test - Article with Lots of Images -key: 20150103 -tags: Test ---- - -## TeXt Theme - Cover - -![TeXt Theme](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/TeXt-home.jpg) - - - -## TeXt Theme - Layouts - -![TeXt Theme Layouts](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/TeXt-layouts.png) - -## Skin: Default - -![default](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_default.jpg) - -## Skin: Dark - -![dark](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_dark.jpg) - -## Skin: Forest - -![forest](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_forest.jpg) - -## Skin: Ocean - -![ocean](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_ocean.jpg) - -## Skin: Chocolate - -![chocolate](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_chocolate.jpg) - -## Skin: Orange - -![orange](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_orange.jpg) diff --git a/docs/_posts/2015-01-06-punctuation-characters'.md b/docs/_posts/2015-01-06-punctuation-characters'.md deleted file mode 100644 index 0c6a60d..0000000 --- a/docs/_posts/2015-01-06-punctuation-characters'.md +++ /dev/null @@ -1,70 +0,0 @@ ---- -title: 'Test - ~`!@ #$%^ &*() -=_+ []{} \|;: ,.<> ?/''" αβγδ ÁÀÂÄÃĄÆ ®☃︎⌘✉︎ 😂🤣👻👽' -key: 20150106 -tags: -- Test -- S P A C E -- '~`!@' -- '#$%^' -- '&*()' -- '-=_+' -- '[]{}' -- '\|;:' -- ',.<>' -- '?/''"' -- αβγδ -- ÁÀÂÄÃĄÆ -- ®☃︎⌘✉︎ -- 😂🤣👻👽 ---- - -Unicode characters - - - -## Basic Latin - - !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{\|}~ - -## Latin-1 Supplement - - ¡¢£¤¥¦§¨©ª«¬ ®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ - -## Latin Extended-A - -ĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀŁłŃńŅņŇňʼnŊŋŌōŎŏŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžſ - -## Latin Extended-B - -ƀƁƂƃƄƅƆƇƈƉƊƋƌƍƎƏƐƑƒƓƔƕƖƗƘƙƚƛƜƝƞƟƠơƢƣƤƥƦƧƨƩƪƫƬƭƮƯưƱƲƳƴƵƶƷƸƹƺƻƼƽƾƿǀǁǂǃDŽDždžLJLjljNJNjnjǍǎǏǐǑǒǓǔǕǖǗǘǙǚǛǜǝǞǟǠǡǢǣǤǥǦǧǨǩǪǫǬǭǮǯǰDZDzdzǴǵǶǷǸǹǺǻǼǽǾǿȀȁȂȃȄȅȆȇȈȉȊȋȌȍȎȏȐȑȒȓȔȕȖȗȘșȚțȜȝȞȟȠȡȢȣȤȥȦȧȨȩȪȫȬȭȮȯȰȱȲȳȴȵȶȷȸȹȺȻȼȽȾȿɀɁɂɃɄɅɆɇɈɉɊɋɌɍɎɏ - -## Latin Extended Additional - -ḂḃḊḋḞḟṀṁṖṗṠṡṪṫẀẁẂẃẄẅẛỲỳ - -## Greek and Coptic - -ͰͱͲͳʹ͵Ͷͷͺͻͼͽ;Ϳ΄΅Ά·ΈΉΊΌΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϏϐϑϒϓϔϕϖϗϘϙϚϛϜϝϞϟϠϡϢϣϤϥϦϧϨϩϪϫϬϭϮϯϰϱϲϳϴϵ϶ϷϸϹϺϻϼϽϾϿ - -## Greek Extended - -ἀἁἂἃἄἅἆἇἈἉἊἋἌἍἎἏἐἑἒἓἔἕἘἙἚἛἜἝἠἡἢἣἤἥἦἧἨἩἪἫἬἭἮἯἰἱἲἳἴἵἶἷἸἹἺἻἼἽἾἿὀὁὂὃὄὅὈὉὊὋὌὍὐὑὒὓὔὕὖὗὙὛὝὟὠὡὢὣὤὥὦὧὨὩὪὫὬὭὮὯὰάὲέὴήὶίὸόὺύὼώᾀᾁᾂᾃᾄᾅᾆᾇᾈᾉᾊᾋᾌᾍᾎᾏᾐᾑᾒᾓᾔᾕᾖᾗᾘᾙᾚᾛᾜᾝᾞᾟᾠᾡᾢᾣᾤᾥᾦᾧᾨᾩᾪᾫᾬᾭᾮᾯᾰᾱᾲᾳᾴᾶᾷᾸᾹᾺΆᾼ᾽ι᾿῀῁ῂῃῄῆῇῈΈῊΉῌ῍῎῏ῐῑῒΐῖῗῘῙῚΊ῝῞῟ῠῡῢΰῤῥῦῧῨῩῪΎῬ῭΅`ῲῳῴῶῷῸΌῺΏῼ´῾ - -## Cyrillic -ЀЁЂЃЄЅІЇЈЉЊЋЌЍЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюяѐёђѓєѕіїјљњћќѝўџѠѡѢѣѤѥѦѧѨѩѪѫѬѭѮѯѰѱѲѳѴѵѶѷѸѹѺѻѼѽѾѿҀҁ҂҃҄҅҆҇҈҉ҊҋҌҍҎҏҐґҒғҔҕҖҗҘҙҚқҜҝҞҟҠҡҢңҤҥҦҧҨҩҪҫҬҭҮүҰұҲҳҴҵҶҷҸҹҺһҼҽҾҿӀӁӂӃӄӅӆӇӈӉӊӋӌӍӎӏӐӑӒӓӔӕӖӗӘәӚӛӜӝӞӟӠӡӢӣӤӥӦӧӨөӪӫӬӭӮӯӰӱӲӳӴӵӶӷӸӹӺӻӼӽӾӿ - -## Unicode symbols - -–—―‗‘’‚‛“”„†‡•…‰′″‹›‼‾⁄⁊ - -## Others - -ㄅㄉㄓㄚㄞㄢㄦㄆㄊㄍㄐㄔㄗㄧㄛㄟㄣㄇㄋㄎㄑㄕㄘㄨㄜㄠㄤㄈㄏㄒㄖㄙㄩㄝㄡㄥ - -ぁぃぅぇぉかきくけこんさしすせそたちつってとゐなにぬねのはひふへほゑまみむめもゃゅょゎを - -ァィゥヴェォカヵキクケヶコサシスセソタチツッテトヰンナニヌネノハヒフヘホヱマミムメモャュョヮヲ - -®☃︎⌘✉︎ - -😂🤣👻👽 diff --git a/docs/_posts/2015-02-02-very-long-title.md b/docs/_posts/2015-02-02-very-long-title.md deleted file mode 100644 index b3cef0a..0000000 --- a/docs/_posts/2015-02-02-very-long-title.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Test - Very Very Very Very Very Very Very Very Very Very Very Very Very Extremely Completely Extraordinary Long Long Long Long Title -key: 20150202 -tags: Test ---- - -Article With Very Long Title. diff --git a/docs/_posts/2016-05-02-horizontal-rules.md b/docs/_posts/2016-05-02-horizontal-rules.md deleted file mode 100644 index 2ee8df7..0000000 --- a/docs/_posts/2016-05-02-horizontal-rules.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -title: Jekyll - Horizontal Rules -key: 20160502 -tags: Jekyll ---- - -* * * - - - - * * * - -*** - - *** - -***** - - ***** - -- - - - - - - - - ---------------------------------------- - - --------------------------------------- diff --git a/docs/_posts/2016-05-04-footnote.md b/docs/_posts/2016-05-04-footnote.md deleted file mode 100644 index db2f8c7..0000000 --- a/docs/_posts/2016-05-04-footnote.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -title: Jekyll - Footnote -key: 20160504 -tags: Jekyll ---- - -Here is a footnote reference,[^1] and another.[^longnote] - -[^1]: Here is the footnote. - -[^longnote]: Here’s one with multiple blocks. - - Subsequent paragraphs are indented to show that they -belong to the previous footnote. - - - -**markdown:** - - Here is a footnote reference,[^1] and another.[^longnote] - - [^1]: Here is the footnote. - - [^longnote]: Here’s one with multiple blocks. - - Subsequent paragraphs are indented to show that they - belong to the previous footnote. diff --git a/docs/_posts/2016-05-05-definition.md b/docs/_posts/2016-05-05-definition.md deleted file mode 100644 index b277bb2..0000000 --- a/docs/_posts/2016-05-05-definition.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: Jekyll - Definition -key: 20160505 -tags: Jekyll ---- - -kramdown -: A Markdown-superset converter - -Maruku -: Another Markdown-superset converter - - - -**markdown:** - - kramdown - : A Markdown-superset converter - - Maruku - : Another Markdown-superset converter diff --git a/docs/_posts/2016-05-08-blockquotes.md b/docs/_posts/2016-05-08-blockquotes.md deleted file mode 100755 index 5ee95ac..0000000 --- a/docs/_posts/2016-05-08-blockquotes.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: Jekyll - Blockquotes -key: 20160508 -tags: Jekyll ---- - -> “There is nothing either good or bad, but thinking makes it so.” -> -> —Hamlet in *Hamlet* - - - -**markdown:** - - > “There is nothing either good or bad, but thinking makes it so.” - > - > —Hamlet in *Hamlet* - ---- - -> “From women’s eyes this doctrine I derive: -> -> They sparkle still the right Promethean fire; -> -> They are the books, the arts, the academes, -> -> That show, contain, and nourish all the world.” -> -> —Berowne in *Love’s Labor’s Lost* diff --git a/docs/_posts/2016-06-06-lists.md b/docs/_posts/2016-06-06-lists.md deleted file mode 100755 index d7f864c..0000000 --- a/docs/_posts/2016-06-06-lists.md +++ /dev/null @@ -1,47 +0,0 @@ ---- -title: Jekyll - Lists -key: 20160606 -tags: Jekyll ---- - -## Unordered list - -* Aenean -* vel - * libero - * eget -* ante - - - -**markdown:** - - * Aenean - * vel - * libero - * eget - * ante - -## Ordered list - -1. Aenean -2. vel -3. libero -4. eget -5. ante - -**markdown:** - - 1. Aenean - 2. vel - 3. libero - 4. eget - 5. ante - -## Task list - -- [ ] a bigger project - - [x] first subtask - - [x] follow up subtask - - [ ] final subtask -- [ ] a separate task diff --git a/docs/_posts/2016-06-10-tables.md b/docs/_posts/2016-06-10-tables.md deleted file mode 100755 index 105aaeb..0000000 --- a/docs/_posts/2016-06-10-tables.md +++ /dev/null @@ -1,84 +0,0 @@ ---- -title: Jekyll - Tables -key: 20160610 -tags: Jekyll ---- - -## Align - -|-----------------+------------+-----------------+----------------| -| Default aligned |Left aligned| Center aligned | Right aligned | -|-----------------|:-----------|:---------------:|---------------:| -| First body part |Second cell | Third cell | fourth cell | -| Second line |foo | **strong** | baz | -| Third line |quux | baz | bar | -|-----------------+------------+-----------------+----------------| -| Second body | | | | -| 2 line | | | | -|=================+============+=================+================| -| Footer row | | | | -|-----------------+------------+-----------------+----------------| - - - -**markdown:** - - |-----------------+------------+-----------------+----------------| - | Default aligned |Left aligned| Center aligned | Right aligned | - |-----------------|:-----------|:---------------:|---------------:| - | First body part |Second cell | Third cell | fourth cell | - | Second line |foo | **strong** | baz | - | Third line |quux | baz | bar | - |-----------------+------------+-----------------+----------------| - | Second body | | | | - | 2 line | | | | - |=================+============+=================+================| - | Footer row | | | | - |-----------------+------------+-----------------+----------------| - ---- - -|--- -| Default aligned | Left aligned | Center aligned | Right aligned -|-|:-|:-:|-: -| First body part | Second cell | Third cell | fourth cell -| Second line |foo | **strong** | baz -| Third line |quux | baz | bar -|--- -| Second body -| 2 line -|=== -| Footer row - -**markdown:** - - |--- - | Default aligned | Left aligned | Center aligned | Right aligned - |-|:-|:-:|-: - | First body part | Second cell | Third cell | fourth cell - | Second line |foo | **strong** | baz - | Third line |quux | baz | bar - |--- - | Second body - | 2 line - |=== - | Footer row - -## Table With Images - -| Model | iPhone 6S | iPhone 6S Plus | iPhone SE | iPhone 7 | iPhone 7 Plus | iPhone 8 | iPhone 8 Plus | iPhone X | -| ----- | --------- | -------------- | --------- | -------- | ------------- | -------- | ------------- | -------- | -| Picture | ![](https://upload.wikimedia.org/wikipedia/commons/thumb/9/9b/IPhone_6s_vector.svg/210px-IPhone_6s_vector.svg.png) | ![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/IPhone_6s_Plus_vector.svg/250px-IPhone_6s_Plus_vector.svg.png) | ![](https://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/IPhone_SE_in_silver.png/190px-IPhone_SE_in_silver.png) | ![](https://upload.wikimedia.org/wikipedia/commons/thumb/1/18/IPhone_7_Jet_Black.svg/210px-IPhone_7_Jet_Black.svg.png) | ![](https://upload.wikimedia.org/wikipedia/commons/thumb/6/64/IPhone_7_Plus_Jet_Black.svg/250px-IPhone_7_Plus_Jet_Black.svg.png) | ![](https://upload.wikimedia.org/wikipedia/commons/thumb/5/5d/IPhone_8_vector.svg/210px-IPhone_8_vector.svg.png) | ![](https://upload.wikimedia.org/wikipedia/commons/thumb/7/70/IPhone_8_plus_vector.svg/250px-IPhone_8_plus_vector.svg.png) | ![](https://upload.wikimedia.org/wikipedia/commons/thumb/3/32/IPhone_X_vector.svg/220px-IPhone_X_vector.svg.png) | -| Initial release operating system | iOS 9.0 | iOS 9.0 | iOS 9.3 | iOS 10.0 | iOS 10.0 | iOS 11.0 | iOS 11.0 | iOS 11.0.1 | -| Display | 4.7 in (120 mm), 4.1 in (100 mm) by 2.3 in (58 mm), 16:9 aspect ratio, aluminosilicate glass covered 16,777,216-color (24-bit), IPS LCD screen, 1,334 × 750 px screen resolution at 326 ppi, 1400:1 contrast ratio, 500 ​cd⁄m² max brightness, LED backlight and fingerprint-resistant oleophobic coating | 5.5 in (140 mm), 4.8 in (120 mm) by 2.7 in (69 mm), 16:9 aspect ratio, aluminosilicate glass covered 16,777,216-color (24-bit), IPS LCD screen, 1,920 × 1,080 px (Full HD) screen resolution at 401 ppi, 1300:1 contrast ratio, 500 ​cd⁄m² max brightness, LED backlight and fingerprint-resistant oleophobic coating | 4 in (100 mm), 3.5 in (89 mm) by 1.9 in (48 mm), 71:40 (~16:9) aspect ratio, aluminosilicate glass covered 16,777,216-color (24-bit), IPS LCD screen, 1,136 × 640 px (WSVGA) screen resolution at 326 ppi, pixel size 78 µm, 800:1 contrast ratio, 500 ​cd⁄m² max brightness, LED backlight and fingerprint-resistant oleophobic coating | In addition to 6S: 625 ​cd⁄m² max brightness | In addition to 6S Plus: 625 ​cd⁄m² max brightness | In addition to 7: True Tone display | In addition to 7 Plus: True Tone display | 5.8 in (150 mm), 5.31 in (135 mm) by 2.45 in (62 mm), ~19.5:9 aspect ratio, aluminosilicate glass covered 16,777,216-color (24-bit), AMOLED screen, 2,436 × 1,125 px screen resolution at 458 ppi, 1,000,000:1 contrast ratio, 625 ​cd⁄m² max brightness, fingerprint-resistant oleophobic coating, True Tone display, Dolby Vision and HDR10 support | - -> From Wikipedia, the free encyclopedia - -## Table With Long Text - -| Language | Demo | -| -------- | ---- | -| C | printf("hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!"); | -| C++ | std::cout<<"hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!hello,world!"<` tags for this. - -Here is a literal `` ` `` backtick. -And here is `` `some` `` text (note the two spaces so that one is left -in the output!). - -```javascript -(() => console.log('hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world!'))(); -``` - - - -**markdown:** - - Here is a literal `` ` `` backtick. - And here is `` `some` `` text (note the two spaces so that one is left - in the output!). - -## Standard Code Blocks - - Here comes some code - - This text belongs to the same code block. - -^ - This one is separate. - -**markdown:** - -``` - Here comes some code - - This text belongs to the same code block. - -^ - This one is separate. -``` - ---- - -``` -(() => console.log('hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world!'))(); -``` - -**markdown:** - - ``` - (() => console.log('hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world!'))(); - ``` - ---- - -```javascript -(() => console.log('hello, world!'))(); -``` - -**markdown:** - - ```javascript - (() => console.log('hello, world!'))(); - ``` - ---- - -```none -(() => console.log('hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world!'))(); -``` - -## Highlighting Code Snippets - -{% highlight javascript %} -(() => console.log('hello, world!'))(); -{% endhighlight %} - -**markdown:** - -``` -{%- raw -%} -{% highlight javascript %} -(() => console.log('hello, world!'))(); -{% endhighlight %} -{% endraw %} -``` - -### Line Numbers - -{% highlight javascript linenos %} -var hello = 'hello'; -var world = 'world'; -var space = ' '; -(() => console.log(hello + space + world + space + hello + space + world + space + hello + space + world + space + hello + space + world))(); -{% endhighlight %} - -**markdown:** - -``` -{%- raw -%} -{% highlight javascript linenos %} -var hello = 'hello'; -var world = 'world'; -var space = ' '; -(() => console.log(hello + space + world + space + hello + space + world + space + hello + space + world + space + hello + space + world))(); -{% endhighlight %} -{% endraw %} -``` - ---- - -{% highlight javascript %} -(() => console.log('hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world!'))(); -{% endhighlight %} - -{% highlight none %} -(() => console.log('hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world!'))(); -{% endhighlight %} - -## Fenced Code Blocks - -~~~ -Here comes some code. -~~~ - -**markdown:** - - ~~~ - Here comes some code. - ~~~ - ---- - -~~~~~~~~~~~~ -~~~~~~~ -code with tildes -~~~~~~~~ -~~~~~~~~~~~~~~~~~~ - -**markdown:** - - ~~~~~~~~~~~~ - ~~~~~~~ - code with tildes - ~~~~~~~~ - ~~~~~~~~~~~~~~~~~~ - -## Language of Code Blocks - -~~~ -def what? - 42 -end -~~~ -{: .language-ruby} - -**markdown:** - - ~~~ - def what? - 42 - end - ~~~ - {: .language-ruby} - ---- - -~~~ ruby -def what? - 42 -end -~~~ - -**markdown:** - - ~~~ ruby - def what? - 42 - end - ~~~ diff --git a/docs/_posts/2016-07-07-images.md b/docs/_posts/2016-07-07-images.md deleted file mode 100755 index 0d227e6..0000000 --- a/docs/_posts/2016-07-07-images.md +++ /dev/null @@ -1,47 +0,0 @@ ---- -title: Jekyll - Images -key: 20160707 -tags: Jekyll ---- - -![](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg) - -An :apple: a day, keeps :woman_health_worker: :man_health_worker: away. - - - -**markdown:** - - ![](path-to-image) - -## With ALT - -![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg) - -**markdown:** - - ![Image](path-to-image) - -## With Title - -![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image") - -**markdown:** - - ![Image](path-to-image "Image") - -## Specify Width and Height - -![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image@128x128"){:width="128px" height="128px"} - -**markdown:** - - ![Image](path-to-image){:width="128px" height="128px"} - ---- - -![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image@64x64"){:width="64px" height="64px"} - -**markdown:** - - ![Image](path-to-image){:width="64px" height="64px"} diff --git a/docs/_posts/2016-09-01-links.md b/docs/_posts/2016-09-01-links.md deleted file mode 100755 index 38dcd9f..0000000 --- a/docs/_posts/2016-09-01-links.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Jekyll - Links -key: 20160901 -tags: Jekyll ---- - -[TeXt](https://github.com/kitian616/jekyll-TeXt-theme/) - - - -**markdown:** - - [TeXt](https://github.com/kitian616/jekyll-TeXt-theme/) - -## With Title - -[TeXt](https://github.com/kitian616/jekyll-TeXt-theme/ "TeXt") - -**markdown:** - - [TeXt](https://github.com/kitian616/jekyll-TeXt-theme/ "TeXt") - -## Reference Links - -[TeXt][TeXt] is a super customizable Jekyll theme. - -[TeXt]: https://github.com/kitian616/jekyll-TeXt-theme/ "TeXt" - -**markdown:** - - [TeXt][TeXt] is a super customizable Jekyll theme. - - [TeXt]: https://github.com/kitian616/jekyll-TeXt-theme/ "TeXt" - -## Link Within A Paragraph - -[TeXt](https://github.com/kitian616/jekyll-TeXt-theme/) is a super customizable Jekyll theme for personal site, team site, blog, project, documentation, etc. Similar to iOS 11 style, it has large and prominent titles, round buttons and cards. - -**markdown:** - - [TeXt](https://github.com/kitian616/jekyll-TeXt-theme/) is a super customizable Jekyll theme for personal site, team site, blog, project, documentation, etc. Similar to iOS 11 style, it has large and prominent titles, round buttons and cards. diff --git a/docs/_posts/2016-09-09-emphasis.md b/docs/_posts/2016-09-09-emphasis.md deleted file mode 100755 index 6a852c0..0000000 --- a/docs/_posts/2016-09-09-emphasis.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Jekyll - Emphasis -key: 20160909 -tags: Jekyll ---- - -*Should Old Acquaintance be forgot* - -_Should Old Acquaintance be forgot_ - -**Should Old Acquaintance be forgot** - -__Should Old Acquaintance be forgot__ - - - -**markdown:** - - *Should Old Acquaintance be forgot* - _Should Old Acquaintance be forgot_ - **Should Old Acquaintance be forgot** - __Should Old Acquaintance be forgot__ - ---- - -This is a ***text with light and strong emphasis***. - -This **is _emphasized_ as well**. - -This *does _not_ work*. - -This **does __not__ work either**. - -**markdown:** - -``` -This is a ***text with light and strong emphasis***. -This **is _emphasized_ as well**. -This *does _not_ work*. -This **does __not__ work either**. -``` diff --git a/docs/_posts/2016-09-19-headers.md b/docs/_posts/2016-09-19-headers.md deleted file mode 100755 index 384c9ee..0000000 --- a/docs/_posts/2016-09-19-headers.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -title: Jekyll - Headers -key: 20160919 -tags: Jekyll ---- - -# H1. TeXt Heading - -## H2. TeXt Heading - -### H3. TeXt Heading - -#### H4. TeXt Heading - -##### H5. TeXt Heading - -###### H6. TeXt Heading - - - -**markdown:** - - # H1. TeXt Heading - ## H2. TeXt Heading - ### H3. TeXt Heading - #### H4. TeXt Heading - ##### H5. TeXt Heading - ###### H6. TeXt Heading - -H1. TeXt Heading -================== - -H2. TeXt Heading ------- - -**markdown:** - - H1. TeXt Heading - ================== - - H2. TeXt Heading - ------ diff --git a/docs/_posts/2016-10-10-paragraphs.md b/docs/_posts/2016-10-10-paragraphs.md deleted file mode 100755 index 8e59c8b..0000000 --- a/docs/_posts/2016-10-10-paragraphs.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: Jekyll - Paragraphs -key: 20161010 -tags: Jekyll ---- - -Electroencephalography (EEG) is an electrophysiological monitoring method to record electrical activity of the brain. It is typically noninvasive, with the electrodes placed along the scalp, although invasive electrodes are sometimes used such as in electrocorticography. EEG measures voltage fluctuations resulting from ionic current within the neurons of the brain. In clinical contexts, EEG refers to the recording of the brain’s spontaneous electrical activity over a period of time, as recorded from multiple electrodes placed on the scalp. Diagnostic applications generally focus either on event-related potentials or on the spectral content of EEG. The former investigates potential fluctuations time locked to an event like stimulus onset or button press. The latter analyses the type of neural oscillations (popularly called “brain waves”) that can be observed in EEG signals in the frequency domain. - - - -EEG is most often used to diagnose epilepsy, which causes abnormalities in EEG readings. It is also used to diagnose sleep disorders, depth of anesthesia, coma, encephalopathies, and brain death. EEG used to be a first-line method of diagnosis for tumors, stroke and other focal brain disorders, but this use has decreased with the advent of high-resolution anatomical imaging techniques such as magnetic resonance imaging (MRI) and computed tomography (CT). Despite limited spatial resolution, EEG continues to be a valuable tool for research and diagnosis. It is one of the few mobile techniques available and offers millisecond-range temporal resolution which is not possible with CT, PET or MRI. - -Derivatives of the EEG technique include evoked potentials (EP), which involves averaging the EEG activity time-locked to the presentation of a stimulus of some sort (visual, somatosensory, or auditory). Event-related potentials (ERPs) refer to averaged EEG responses that are time-locked to more complex processing of stimuli; this technique is used in cognitive science, cognitive psychology, and psychophysiological research. - -## Very Long Word - -MethionylglutaminylarginyltyrosylglutamylserylleucylphenylalanylalanylglutaminylleucyllysylglutamylarginyllysylglutamylglycylalanylphenylalanylvalylprolyphenylalanYlvalythreonylleucylglycylaspartylprolylglycylisoleucylglutamylglutaminylsErylleucyllysylisoleucylaspartylthreonylleucylIsoleucylglutamylalanylglycylalanylasparthlalanylleucylglutamylleucylglycylisoleucylprolylphenylalanylseRylaspartylprolylleucylalanylaspartylglycylpRolylthreOnylisoleucylglutaminylasPfraginylalanylthreonylleucylarfinylalanylphenylalanylalanylalanylglycylvalythreonylprolylalanylglutaminylcysteinylphenylalanylglutamylmethionylleucylalanylleuOylisoleucylarginylglutaminyllysyhistidylprolylthreonylisoleucylprolylisoleucylglycylleucylmethionyltyrosylalanylasparaginylleucylvalylphenylalanylasparaginyllysyglycylisoleucylaspartylglutamylphenylalanylthrosylalanylglutaminylcysteinylglutamyllysylvalylglycylvalylaspartylserylvalylleucylvalylalnylaspartylvalylprolylvalylglUtaminylglutamylserylalanylprolylphenylalanylarginylglutaminylalanylalanylleucylarginylhistidylasparaginyvalylalanylprolylisoleucylprolylisoleucylphenylalanylisoleucylphenylalanylisoleucylcysteinylprolylprolylaspartylalanylaspartylaspartylaspartylleucylleucylarginylglutaminylisoleucylalanylseryltyrosylglycylarginylglycyltyrosylthreonyltyrOsylleucylleucylserylarginylalanylglycylvalylthreonylglycylalanylglutamYlasparainylarginylalanylalanylleucylprolylleucylasparaginylhistidylleucylValylalanyllysylleucyllysylglutamyltyrosylasparaginylalanylalanylprolylprolylleucylglutaminylglgycylphenylalanylglycylisoleucylserylalanylprolylaspartylglutaminylvalyllysylalanylalanylisoleucylaspartylalanylglycylalanylalanylglycylalanylisoleucylserylglycylserylalanylisoleucylvalyllysylisoIeucylisoleucylglutamylglutaminylHistidylasparaginyliSoleucylglutamylprolylglutamyllysylmethionylleucylalanylalanylleucyllysylvalylphenylalanylcalylglutaminylprolylmethionlysylalanylalanylthreonylarginylserine - -> From Wikipedia, the free encyclopedia diff --git a/docs/_posts/2017-04-15-author.md b/docs/_posts/2017-04-15-author.md deleted file mode 100644 index e572486..0000000 --- a/docs/_posts/2017-04-15-author.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -title: TeXt - Author -key: 20170419 -tags: TeXt -modify_date: 2017-09-09 -author: Tian Qi -show_author_profile: true ---- - -Article with specified author. - - - -Set `show_author_profile` as `true` to show author profile. - -**front matter:** - - --- - ... - author: Tian Qi - show_author_profile: true - --- diff --git a/docs/_posts/2017-04-19-modify-date.md b/docs/_posts/2017-04-19-modify-date.md deleted file mode 100644 index 317ae1b..0000000 --- a/docs/_posts/2017-04-19-modify-date.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -title: TeXt - Modify Date -key: 20170419 -tags: TeXt -modify_date: 2017-09-09 ---- - -Article with modify date. - - - -**front matter:** - - --- - ... - modify_date: 2017-09-09 - --- diff --git a/docs/_posts/2017-05-05-chart.md b/docs/_posts/2017-05-05-chart.md deleted file mode 100644 index 0a870c8..0000000 --- a/docs/_posts/2017-05-05-chart.md +++ /dev/null @@ -1,655 +0,0 @@ ---- -title: TeXt - Chart -key: 20170505 -tags: TeXt -chart: true ---- - -```chart -{ - "type": "line", - "data": { - "labels": [ - "January", - "February", - "March", - "April", - "May", - "June", - "July" - ], - "datasets": [ - { - "label": "# of bugs", - "fill": false, - "lineTension": 0.1, - "backgroundColor": "rgba(75,192,192,0.4)", - "borderColor": "rgba(75,192,192,1)", - "borderCapStyle": "butt", - "borderDash": [], - "borderDashOffset": 0, - "borderJoinStyle": "miter", - "pointBorderColor": "rgba(75,192,192,1)", - "pointBackgroundColor": "#fff", - "pointBorderWidth": 1, - "pointHoverRadius": 5, - "pointHoverBackgroundColor": "rgba(75,192,192,1)", - "pointHoverBorderColor": "rgba(220,220,220,1)", - "pointHoverBorderWidth": 2, - "pointRadius": 1, - "pointHitRadius": 10, - "data": [ - 65, - 59, - 80, - 81, - 56, - 55, - 40 - ], - "spanGaps": false - } - ] - }, - "options": {} -} -``` - - - -You need set `chart: true` in the *_config.yml* or the markdown’s front matter to **enable** it. -{:.warning} - -[Documentation](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/markdown-enhancements#chart) - -## Line Chart - -```chart -{ - "type": "line", - "data": { - "labels": [ - "January", - "February", - "March", - "April", - "May", - "June", - "July" - ], - "datasets": [ - { - "label": "# of bugs", - "fill": false, - "lineTension": 0.1, - "backgroundColor": "rgba(75,192,192,0.4)", - "borderColor": "rgba(75,192,192,1)", - "borderCapStyle": "butt", - "borderDash": [], - "borderDashOffset": 0, - "borderJoinStyle": "miter", - "pointBorderColor": "rgba(75,192,192,1)", - "pointBackgroundColor": "#fff", - "pointBorderWidth": 1, - "pointHoverRadius": 5, - "pointHoverBackgroundColor": "rgba(75,192,192,1)", - "pointHoverBorderColor": "rgba(220,220,220,1)", - "pointHoverBorderWidth": 2, - "pointRadius": 1, - "pointHitRadius": 10, - "data": [ - 65, - 59, - 80, - 81, - 56, - 55, - 40 - ], - "spanGaps": false - } - ] - }, - "options": {} -} -``` - -**markdown:** - - ```chart - { - "type": "line", - "data": { - "labels": [ - "January", - "February", - "March", - "April", - "May", - "June", - "July" - ], - "datasets": [ - { - "label": "# of bugs", - "fill": false, - "lineTension": 0.1, - "backgroundColor": "rgba(75,192,192,0.4)", - "borderColor": "rgba(75,192,192,1)", - "borderCapStyle": "butt", - "borderDash": [], - "borderDashOffset": 0, - "borderJoinStyle": "miter", - "pointBorderColor": "rgba(75,192,192,1)", - "pointBackgroundColor": "#fff", - "pointBorderWidth": 1, - "pointHoverRadius": 5, - "pointHoverBackgroundColor": "rgba(75,192,192,1)", - "pointHoverBorderColor": "rgba(220,220,220,1)", - "pointHoverBorderWidth": 2, - "pointRadius": 1, - "pointHitRadius": 10, - "data": [ - 65, - 59, - 80, - 81, - 56, - 55, - 40 - ], - "spanGaps": false - } - ] - }, - "options": {} - } - ``` - -## Bar Chart - -```chart -{ - "type": "bar", - "data": { - "labels": [ - "Red", - "Blue", - "Yellow", - "Green", - "Purple", - "Orange" - ], - "datasets": [ - { - "label": "# of Votes", - "data": [ - 12, - 19, - 3, - 5, - 2, - 3 - ], - "backgroundColor": [ - "rgba(255, 99, 132, 0.2)", - "rgba(54, 162, 235, 0.2)", - "rgba(255, 206, 86, 0.2)", - "rgba(75, 192, 192, 0.2)", - "rgba(153, 102, 255, 0.2)", - "rgba(255, 159, 64, 0.2)" - ], - "borderColor": [ - "rgba(255,99,132,1)", - "rgba(54, 162, 235, 1)", - "rgba(255, 206, 86, 1)", - "rgba(75, 192, 192, 1)", - "rgba(153, 102, 255, 1)", - "rgba(255, 159, 64, 1)" - ], - "borderWidth": 1 - } - ] - }, - "options": {} -} -``` - -**markdown:** - - ```chart - { - "type": "bar", - "data": { - "labels": [ - "Red", - "Blue", - "Yellow", - "Green", - "Purple", - "Orange" - ], - "datasets": [ - { - "label": "# of Votes", - "data": [ - 12, - 19, - 3, - 5, - 2, - 3 - ], - "backgroundColor": [ - "rgba(255, 99, 132, 0.2)", - "rgba(54, 162, 235, 0.2)", - "rgba(255, 206, 86, 0.2)", - "rgba(75, 192, 192, 0.2)", - "rgba(153, 102, 255, 0.2)", - "rgba(255, 159, 64, 0.2)" - ], - "borderColor": [ - "rgba(255,99,132,1)", - "rgba(54, 162, 235, 1)", - "rgba(255, 206, 86, 1)", - "rgba(75, 192, 192, 1)", - "rgba(153, 102, 255, 1)", - "rgba(255, 159, 64, 1)" - ], - "borderWidth": 1 - } - ] - }, - "options": {} - } - ``` - -## Radar Chart - -```chart -{ - "type": "radar", - "data": { - "labels": [ - "Eating", - "Drinking", - "Sleeping", - "Designing", - "Coding", - "Cycling", - "Running" - ], - "datasets": [ - { - "label": "My First dataset", - "backgroundColor": "rgba(179,181,198,0.2)", - "borderColor": "rgba(179,181,198,1)", - "pointBackgroundColor": "rgba(179,181,198,1)", - "pointBorderColor": "#fff", - "pointHoverBackgroundColor": "#fff", - "pointHoverBorderColor": "rgba(179,181,198,1)", - "data": [ - 65, - 59, - 90, - 81, - 56, - 55, - 40 - ] - }, - { - "label": "My Second dataset", - "backgroundColor": "rgba(255,99,132,0.2)", - "borderColor": "rgba(255,99,132,1)", - "pointBackgroundColor": "rgba(255,99,132,1)", - "pointBorderColor": "#fff", - "pointHoverBackgroundColor": "#fff", - "pointHoverBorderColor": "rgba(255,99,132,1)", - "data": [ - 28, - 48, - 40, - 19, - 96, - 27, - 100 - ] - } - ] - }, - "options": {} -} -``` - -**markdown:** - - ```chart - { - "type": "radar", - "data": { - "labels": [ - "Eating", - "Drinking", - "Sleeping", - "Designing", - "Coding", - "Cycling", - "Running" - ], - "datasets": [ - { - "label": "My First dataset", - "backgroundColor": "rgba(179,181,198,0.2)", - "borderColor": "rgba(179,181,198,1)", - "pointBackgroundColor": "rgba(179,181,198,1)", - "pointBorderColor": "#fff", - "pointHoverBackgroundColor": "#fff", - "pointHoverBorderColor": "rgba(179,181,198,1)", - "data": [ - 65, - 59, - 90, - 81, - 56, - 55, - 40 - ] - }, - { - "label": "My Second dataset", - "backgroundColor": "rgba(255,99,132,0.2)", - "borderColor": "rgba(255,99,132,1)", - "pointBackgroundColor": "rgba(255,99,132,1)", - "pointBorderColor": "#fff", - "pointHoverBackgroundColor": "#fff", - "pointHoverBorderColor": "rgba(255,99,132,1)", - "data": [ - 28, - 48, - 40, - 19, - 96, - 27, - 100 - ] - } - ] - }, - "options": {} - } - ``` - -## Polar Area Chart - -```chart -{ - "type": "polarArea", - "data": { - "datasets": [ - { - "data": [ - 11, - 16, - 7, - 3, - 14 - ], - "backgroundColor": [ - "#FF6384", - "#4BC0C0", - "#FFCE56", - "#E7E9ED", - "#36A2EB" - ], - "label": "My dataset" - } - ], - "labels": [ - "Red", - "Green", - "Yellow", - "Grey", - "Blue" - ] - }, - "options": {} -} -``` - -**markdown:** - - ```chart - { - "type": "polarArea", - "data": { - "datasets": [ - { - "data": [ - 11, - 16, - 7, - 3, - 14 - ], - "backgroundColor": [ - "#FF6384", - "#4BC0C0", - "#FFCE56", - "#E7E9ED", - "#36A2EB" - ], - "label": "My dataset" - } - ], - "labels": [ - "Red", - "Green", - "Yellow", - "Grey", - "Blue" - ] - }, - "options": {} - } - ``` - -## Pie Chart - -```chart -{ - "type": "pie", - "data": { - "labels": [ - "Red", - "Blue", - "Yellow" - ], - "datasets": [ - { - "data": [ - 300, - 50, - 100 - ], - "backgroundColor": [ - "#FF6384", - "#36A2EB", - "#FFCE56" - ], - "hoverBackgroundColor": [ - "#FF6384", - "#36A2EB", - "#FFCE56" - ] - } - ] - }, - "options": {} -} -``` - -**markdown:** - - ```chart - { - "type": "pie", - "data": { - "labels": [ - "Red", - "Blue", - "Yellow" - ], - "datasets": [ - { - "data": [ - 300, - 50, - 100 - ], - "backgroundColor": [ - "#FF6384", - "#36A2EB", - "#FFCE56" - ], - "hoverBackgroundColor": [ - "#FF6384", - "#36A2EB", - "#FFCE56" - ] - } - ] - }, - "options": {} - } - ``` - -## Doughnut Chart - -```chart -{ - "type": "doughnut", - "data": { - "labels": [ - "Red", - "Blue", - "Yellow" - ], - "datasets": [ - { - "data": [ - 300, - 50, - 100 - ], - "backgroundColor": [ - "#FF6384", - "#36A2EB", - "#FFCE56" - ], - "hoverBackgroundColor": [ - "#FF6384", - "#36A2EB", - "#FFCE56" - ] - } - ] - }, - "options": {} -} -``` - -**markdown:** - - ```chart - { - "type": "doughnut", - "data": { - "labels": [ - "Red", - "Blue", - "Yellow" - ], - "datasets": [ - { - "data": [ - 300, - 50, - 100 - ], - "backgroundColor": [ - "#FF6384", - "#36A2EB", - "#FFCE56" - ], - "hoverBackgroundColor": [ - "#FF6384", - "#36A2EB", - "#FFCE56" - ] - } - ] - }, - "options": {} - } - ``` - -## Bubble Chart - -```chart -{ - "type": "bubble", - "data": { - "datasets": [ - { - "label": "First Dataset", - "data": [ - { - "x": 20, - "y": 30, - "r": 15 - }, - { - "x": 40, - "y": 10, - "r": 10 - } - ], - "backgroundColor": "#FF6384", - "hoverBackgroundColor": "#FF6384" - } - ] - }, - "options": {} -} -``` - -**markdown:** - - ```chart - { - "type": "bubble", - "data": { - "datasets": [ - { - "label": "First Dataset", - "data": [ - { - "x": 20, - "y": 30, - "r": 15 - }, - { - "x": 40, - "y": 10, - "r": 10 - } - ], - "backgroundColor": "#FF6384", - "hoverBackgroundColor": "#FF6384" - } - ] - }, - "options": {} - } - ``` diff --git a/docs/_posts/2017-06-06-mermaid.md b/docs/_posts/2017-06-06-mermaid.md deleted file mode 100644 index 22b5d47..0000000 --- a/docs/_posts/2017-06-06-mermaid.md +++ /dev/null @@ -1,122 +0,0 @@ ---- -title: TeXt - Mermaid -key: 20170606 -tags: TeXt -mermaid: true ---- - -```mermaid -graph TB; - A[Do you have a problem in your life?] - B[Then don't worry] - C[Can you do something about it?] - A--no-->B; - A--yes-->C; - C--no-->B; - C--yes-->B; -``` - - - -You need set `mermaid: true` in the *_config.yml* or the markdown’s front matter to **enable** it. -{:.warning} - -[Documentation](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/markdown-enhancements#mermaid) - -Generation of diagrams and flowcharts from text in a similar manner as markdown. - -Ever wanted to simplify documentation and avoid heavy tools like Visio when explaining your code? - -This is why [mermaid](https://mermaidjs.github.io/) was born, a simple markdown-like script language for generating charts from text via javascript. - -## Flowchart - -```mermaid -graph TD; - A-->B; - A-->C; - B-->D; - C-->D; -``` - -**markdown:** - - ```mermaid - graph TD; - A-->B; - A-->C; - B-->D; - C-->D; - ``` - -## Sequence Diagram - -```mermaid -sequenceDiagram - participant Alice - participant Bob - Alice->John: Hello John, how are you? - loop Healthcheck - John->John: Fight against hypochondria - end - Note right of John: Rational thoughts
prevail... - John-->Alice: Great! - John->Bob: How about you? - Bob-->John: Jolly good! -``` - -**markdown:** - - ```mermaid - sequenceDiagram - participant Alice - participant Bob - Alice->John: Hello John, how are you? - loop Healthcheck - John->John: Fight against hypochondria - end - Note right of John: Rational thoughts
prevail... - John-->Alice: Great! - John->Bob: How about you? - Bob-->John: Jolly good! - ``` - -## Gant Diagrams - -```mermaid -gantt - dateFormat YYYY-MM-DD - title Adding GANTT diagram functionality to mermaid - section A section - Completed task :done, des1, 2014-01-06,2014-01-08 - Active task :active, des2, 2014-01-09, 3d - Future task : des3, after des2, 5d - Future task2 : des4, after des3, 5d - section Critical tasks - Completed task in the critical line :crit, done, 2014-01-06,24h - Implement parser and jison :crit, done, after des1, 2d - Create tests for parser :crit, active, 3d - Future task in critical line :crit, 5d - Create tests for renderer :2d - Add to mermaid :1d -``` - -**markdown:** - - ```mermaid - gantt - dateFormat YYYY-MM-DD - title Adding GANTT diagram functionality to mermaid - section A section - Completed task :done, des1, 2014-01-06,2014-01-08 - Active task :active, des2, 2014-01-09, 3d - Future task : des3, after des2, 5d - Future task2 : des4, after des3, 5d - section Critical tasks - Completed task in the critical line :crit, done, 2014-01-06,24h - Implement parser and jison :crit, done, after des1, 2d - Create tests for parser :crit, active, 3d - Future task in critical line :crit, 5d - Create tests for renderer :2d - Add to mermaid - ``` diff --git a/docs/_posts/2017-07-07-mathjax.md b/docs/_posts/2017-07-07-mathjax.md deleted file mode 100644 index 5f8dcc2..0000000 --- a/docs/_posts/2017-07-07-mathjax.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -title: TeXt - MathJax -key: 20170707 -tags: TeXt -mathjax: true -mathjax_autoNumber: true ---- - -When $$a \ne 0$$, there are two solutions to $$ax^2 + bx + c = 0$$ and they are - -$$x_1 = {-b + \sqrt{b^2-4ac} \over 2a}$$ - -$$x_2 = {-b - \sqrt{b^2-4ac} \over 2a} \notag$$ - - - -You need set `mathjax: true` in the *_config.yml* or the markdown’s front matter to **enable** it. -{:.warning} - -**After MathJax enabled**, you can set `mathjax_autoNumber: true` to have equations be numbered automatically, You can use `\notag` or `\nonumber` to prevent individual equations from being numbered. -{:.info} - -[Documentation](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/markdown-enhancements#mathjax) - -**markdown:** - -```tex -When $$a \ne 0$$, there are two solutions to $$ax^2 + bx + c = 0$$ and they are -$$x_1 = {-b + \sqrt{b^2-4ac} \over 2a}$$ -$$x_2 = {-b - \sqrt{b^2-4ac} \over 2a} \notag$$ -``` - -**front matter:** - - --- - ... - mathjax: true - mathjax_autoNumber: true - --- diff --git a/docs/_posts/2017-08-02-extensions.md b/docs/_posts/2017-08-02-extensions.md deleted file mode 100644 index 23d0fe6..0000000 --- a/docs/_posts/2017-08-02-extensions.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: TeXt - Extensions -key: 20170802 -tags: TeXt ---- - -With the help of extensions, you can easily add **audios**, **videos**, **slides** and **demos** in your posts. - -
{%- include extensions/ted.html id='emily_esfahani_smith_there_s_more_to_life_than_being_happy' -%}
- - - -[Documentation](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/extensions) - -## Audio - -### SoundCloud - -
{%- include extensions/soundcloud.html id='313627932' -%}
- -### Netease Cloud Music (网易云音乐) - -Available in Chinese mainland. - -
{%- include extensions/netease-cloud-music.html id='413812448' -%}
- -## Video - -### YouTube - -
{%- include extensions/youtube.html id='wbY97-hdD5c' -%}
- -### TED - -
{%- include extensions/ted.html id='emily_esfahani_smith_there_s_more_to_life_than_being_happy' -%}
- -### bilibili (哔哩哔哩) - -
{%- include extensions/bilibili.html id='11091080' -%}
- - -## Slide - -### SlideShare - -
{%- include extensions/slideshare.html id='u9L9zDsqEWNKE1' -%}
- -## Demos - -### CodePen - -
{%- include extensions/codepen.html user='kitian616' hash='aQmWZG' default_tab='html,result' -%}
diff --git a/docs/_posts/2017-08-08-additional-styles.md b/docs/_posts/2017-08-08-additional-styles.md deleted file mode 100644 index 7527aa9..0000000 --- a/docs/_posts/2017-08-08-additional-styles.md +++ /dev/null @@ -1,100 +0,0 @@ ---- -title: TeXt - Additional Styles -key: 20170808 -tags: TeXt ---- - -Success! -{:.success} - -`success`{:.success} `info`{:.info} `warning`{:.warning} `error`{:.error} - -
-
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_rounded"){:.rounded} -
-
-![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_circle+shadow"){:.circle.shadow} -
-
-
- -
-
-
-
CLICK ME
-
-
-
CLICK ME
-
-
-
CLICK ME
-
-
-
CLICK ME
-
-
-
- - - -[Documentation](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/additional-styles) - -## Alert - -Success Text. -{:.success} - -Info Text. -{:.info} - -Warning Text. -{:.warning} - -Error Text. -{:.error} - -## Tag - -`success`{:.success} - -`info`{:.info} - -`warning`{:.warning} - -`error`{:.error} - -## Image - -| `Border` | `Shadow` | -| ---- | ---- | -| ![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_border"){:.border} | ![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_shadow"){:.shadow} | - -| `Rounded` | `Circle` | -| ---- | ---- | -| ![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_rounded"){:.rounded} | ![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_circle"){:.circle} | - -### Mixture - -| `Border+Rounded` | `Circle+Shadow` | -| ---- | ---- | -| ![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_border+rounded"){:.border.rounded} | ![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_circle+shadow"){:.circle.shadow} | - -| `Rounded+Shadow` | `Circle+Border+Shadow` | -| ---- | ---- | -| ![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_rounded+shadow"){:.circle.rounded.shadow} | ![Image](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/image.jpg "Image_circle+border+shadow"){:.circle.border.shadow} - -## Extra - -| Name | Description | -| ---- | ---- | -| Spacing | [Doc](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/spacing) | -| Grid | [Doc](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/grid) | -| Icons | [Doc](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/icons) | -| Image | [Doc](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/image) | -| Button | [Doc](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/button) | -| Item | [Doc](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/item) | -| Card | [Doc](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/card) | -| Hero | [Doc](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/hero) | -| Swiper | [Doc](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/swiper) | diff --git a/docs/_posts/2019-10-09-what-next.md b/docs/_posts/2019-10-09-what-next.md deleted file mode 100644 index 9d300cd..0000000 --- a/docs/_posts/2019-10-09-what-next.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: Blog - What's NEXT -key: 20101009 -tags: Blog ---- - -Dark Mode is cool, and TeXt is supporting it. - -![Dark Mode](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/docs/assets/images/blog/dark-mode.gif) - - - -Trying to use [PostCSS](https://github.com/postcss/postcss) for CSS Variable Polyfill and Auto Prefix. -{:.info} - -It is developing on `dev` branch, you can run `git checkout dev` to switch to this branch. - -For now, ONLY `default` skin supports Dark Mode. diff --git a/docs/_sample_articles/1.1-brief.md b/docs/_sample_articles/1.1-brief.md deleted file mode 100644 index 455f13d..0000000 --- a/docs/_sample_articles/1.1-brief.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -layout: articles -title: Articles - Brief -permalink: /articles/brief.html -key: articles-brief -cover: /docs/assets/images/axure/articles-brief.jpg -articles: - data_source: site.sample_page - type: brief ---- - -
- ---- - -Brief article list. - - - -**front matter:** - - --- - layout: articles - title: Articles - Brief - articles: - data_source: site.sample_page - type: brief - --- - -
diff --git a/docs/_sample_articles/1.2-brief-info.md b/docs/_sample_articles/1.2-brief-info.md deleted file mode 100644 index 72966ca..0000000 --- a/docs/_sample_articles/1.2-brief-info.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -layout: articles -title: Articles - Brief (Info) -permalink: /articles/brief-info.html -key: articles-brief-info -cover: /docs/assets/images/axure/articles-brief-info.jpg -articles: - data_source: site.sample_page - type: brief - show_info: true ---- - -
- ---- - -Brief article list with info. - - - -**front matter:** - - --- - layout: articles - title: Articles - Brief (Info) - articles: - data_source: site.sample_page - type: brief - show_info: true - --- - -
diff --git a/docs/_sample_articles/2.1-item-excerpt-readmore-info.md b/docs/_sample_articles/2.1-item-excerpt-readmore-info.md deleted file mode 100644 index 52be54a..0000000 --- a/docs/_sample_articles/2.1-item-excerpt-readmore-info.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -layout: articles -title: Articles - Item (Excerpt + Read More + Info) -permalink: /articles/item-excerpt-readmore-info.html -key: articles-item-excerpt-readmore-info -cover: /docs/assets/images/axure/articles-item-excerpt-readmore-info.jpg -articles: - data_source: site.sample_page - show_cover: false - show_excerpt: true - show_readmore: true - show_info: true ---- - -
- ---- - -Article list with excerpt, read more link and info. - - - -**front matter:** - - --- - layout: articles - title: Articles - Item (Excerpt + Read More + Info) - articles: - data_source: site.sample_page - show_cover: false - show_excerpt: true - show_readmore: true - show_info: true - --- - -
diff --git a/docs/_sample_articles/2.2-item-cover.md b/docs/_sample_articles/2.2-item-cover.md deleted file mode 100644 index f9c38e3..0000000 --- a/docs/_sample_articles/2.2-item-cover.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -layout: articles -title: Articles - Item (Cover) -permalink: /articles/item-cover.html -key: articles-item-cover -cover: /docs/assets/images/axure/articles-item-cover.jpg -articles: - data_source: site.sample_page ---- - -
- ---- - -Article list with cover. - - - -**front matter:** - - --- - layout: articles - title: Articles - Item (Cover) - articles: - data_source: site.sample_page - --- - -
diff --git a/docs/_sample_articles/2.3-item-cover-excerpt.md b/docs/_sample_articles/2.3-item-cover-excerpt.md deleted file mode 100644 index b5bbe41..0000000 --- a/docs/_sample_articles/2.3-item-cover-excerpt.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -layout: articles -title: Articles - Item (Cover + Excerpt) -permalink: /articles/item-cover-excerpt.html -key: articles-item-cover-excerpt -cover: /docs/assets/images/axure/articles-item-cover-excerpt.jpg -articles: - data_source: site.sample_page - show_excerpt: true ---- - -
- ---- - -Article list with cover and excerpt. - - - -**front matter:** - - --- - layout: articles - title: Articles - Item (Cover + Excerpt) - articles: - data_source: site.sample_page - show_excerpt: true - --- - -
diff --git a/docs/_sample_articles/2.4-item-cover-excerpt-readmore.md b/docs/_sample_articles/2.4-item-cover-excerpt-readmore.md deleted file mode 100644 index 01bd47a..0000000 --- a/docs/_sample_articles/2.4-item-cover-excerpt-readmore.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -layout: articles -title: Articles - Item (Cover + Excerpt + Read More) -permalink: /articles/item-cover-excerpt-readmore.html -key: articles-item-cover-excerpt-readmore -cover: /docs/assets/images/axure/articles-item-cover-excerpt-readmore.jpg -articles: - data_source: site.sample_page - show_excerpt: true - show_readmore: true ---- - -
- ---- - -Article list with cover, excerpt and read more link. - - - -**front matter:** - - --- - layout: articles - title: Articles - Item (Cover + Excerpt + Read More) - articles: - data_source: site.sample_page - show_excerpt: true - show_readmore: true - --- - -
diff --git a/docs/_sample_articles/2.5-item-cover-excerpt-readmore-info.md b/docs/_sample_articles/2.5-item-cover-excerpt-readmore-info.md deleted file mode 100644 index 54d8c52..0000000 --- a/docs/_sample_articles/2.5-item-cover-excerpt-readmore-info.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -layout: articles -title: Articles - Item (Cover + Excerpt + Read More + Info) -permalink: /articles/item-cover-excerpt-readmore-info.html -key: articles-item-cover-excerpt-readmore-info -cover: /docs/assets/images/axure/articles-item-cover-excerpt-readmore-info.jpg -articles: - data_source: site.sample_page - show_excerpt: true - show_readmore: true - show_info: true ---- - -
- ---- - -Article list with cover, excerpt, read more link and info. - - - -**front matter:** - - --- - layout: articles - title: Articles - Item (Cover + Excerpt + Read More + Info) - articles: - data_source: site.sample_page - show_excerpt: true - show_readmore: true - show_info: true - --- - -
diff --git a/docs/_sample_articles/3.1-grid.md b/docs/_sample_articles/3.1-grid.md deleted file mode 100644 index 3a4339f..0000000 --- a/docs/_sample_articles/3.1-grid.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -layout: articles -title: Articles - Grid -permalink: /articles/grid.html -key: articles-grid -cover: /docs/assets/images/axure/articles-grid.jpg -articles: - data_source: site.sample_page - type: grid ---- - -
- ---- - -Article list with grid layout. - - - -**front matter:** - - --- - layout: articles - title: Articles - Grid - articles: - data_source: site.sample_page - type: grid - --- - -
diff --git a/docs/_sample_articles/3.2-grid-small.md b/docs/_sample_articles/3.2-grid-small.md deleted file mode 100644 index af69693..0000000 --- a/docs/_sample_articles/3.2-grid-small.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -layout: articles -title: Articles - Grid (Small Size) -permalink: /articles/grid-small.html -key: articles-grid-small -cover: /docs/assets/images/axure/articles-grid-small.jpg -articles: - data_source: site.sample_page - type: grid - size: sm ---- - -
- ---- - -Article list with grid layout in small size. - - - -**front matter:** - - --- - layout: articles - title: Articles - Grid (Small Size) - articles: - data_source: site.sample_page - type: grid - size: sm - --- - -
diff --git a/docs/_sample_languages/1-english.md b/docs/_sample_languages/1-english.md deleted file mode 100644 index 8bf7f80..0000000 --- a/docs/_sample_languages/1-english.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: English -key: lang-en -permalink: /languages/english.html -cover: /docs/assets/images/languages/lang-en.jpg -lang: en ---- - -English. - - - -*_config.yml* or front matter: - -```yml -lang: en -lang: en-GB -lang: en-US -lang: en-CA -lang: en-AU -``` diff --git a/docs/_sample_languages/2-chinese-simplified.md b/docs/_sample_languages/2-chinese-simplified.md deleted file mode 100644 index 583a4ab..0000000 --- a/docs/_sample_languages/2-chinese-simplified.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: 简体中文 (Simplified Chinese) -key: lang-zh-hans -permalink: /languages/chinese-simplified.html -cover: /docs/assets/images/languages/lang-zh.jpg -lang: zh-Hans -header: - theme: dark - background: '#612a1f' -article_header: - type: cover - image: - src: /docs/assets/images/languages/lang-image-zh-hans.jpg ---- - -简体中文。 - - - - - -*_config.yml* or front matter: - -```yml -lang: zh-Hans -lang: zh -lang: zh-CN -lang: zh-SG -```` - -
-> 关关雎鸠,在河之洲。 -> -> 窈窕淑女,君子好逑。 -> -> ——《诗经·国风·周南·关雎》 -
diff --git a/docs/_sample_languages/3-chinese-traditional.md b/docs/_sample_languages/3-chinese-traditional.md deleted file mode 100644 index 083ccc7..0000000 --- a/docs/_sample_languages/3-chinese-traditional.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 繁體中文 (Traditional Chinese) -key: lang-zh-hant -permalink: /languages/chinese-traditional.html -cover: /docs/assets/images/languages/lang-zh.jpg -lang: zh-Hant -header: - theme: dark - background: '#41555d' -article_header: - type: cover - image: - src: /docs/assets/images/languages/lang-image-zh-hant.jpg ---- - -繁體中文。 - - - - - -*_config.yml* or front matter: - -```yml -lang: zh-Hant -lang: zh-TW -lang: zh-HK -``` - -
-> 關關雎鳩,在河之洲。 -> -> 窈窕淑女,君子好逑。 -> -> ——《詩經·國風·周南·關雎》 -
diff --git a/docs/_sample_languages/4-korean.md b/docs/_sample_languages/4-korean.md deleted file mode 100644 index 7944317..0000000 --- a/docs/_sample_languages/4-korean.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: 한국어 (Korean) -key: lang-ko -permalink: /languages/korean.html -cover: /docs/assets/images/languages/lang-ko.jpg -lang: ko ---- - -한국어. - - - -*_config.yml* or front matter: - -```yml -lang: ko -lang: ko-KR -``` diff --git a/docs/_sample_languages/5-french.md b/docs/_sample_languages/5-french.md deleted file mode 100644 index 1cc8ab4..0000000 --- a/docs/_sample_languages/5-french.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -title: Français (French) -key: lang-fr -permalink: /languages/french.html -cover: /docs/assets/images/languages/lang-fr.jpg -lang: fr ---- - -Français. - - - -*_config.yml* or front matter: - -```yml -lang: fr -lang: fr-BE -lang: fr-CA -lang: fr-CH -lang: fr-FR -lang: fr-LU -``` diff --git a/docs/_sample_page/1.1-single.md b/docs/_sample_page/1.1-single.md deleted file mode 100644 index 1156df7..0000000 --- a/docs/_sample_page/1.1-single.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -layout: article -title: Page - Single -permalink: /page/single.html -key: page-single -cover: /docs/assets/images/axure/page-single.jpg ---- - -A post with a single column. - - - -**front matter:** - - --- - layout: article - title: Page - Single - --- diff --git a/docs/_sample_page/1.2-aside.md b/docs/_sample_page/1.2-aside.md deleted file mode 100644 index a60ed29..0000000 --- a/docs/_sample_page/1.2-aside.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -layout: article -title: Page - Aside -permalink: /page/aside.html -key: page-aside -cover: /docs/assets/images/axure/page-aside.jpg -aside: - toc: true ---- - -A post with aside on the right. - - - -**front matter:** - - --- - layout: article - title: Page - Aside - aside: - toc: true - --- - -## Header 1 - -### Header 1.1 - -### Header 1.2 - -## Header 2 - -### Header 2.1 - -## Header 3 diff --git a/docs/_sample_page/1.3-sidebar.md b/docs/_sample_page/1.3-sidebar.md deleted file mode 100644 index 6b118b2..0000000 --- a/docs/_sample_page/1.3-sidebar.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -layout: article -title: Page - Sidebar -permalink: /page/sidebar.html -key: page-sidebar -cover: /docs/assets/images/axure/page-sidebar.jpg -sidebar: - nav: layouts ---- - -A post with a left sidebar. - - - -**front matter:** - - --- - layout: article - title: Page - Sidebar - sidebar: - nav: layouts - --- - -## Header 1 - -### Header 1.1 - -### Header 1.2 - -## Header 2 - -### Header 2.1 - -## Header 3 diff --git a/docs/_sample_page/1.4-sidebar+asdie.md b/docs/_sample_page/1.4-sidebar+asdie.md deleted file mode 100644 index f29f49c..0000000 --- a/docs/_sample_page/1.4-sidebar+asdie.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -layout: article -title: Page - Sidebar (Aside) -permalink: /page/sidebar-aside.html -key: page-sidebar-aside -cover: /docs/assets/images/axure/page-sidebar-aside.jpg -aside: - toc: true -sidebar: - nav: layouts ---- - -A post with a left sidebar. - - - -**front matter:** - - --- - layout: article - title: Page - Sidebar - aside: - toc: true - sidebar: - nav: layouts - --- - -## Header 1 - -### Header 1.1 - -### Header 1.2 - -## Header 2 - -### Header 2.1 - -## Header 3 diff --git a/docs/_sample_page/2.1-article-header-overlay-background-fill.md b/docs/_sample_page/2.1-article-header-overlay-background-fill.md deleted file mode 100644 index 2fc3777..0000000 --- a/docs/_sample_page/2.1-article-header-overlay-background-fill.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -layout: article -title: Page - Article Header Overlay Background Fill -permalink: /page/article-header-overlay-background-fill.html -key: page-article-header-overlay-background-fill -cover: /docs/assets/images/axure/page-article-header-overlay-background-fill.jpg -article_header: - type: overlay - theme: dark - background_color: '#123' - background_image: false ---- - -A post has an article header overlay with a solid background color (#123). - - - -**front matter:** - - --- - layout: article - title: Page - Article Header Overlay Background Fill - article_header: - type: overlay - theme: dark - background_color: '#123' - background_image: false - --- diff --git a/docs/_sample_page/2.2-article-header-overlay-background-image.md b/docs/_sample_page/2.2-article-header-overlay-background-image.md deleted file mode 100644 index c1acac1..0000000 --- a/docs/_sample_page/2.2-article-header-overlay-background-image.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -layout: article -title: Page - Article Header Overlay Background Image -permalink: /page/article-header-overlay-background-image.html -key: page-article-header-overlay-background-image -cover: /docs/assets/images/axure/page-article-header-overlay-background-image.jpg -article_header: - type: overlay - theme: dark - background_color: '#203028' - background_image: - gradient: 'linear-gradient(135deg, rgba(34, 139, 87, .4), rgba(139, 34, 139, .4))' - src: /docs/assets/images/cover3.jpg ---- - -A post has an article header overlay with a background image. - - - -**front matter:** - - --- - layout: article - title: Page - Article Header Overlay Background Image - article_header: - type: overlay - theme: dark - background_color: '#203028' - background_image: - gradient: 'linear-gradient(135deg, rgba(34, 139, 87 , .4), rgba(139, 34, 139, .4))' - src: /docs/assets/images/cover3.jpg - --- diff --git a/docs/_sample_page/2.5-article-header-cover-image.md b/docs/_sample_page/2.5-article-header-cover-image.md deleted file mode 100644 index 3ceaabc..0000000 --- a/docs/_sample_page/2.5-article-header-cover-image.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -layout: article -title: Page - Article Header Image -permalink: /page/article-header-cover-image.html -key: page-article-header-cover-image -cover: /docs/assets/images/axure/page-article-header-cover-image.jpg -article_header: - type: cover - image: - src: /docs/assets/images/cover2.jpg ---- - -A post has an image article header. - - - -**front matter:** - - --- - layout: article - title: Page - Article Header Image - article_header: - type: cover - image: - src: /docs/assets/images/cover2.jpg - --- diff --git a/docs/_sample_page/2.7-article-header-overlay-background-image-header-background.md b/docs/_sample_page/2.7-article-header-overlay-background-image-header-background.md deleted file mode 100644 index 079dcc6..0000000 --- a/docs/_sample_page/2.7-article-header-overlay-background-image-header-background.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -layout: article -title: Page - Article Header Overlay Background Image (Customized Header Background) -permalink: /page/article-header-overlay-background-image-header-background.html -key: page-article-header-overlay-background-image-HB -cover: /docs/assets/images/axure/page-article-header-overlay-background-image-header-background.jpg -header: - theme: dark - background: 'linear-gradient(135deg, rgb(34, 139, 87), rgb(139, 34, 139))' -article_header: - type: overlay - theme: dark - background_color: '#203028' - background_image: - gradient: 'linear-gradient(135deg, rgba(34, 139, 87, .4), rgba(139, 34, 139, .4))' - src: /docs/assets/images/cover3.jpg ---- - -A post has an article header overlay with a background image width customized header background. - - - - - -**front matter:** - - --- - layout: article - title: Page - Article Header Overlay Background Image (Customized Header Background) - header: - theme: dark - background: 'linear-gradient(135deg, rgb(34, 139, 87), rgb(139, 34, 139))' - article_header: - type: overlay - theme: dark - background_color: '#203028' - background_image: - gradient: 'linear-gradient(135deg, rgba(34, 139, 87 , .4), rgba(139, 34, 139, .4))' - src: /docs/assets/images/cover3.jpg - --- diff --git a/docs/_sample_page/2.8-article-header-cover-image-header-background.md b/docs/_sample_page/2.8-article-header-cover-image-header-background.md deleted file mode 100644 index 72c5cb5..0000000 --- a/docs/_sample_page/2.8-article-header-cover-image-header-background.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -layout: article -title: Page - Article Header Image (Customized Header Background) -permalink: /page/article-header-cover-image-header-background.html -key: page-article-header-cover-image-HB -cover: /docs/assets/images/axure/page-article-header-cover-image-header-background.jpg -header: - theme: dark - background: '#333' -article_header: - type: cover - image: - src: /docs/assets/images/cover2.jpg ---- - -A post has an image article header width customized header background. - - - - - -**front matter:** - - --- - layout: article - title: Page - Article Header Image (Customized Header Background) - header: - theme: dark - background: '#333' - article_header: - type: cover - image: - src: /docs/assets/images/cover2.jpg - --- diff --git a/docs/_sample_page/3.1-article-header-overlay-background-fill-immersive-translucent-header.md b/docs/_sample_page/3.1-article-header-overlay-background-fill-immersive-translucent-header.md deleted file mode 100644 index db27164..0000000 --- a/docs/_sample_page/3.1-article-header-overlay-background-fill-immersive-translucent-header.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -layout: article -title: Page - Article Header Overlay Background Fill (Immersive + Translucent Header) -permalink: /page/article-header-overlay-background-fill-immersive-translucent-header.html -key: page-article-header-overlay-background-fill-ITH -cover: /docs/assets/images/axure/page-article-header-overlay-background-fill-immersive-translucent-header.jpg -mode: immersive -header: - theme: dark -article_header: - type: overlay - theme: dark - background_color: '#123' - background_image: false ---- - -A post has an article header overlay with a solid background color (#123) in immersive mode with a translucent header. - - - - - -**front matter:** - - --- - layout: article - title: Page - Article Header Overlay Background Fill (Immersive + Translucent Header) - mode: immersive - header: - theme: dark - article_header: - type: overlay - theme: dark - background_color: '#123' - background_image: false - --- diff --git a/docs/_sample_page/3.2-article-header-overlay-background-image-immersive-translucent-header.md b/docs/_sample_page/3.2-article-header-overlay-background-image-immersive-translucent-header.md deleted file mode 100644 index 00dcc7e..0000000 --- a/docs/_sample_page/3.2-article-header-overlay-background-image-immersive-translucent-header.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -layout: article -title: Page - Article Header Overlay Background Image (Immersive + Translucent Header) -permalink: /page/article-header-overlay-background-image-immersive-translucent-header.html -key: page-article-header-overlay-background-image-ITH -cover: /docs/assets/images/axure/page-article-header-overlay-background-image-immersive-translucent-header.jpg -mode: immersive -header: - theme: dark -article_header: - type: overlay - theme: dark - background_color: '#203028' - background_image: - gradient: 'linear-gradient(135deg, rgba(34, 139,87 , .4), rgba(139, 34, 139, .4))' - src: /docs/assets/images/cover3.jpg ---- - -A post has an article header overlay with a background image in immersive mode with a translucent header. - - - - - -**front matter:** - - --- - layout: article - title: Page - Article Header Overlay Background Image (Immersive + Translucent Header) - mode: immersive - header: - theme: dark - article_header: - type: overlay - theme: dark - background_color: '#203028' - background_image: - gradient: 'linear-gradient(135deg, rgba(34, 139, 87 , .4), rgba(139, 34, 139, .4))' - src: /docs/assets/images/cover3.jpg - --- diff --git a/docs/_sample_page/3.5-article-header-cover-image-immersive-translucent-header.md b/docs/_sample_page/3.5-article-header-cover-image-immersive-translucent-header.md deleted file mode 100644 index 32440ab..0000000 --- a/docs/_sample_page/3.5-article-header-cover-image-immersive-translucent-header.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -layout: article -title: Page - Article Header Image (Immersive + Translucent Header) -permalink: /page/article-header-cover-image-immersive-translucent-header.html -key: page-article-header-cover-image-ITH -cover: /docs/assets/images/axure/page-article-header-cover-image-immersive-translucent-header.jpg -mode: immersive -header: - theme: dark -article_header: - type: cover - image: - src: /docs/assets/images/cover2.jpg ---- - -A post has an image article header in immersive mode with a translucent header. - - - - - -**front matter:** - - --- - layout: article - title: Page - Article Header Image (Immersive + Translucent Header) - mode: immersive - header: - theme: dark - article_header: - type: cover - image: - src: /docs/assets/images/cover2.jpg - --- diff --git a/docs/assets/images/3Fkufxcw2xd8HnaRJBNK4ccdtkUDyyNu4V.jpg b/docs/assets/images/3Fkufxcw2xd8HnaRJBNK4ccdtkUDyyNu4V.jpg deleted file mode 100644 index b6c421d..0000000 Binary files a/docs/assets/images/3Fkufxcw2xd8HnaRJBNK4ccdtkUDyyNu4V.jpg and /dev/null differ diff --git a/docs/assets/images/axure/articles-brief-info.jpg b/docs/assets/images/axure/articles-brief-info.jpg deleted file mode 100644 index 50be77c..0000000 Binary files a/docs/assets/images/axure/articles-brief-info.jpg and /dev/null differ diff --git a/docs/assets/images/axure/articles-brief.jpg b/docs/assets/images/axure/articles-brief.jpg deleted file mode 100644 index abb29d1..0000000 Binary files a/docs/assets/images/axure/articles-brief.jpg and /dev/null differ diff --git a/docs/assets/images/axure/articles-grid-small.jpg b/docs/assets/images/axure/articles-grid-small.jpg deleted file mode 100644 index 8596ea1..0000000 Binary files a/docs/assets/images/axure/articles-grid-small.jpg and /dev/null differ diff --git a/docs/assets/images/axure/articles-grid.jpg b/docs/assets/images/axure/articles-grid.jpg deleted file mode 100644 index 87d346f..0000000 Binary files a/docs/assets/images/axure/articles-grid.jpg and /dev/null differ diff --git a/docs/assets/images/axure/articles-item-cover-excerpt-readmore-info.jpg b/docs/assets/images/axure/articles-item-cover-excerpt-readmore-info.jpg deleted file mode 100644 index 2db0e75..0000000 Binary files a/docs/assets/images/axure/articles-item-cover-excerpt-readmore-info.jpg and /dev/null differ diff --git a/docs/assets/images/axure/articles-item-cover-excerpt-readmore.jpg b/docs/assets/images/axure/articles-item-cover-excerpt-readmore.jpg deleted file mode 100644 index 383ea3a..0000000 Binary files a/docs/assets/images/axure/articles-item-cover-excerpt-readmore.jpg and /dev/null differ diff --git a/docs/assets/images/axure/articles-item-cover-excerpt.jpg b/docs/assets/images/axure/articles-item-cover-excerpt.jpg deleted file mode 100644 index 618e3a7..0000000 Binary files a/docs/assets/images/axure/articles-item-cover-excerpt.jpg and /dev/null differ diff --git a/docs/assets/images/axure/articles-item-cover.jpg b/docs/assets/images/axure/articles-item-cover.jpg deleted file mode 100644 index 27438af..0000000 Binary files a/docs/assets/images/axure/articles-item-cover.jpg and /dev/null differ diff --git a/docs/assets/images/axure/articles-item-excerpt-readmore-info.jpg b/docs/assets/images/axure/articles-item-excerpt-readmore-info.jpg deleted file mode 100644 index a4397ad..0000000 Binary files a/docs/assets/images/axure/articles-item-excerpt-readmore-info.jpg and /dev/null differ diff --git a/docs/assets/images/axure/page-article-header-cover-image-header-background.jpg b/docs/assets/images/axure/page-article-header-cover-image-header-background.jpg deleted file mode 100644 index ea8a5c3..0000000 Binary files a/docs/assets/images/axure/page-article-header-cover-image-header-background.jpg and /dev/null differ diff --git a/docs/assets/images/axure/page-article-header-cover-image-immersive-translucent-header.jpg b/docs/assets/images/axure/page-article-header-cover-image-immersive-translucent-header.jpg deleted file mode 100644 index 7ee82ce..0000000 Binary files a/docs/assets/images/axure/page-article-header-cover-image-immersive-translucent-header.jpg and /dev/null differ diff --git a/docs/assets/images/axure/page-article-header-cover-image.jpg b/docs/assets/images/axure/page-article-header-cover-image.jpg deleted file mode 100644 index 6df747e..0000000 Binary files a/docs/assets/images/axure/page-article-header-cover-image.jpg and /dev/null differ diff --git a/docs/assets/images/axure/page-article-header-overlay-background-fill-immersive-translucent-header.jpg b/docs/assets/images/axure/page-article-header-overlay-background-fill-immersive-translucent-header.jpg deleted file mode 100644 index 1e4801f..0000000 Binary files a/docs/assets/images/axure/page-article-header-overlay-background-fill-immersive-translucent-header.jpg and /dev/null differ diff --git a/docs/assets/images/axure/page-article-header-overlay-background-fill.jpg b/docs/assets/images/axure/page-article-header-overlay-background-fill.jpg deleted file mode 100644 index 41a12f2..0000000 Binary files a/docs/assets/images/axure/page-article-header-overlay-background-fill.jpg and /dev/null differ diff --git a/docs/assets/images/axure/page-article-header-overlay-background-image-header-background.jpg b/docs/assets/images/axure/page-article-header-overlay-background-image-header-background.jpg deleted file mode 100644 index b6c5138..0000000 Binary files a/docs/assets/images/axure/page-article-header-overlay-background-image-header-background.jpg and /dev/null differ diff --git a/docs/assets/images/axure/page-article-header-overlay-background-image-immersive-translucent-header.jpg b/docs/assets/images/axure/page-article-header-overlay-background-image-immersive-translucent-header.jpg deleted file mode 100644 index f624d3b..0000000 Binary files a/docs/assets/images/axure/page-article-header-overlay-background-image-immersive-translucent-header.jpg and /dev/null differ diff --git a/docs/assets/images/axure/page-article-header-overlay-background-image.jpg b/docs/assets/images/axure/page-article-header-overlay-background-image.jpg deleted file mode 100644 index 724af9b..0000000 Binary files a/docs/assets/images/axure/page-article-header-overlay-background-image.jpg and /dev/null differ diff --git a/docs/assets/images/axure/page-aside.jpg b/docs/assets/images/axure/page-aside.jpg deleted file mode 100644 index a63a9a1..0000000 Binary files a/docs/assets/images/axure/page-aside.jpg and /dev/null differ diff --git a/docs/assets/images/axure/page-sidebar-aside.jpg b/docs/assets/images/axure/page-sidebar-aside.jpg deleted file mode 100644 index e84fa09..0000000 Binary files a/docs/assets/images/axure/page-sidebar-aside.jpg and /dev/null differ diff --git a/docs/assets/images/axure/page-sidebar.jpg b/docs/assets/images/axure/page-sidebar.jpg deleted file mode 100644 index 668dad4..0000000 Binary files a/docs/assets/images/axure/page-sidebar.jpg and /dev/null differ diff --git a/docs/assets/images/axure/page-single.jpg b/docs/assets/images/axure/page-single.jpg deleted file mode 100644 index aec72d4..0000000 Binary files a/docs/assets/images/axure/page-single.jpg and /dev/null differ diff --git a/docs/assets/images/blog/dark-mode.gif b/docs/assets/images/blog/dark-mode.gif deleted file mode 100644 index 71916e5..0000000 Binary files a/docs/assets/images/blog/dark-mode.gif and /dev/null differ diff --git a/docs/assets/images/cover1.jpg b/docs/assets/images/cover1.jpg deleted file mode 100644 index d1d5683..0000000 Binary files a/docs/assets/images/cover1.jpg and /dev/null differ diff --git a/docs/assets/images/cover2.jpg b/docs/assets/images/cover2.jpg deleted file mode 100644 index 4b492d6..0000000 Binary files a/docs/assets/images/cover2.jpg and /dev/null differ diff --git a/docs/assets/images/cover3.jpg b/docs/assets/images/cover3.jpg deleted file mode 100644 index 3f80ee0..0000000 Binary files a/docs/assets/images/cover3.jpg and /dev/null differ diff --git a/docs/assets/images/cover4.jpg b/docs/assets/images/cover4.jpg deleted file mode 100644 index fe4e30c..0000000 Binary files a/docs/assets/images/cover4.jpg and /dev/null differ diff --git a/docs/assets/images/docker.jpg b/docs/assets/images/docker.jpg deleted file mode 100644 index aee161f..0000000 Binary files a/docs/assets/images/docker.jpg and /dev/null differ diff --git a/docs/assets/images/extensions-bilibili.jpg b/docs/assets/images/extensions-bilibili.jpg deleted file mode 100644 index 85af410..0000000 Binary files a/docs/assets/images/extensions-bilibili.jpg and /dev/null differ diff --git a/docs/assets/images/extensions-codepen.jpg b/docs/assets/images/extensions-codepen.jpg deleted file mode 100644 index 7f714f8..0000000 Binary files a/docs/assets/images/extensions-codepen.jpg and /dev/null differ diff --git a/docs/assets/images/extensions-netease-cloud-music.jpg b/docs/assets/images/extensions-netease-cloud-music.jpg deleted file mode 100644 index 0298a01..0000000 Binary files a/docs/assets/images/extensions-netease-cloud-music.jpg and /dev/null differ diff --git a/docs/assets/images/extensions-slideshare.jpg b/docs/assets/images/extensions-slideshare.jpg deleted file mode 100644 index d3e92c6..0000000 Binary files a/docs/assets/images/extensions-slideshare.jpg and /dev/null differ diff --git a/docs/assets/images/extensions-soundclound.jpg b/docs/assets/images/extensions-soundclound.jpg deleted file mode 100644 index 125db88..0000000 Binary files a/docs/assets/images/extensions-soundclound.jpg and /dev/null differ diff --git a/docs/assets/images/extensions-ted.jpg b/docs/assets/images/extensions-ted.jpg deleted file mode 100644 index 25f1833..0000000 Binary files a/docs/assets/images/extensions-ted.jpg and /dev/null differ diff --git a/docs/assets/images/extensions-youtube.jpg b/docs/assets/images/extensions-youtube.jpg deleted file mode 100644 index e205c14..0000000 Binary files a/docs/assets/images/extensions-youtube.jpg and /dev/null differ diff --git a/docs/assets/images/github-fork.jpg b/docs/assets/images/github-fork.jpg deleted file mode 100644 index 045d69a..0000000 Binary files a/docs/assets/images/github-fork.jpg and /dev/null differ diff --git a/docs/assets/images/github-rename-repo.jpg b/docs/assets/images/github-rename-repo.jpg deleted file mode 100644 index a4a84e9..0000000 Binary files a/docs/assets/images/github-rename-repo.jpg and /dev/null differ diff --git a/docs/assets/images/image.jpg b/docs/assets/images/image.jpg deleted file mode 100644 index 3635bcc..0000000 Binary files a/docs/assets/images/image.jpg and /dev/null differ diff --git a/docs/assets/images/languages/lang-en.jpg b/docs/assets/images/languages/lang-en.jpg deleted file mode 100644 index 6144192..0000000 Binary files a/docs/assets/images/languages/lang-en.jpg and /dev/null differ diff --git a/docs/assets/images/languages/lang-fr.jpg b/docs/assets/images/languages/lang-fr.jpg deleted file mode 100644 index 0120960..0000000 Binary files a/docs/assets/images/languages/lang-fr.jpg and /dev/null differ diff --git a/docs/assets/images/languages/lang-image-zh-hans.jpg b/docs/assets/images/languages/lang-image-zh-hans.jpg deleted file mode 100644 index e7ae74c..0000000 Binary files a/docs/assets/images/languages/lang-image-zh-hans.jpg and /dev/null differ diff --git a/docs/assets/images/languages/lang-image-zh-hant.jpg b/docs/assets/images/languages/lang-image-zh-hant.jpg deleted file mode 100644 index 7b7911f..0000000 Binary files a/docs/assets/images/languages/lang-image-zh-hant.jpg and /dev/null differ diff --git a/docs/assets/images/languages/lang-ko.jpg b/docs/assets/images/languages/lang-ko.jpg deleted file mode 100644 index 80fbba1..0000000 Binary files a/docs/assets/images/languages/lang-ko.jpg and /dev/null differ diff --git a/docs/assets/images/languages/lang-zh.jpg b/docs/assets/images/languages/lang-zh.jpg deleted file mode 100644 index 06f5d31..0000000 Binary files a/docs/assets/images/languages/lang-zh.jpg and /dev/null differ diff --git a/docs/assets/images/leancloud-app-info.jpg b/docs/assets/images/leancloud-app-info.jpg deleted file mode 100644 index 2f04541..0000000 Binary files a/docs/assets/images/leancloud-app-info.jpg and /dev/null differ diff --git a/docs/assets/images/leancloud-authorization.jpg b/docs/assets/images/leancloud-authorization.jpg deleted file mode 100644 index d7d6558..0000000 Binary files a/docs/assets/images/leancloud-authorization.jpg and /dev/null differ diff --git a/docs/assets/images/leancloud-create-class-0.jpg b/docs/assets/images/leancloud-create-class-0.jpg deleted file mode 100644 index 4e65b6d..0000000 Binary files a/docs/assets/images/leancloud-create-class-0.jpg and /dev/null differ diff --git a/docs/assets/images/leancloud-create-class-1.jpg b/docs/assets/images/leancloud-create-class-1.jpg deleted file mode 100644 index d289937..0000000 Binary files a/docs/assets/images/leancloud-create-class-1.jpg and /dev/null differ diff --git a/docs/assets/images/realfavicongenerator-path.jpg b/docs/assets/images/realfavicongenerator-path.jpg deleted file mode 100644 index 91f2956..0000000 Binary files a/docs/assets/images/realfavicongenerator-path.jpg and /dev/null differ diff --git a/docs/assets/images/realfavicongenerator-result.jpg b/docs/assets/images/realfavicongenerator-result.jpg deleted file mode 100644 index 1f9da00..0000000 Binary files a/docs/assets/images/realfavicongenerator-result.jpg and /dev/null differ diff --git a/docs/assets/images/realfavicongenerator-select-favicon-picture.jpg b/docs/assets/images/realfavicongenerator-select-favicon-picture.jpg deleted file mode 100644 index 36fe771..0000000 Binary files a/docs/assets/images/realfavicongenerator-select-favicon-picture.jpg and /dev/null differ diff --git a/docs/assets/images/tip_alipay.jpg b/docs/assets/images/tip_alipay.jpg deleted file mode 100644 index 7c5c7bd..0000000 Binary files a/docs/assets/images/tip_alipay.jpg and /dev/null differ diff --git a/docs/assets/images/tip_paypal.jpg b/docs/assets/images/tip_paypal.jpg deleted file mode 100644 index 0d35773..0000000 Binary files a/docs/assets/images/tip_paypal.jpg and /dev/null differ diff --git a/docs/assets/images/tip_wechat.jpg b/docs/assets/images/tip_wechat.jpg deleted file mode 100644 index d9831e1..0000000 Binary files a/docs/assets/images/tip_wechat.jpg and /dev/null differ diff --git a/docs/landing.html b/docs/landing.html deleted file mode 100644 index 544e653..0000000 --- a/docs/landing.html +++ /dev/null @@ -1,97 +0,0 @@ ---- -layout: landing -title: TeXt Theme -excerpt: > - A super customizable Jekyll theme for personal site, team site, blog, project, documentation, etc. -permalink: /index.html - -article_header: - actions: - - text: Getting Started - type: error - url: /docs/en/quick-start - - text: Demo - type: outline-theme-dark - url: /test/ - height: 100vh - theme: dark - background_color: "#367a9a" - background_image: - gradient: "linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .6))" - src: /docs/assets/images/cover4.jpg -data: - sections: - - title: Fully Responsive - excerpt: This theme will look great on any device, no matter the size! - theme: dark - image: - src: /screenshots/TeXt-responsive.png - background_color: "#515151" - - title: Super Customizable - excerpt: Everything from the menus, sidebars, comments, and more can be configured or set with YAML Front Matter. - actions: - - text: See Examples - url: /samples.html - - text: Learn More - url: /docs/en/configuration - image: - src: /screenshots/TeXt-layouts.png - is_row: true - full_width: true - style: "max-width: 1200px;" - - title: Skins - excerpt: TeXt has 6 built-in skins, you can also set up your own skin. - image: - src: /screenshots/TeXt-skins.png - is_row: true - full_width: true - style: "max-width: 1000px;" - - title: Enhanced User Experience - children: - - title: Additional Styles - excerpt: TeXt offer some CSS classes for your page, including alert, tag, image, button, etc. - actions: - - text: Learn More - url: /docs/en/additional-styles - - title: Extensions - excerpt: Adding audios, videos, slides and demos to your page. - actions: - - text: Learn More - url: /docs/en/extensions - - title: Markdown Enhancements - excerpt: Using Mathjax, Mermaid and Charts in your page. - actions: - - text: Learn More - url: /docs/en/markdown-enhancements - - title: 100% Free - theme: dark - excerpt: Free to use however you want under the MIT License. Clone it, fork it, customize it, whatever! - actions: - - text: ' GitHub' - type: outline-theme-dark - url: https://github.com/kitian616/jekyll-TeXt-theme - background_color: "#515151" - - title: Tip Me - children: - - title: 'PayPal ' - image: - src: /docs/assets/images/tip_paypal.jpg - url: https://www.paypal.me/kitian616 - style: "max-width: 200px; max-height: 200px" - is_row: true - - title: 'WeChat ' - image: - src: /docs/assets/images/tip_wechat.jpg - style: "max-width: 200px; max-height: 200px" - is_row: true - - title: 'Alipay ' - image: - src: /docs/assets/images/tip_alipay.jpg - style: "max-width: 200px; max-height: 200px" - is_row: true - - title: 'Bitcoin ' - image: - src: /docs/assets/images/3Fkufxcw2xd8HnaRJBNK4ccdtkUDyyNu4V.jpg - style: "max-width: 200px; max-height: 200px" - content: '3Fkufxcw2xd8HnaRJBNK4ccdtkUDyyNu4V' ---- diff --git a/docs/samples.html b/docs/samples.html deleted file mode 100644 index 438e1e3..0000000 --- a/docs/samples.html +++ /dev/null @@ -1,21 +0,0 @@ ---- -layout: page -title: Samples -permalink: /samples.html ---- -
-
-

Page Layout

- {%- include article-list.html articles=site.sample_page type='grid' -%} -
- -
-

Articles(Home) Layout

- {%- include article-list.html articles=site.sample_articles type='grid' -%} -
- -
-

Languages

- {%- include article-list.html articles=site.sample_languages type='grid' size='sm' -%} -
-
diff --git a/package.json b/package.json deleted file mode 100644 index 0967ef4..0000000 --- a/package.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/screenshot.jpg b/screenshot.jpg deleted file mode 100644 index 1f5db3a..0000000 Binary files a/screenshot.jpg and /dev/null differ diff --git a/screenshots/TeXt-card.png b/screenshots/TeXt-card.png deleted file mode 100644 index e98239d..0000000 Binary files a/screenshots/TeXt-card.png and /dev/null differ diff --git a/screenshots/TeXt-details.png b/screenshots/TeXt-details.png deleted file mode 100644 index d33e3ab..0000000 Binary files a/screenshots/TeXt-details.png and /dev/null differ diff --git a/screenshots/TeXt-home.jpg b/screenshots/TeXt-home.jpg deleted file mode 100644 index 1f5db3a..0000000 Binary files a/screenshots/TeXt-home.jpg and /dev/null differ diff --git a/screenshots/TeXt-home.png b/screenshots/TeXt-home.png deleted file mode 100644 index a2d3527..0000000 Binary files a/screenshots/TeXt-home.png and /dev/null differ diff --git a/screenshots/TeXt-layouts.png b/screenshots/TeXt-layouts.png deleted file mode 100644 index d33e3ab..0000000 Binary files a/screenshots/TeXt-layouts.png and /dev/null differ diff --git a/screenshots/TeXt-responsive.png b/screenshots/TeXt-responsive.png deleted file mode 100644 index 713c98f..0000000 Binary files a/screenshots/TeXt-responsive.png and /dev/null differ diff --git a/screenshots/TeXt-skins.png b/screenshots/TeXt-skins.png deleted file mode 100644 index 2a64617..0000000 Binary files a/screenshots/TeXt-skins.png and /dev/null differ diff --git a/screenshots/TeXt-version-2.jpg b/screenshots/TeXt-version-2.jpg deleted file mode 100644 index 0b0ddf3..0000000 Binary files a/screenshots/TeXt-version-2.jpg and /dev/null differ diff --git a/screenshots/highlight_tomorrow-night-blue.png b/screenshots/highlight_tomorrow-night-blue.png deleted file mode 100644 index cd34cee..0000000 Binary files a/screenshots/highlight_tomorrow-night-blue.png and /dev/null differ diff --git a/screenshots/highlight_tomorrow-night-bright.png b/screenshots/highlight_tomorrow-night-bright.png deleted file mode 100644 index 717ec57..0000000 Binary files a/screenshots/highlight_tomorrow-night-bright.png and /dev/null differ diff --git a/screenshots/highlight_tomorrow-night-eighties.png b/screenshots/highlight_tomorrow-night-eighties.png deleted file mode 100644 index 29e5e18..0000000 Binary files a/screenshots/highlight_tomorrow-night-eighties.png and /dev/null differ diff --git a/screenshots/highlight_tomorrow-night.png b/screenshots/highlight_tomorrow-night.png deleted file mode 100644 index 2e09736..0000000 Binary files a/screenshots/highlight_tomorrow-night.png and /dev/null differ diff --git a/screenshots/highlight_tomorrow.png b/screenshots/highlight_tomorrow.png deleted file mode 100644 index 62e7f20..0000000 Binary files a/screenshots/highlight_tomorrow.png and /dev/null differ diff --git a/screenshots/skins_chocolate.jpg b/screenshots/skins_chocolate.jpg deleted file mode 100644 index 58a7ef7..0000000 Binary files a/screenshots/skins_chocolate.jpg and /dev/null differ diff --git a/screenshots/skins_dark.jpg b/screenshots/skins_dark.jpg deleted file mode 100644 index 25da566..0000000 Binary files a/screenshots/skins_dark.jpg and /dev/null differ diff --git a/screenshots/skins_default.jpg b/screenshots/skins_default.jpg deleted file mode 100644 index cd8a33d..0000000 Binary files a/screenshots/skins_default.jpg and /dev/null differ diff --git a/screenshots/skins_forest.jpg b/screenshots/skins_forest.jpg deleted file mode 100644 index 70d25ee..0000000 Binary files a/screenshots/skins_forest.jpg and /dev/null differ diff --git a/screenshots/skins_ocean.jpg b/screenshots/skins_ocean.jpg deleted file mode 100644 index f9a67c7..0000000 Binary files a/screenshots/skins_ocean.jpg and /dev/null differ diff --git a/screenshots/skins_orange.jpg b/screenshots/skins_orange.jpg deleted file mode 100644 index b9f03cf..0000000 Binary files a/screenshots/skins_orange.jpg and /dev/null differ diff --git a/test/404.html b/test/404.html deleted file mode 100644 index c4e870f..0000000 --- a/test/404.html +++ /dev/null @@ -1,3 +0,0 @@ ---- -layout: 404 ---- diff --git a/test/Gemfile b/test/Gemfile deleted file mode 100644 index cc21920..0000000 --- a/test/Gemfile +++ /dev/null @@ -1,7 +0,0 @@ -source "https://rubygems.org" - -# gem "jekyll-text-theme", path: "../" -gem "jekyll-text-theme" - -gem "tzinfo-data" -gem "wdm", "~> 0.1.0" if Gem.win_platform? diff --git a/test/_config.yml b/test/_config.yml deleted file mode 100644 index af1d04a..0000000 --- a/test/_config.yml +++ /dev/null @@ -1,225 +0,0 @@ -# Welcome to Jekyll! -# -# This config file is meant for settings that affect your whole blog, values -# which you are expected to set up once and rarely need to edit after that. -# For technical reasons, this file is *NOT* reloaded automatically when you use -# 'jekyll serve'. If you change this file, please restart the server process. - -## !USE TEXT THEME -theme: jekyll-text-theme # Gem-based Jekyll Themes -# remote_theme: kitian616/jekyll-TeXt-theme # Jekyll Remote Theme, see https://github.com/benbalter/jekyll-remote-theme for more information. -# -# ,--------. ,--. ,--. ,--. -# '--. .--',---. \ `.' /,-' '-. -# | | | .-. : .' \ '-. .-' -# | | \ --. / .'. \ | | -# `--' `----''--' '--' `--' -## => Site Settings -############################## -text_skin: default # "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 -description: > # this means to ignore newlines until "Language & timezone" - Your Site Description - - -## => Language and Timezone -############################## -lang: # the language of your site, default as "en" -timezone: # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the available values - - -## => Author and Social -############################## -author: - type : # "person" (default), "organization" - name : Your Name - url : - avatar : # path or url of avatar image (square) - bio : I am an amazing person. - email : - 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?... - googleplus: # "user_id" the last part of your profile url, e.g. https://plus.google.com/u/0/user_id - telegram : # "user_name" the last part of your profile url, e.g. https://t.me/user_name - medium : # "user_name" the last part of your profile url, e.g. https://medium.com/user_name - 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 - 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_tree: master - - -## => Paths -############################## -paths: - root : # title link url, "/" (default) - home : # home layout url, "/" (default) - archive : # "/archive.html" (default) - rss : # "/feed.xml" (default) - - -## => Post -############################## -## excerpt -excerpt_separator: - -## license -license: CC-BY-NC-4.0 # "CC-BY-4.0", "CC-BY-SA-4.0", "CC-BY-NC-4.0", "CC-BY-ND-4.0" - -## TOC -toc: - selectors: # "h1,h2,h3" (default) - - -## => Markdown Enhancements -############################## -## Mathjax -mathjax: # false (default), true -mathjax_autoNumber: # false (default), true - -## Mermaid -mermaid: # false (default), true - -## Chart -chart: # false (default), true - - -## => Paginate -############################## -paginate: 8 -paginate_path: /page:num # don't change this unless for special need - - -## => Sources -############################## -sources: # bootcdn (default), unpkg - - -## => Sharing -############################## -sharing: - provider: false # false (default), "addtoany", "addthis", "custom" - - ## AddThis - addthis: - id: # AddThis pubid, e.g. ra-5xxxxxxxxxxx - - -## => Comments -############################## -comments: - provider: false # false (default), "disqus", "gitalk", "valine", "custom" - - ## Disqus - disqus: - shortname: # the Disqus shortname for the site - - ## Gitalk - # please refer to https://github.com/gitalk/gitalk for more info. - gitalk: - clientID : # GitHub Application Client ID - clientSecret: # GitHub Application Client Secret - repository : # GitHub repo - owner : # GitHub repo owner - admin: # GitHub repo owner and collaborators, only these guys can initialize GitHub issues, IT IS A LIST. - # - your GitHub Id - - ## Valine - # please refer to https://valine.js.org/en/ for more info. - valine: - app_id : # LeanCloud App id - app_key : # LeanCloud App key - placeholder : # Prompt information - visitor : # false (default) - meta : # "[nick, mail, link]" (default) nickname, E-mail, Personal-site - - -## => Pageview -############################## -pageview: - provider: false # false (default), "leancloud", "custom" - - ## Leancloud - leancloud: - app_id : # LeanCloud App id - app_key : # LeanCloud App key - app_class : # LeanCloud App class - - -## => Search -############################## -search: - provider: default # "default" (default), false, "google", "custom" - - ## Google Custom Search Engine - google: - custom_search_engine_id: # Google Custom Search Engine ID - - -## => Analytics -############################## -analytics: - provider: false # false (default), "google", "custom" - - ## Google Analytics - google: - tracking_id : # Google Analytics id for the site - anonymize_ip: false # Anonymize IP tracking for Analytics - - -## => Build -############################## -markdown : kramdown -highlighter : rouge -permalink : date - -exclude: - - CHANGELOG.md - - HOW_TO_RELEASE.md - - Gemfile - - Gemfile.lock - - LICENSE - - README-*.md - - README.md - - gulpfile.js - - jekyll-text-theme.gemspec - - package-lock.json - - package.json - - /docs - - /node_modules - - /screenshots - - /test - - /vendor - -defaults: - - scope: - path: "" - type: posts - values: - layout: article - sharing: true - license: true - aside: - toc: true - show_edit_on_github: true - show_subscribe: true - pageview: true - - -## => Plugins -############################## -plugins: - - jekyll-feed - - jekyll-paginate - - jekyll-sitemap - - jemoji diff --git a/test/_data/authors.yml b/test/_data/authors.yml deleted file mode 100644 index e69de29..0000000 diff --git a/test/_data/licenses.yml b/test/_data/licenses.yml deleted file mode 100644 index 6729af5..0000000 --- a/test/_data/licenses.yml +++ /dev/null @@ -1,16 +0,0 @@ -CC-BY-4.0: - name: Attribution 4.0 International - url: https://creativecommons.org/licenses/by/4.0/ - image: https://i.creativecommons.org/l/by/4.0/88x31.png -CC-BY-SA-4.0: - name: Attribution-ShareAlike 4.0 International - url: https://creativecommons.org/licenses/by-sa/4.0/ - image: https://i.creativecommons.org/l/by-sa/4.0/88x31.png -CC-BY-NC-4.0: - name: Attribution-NonCommercial 4.0 International - url: https://creativecommons.org/licenses/by-nc/4.0/ - image: https://i.creativecommons.org/l/by-nc/4.0/88x31.png -CC-BY-ND-4.0: - name: Attribution-NoDerivatives 4.0 International - url: https://creativecommons.org/licenses/by-nd/4.0/ - image: https://i.creativecommons.org/l/by-nd/4.0/88x31.png diff --git a/test/_data/locale.yml b/test/_data/locale.yml deleted file mode 100644 index 52cd7b9..0000000 --- a/test/_data/locale.yml +++ /dev/null @@ -1,170 +0,0 @@ -# @start locale config -## => English -######################## -en: &EN - SUBSCRIBE : "Subscribe" - READMORE : "Read more" - SEARCH : "Search" - CANCEL : "Cancel" - VIEWS : "views" - LAST_UPDATED : "Last updated" - PREVIOUS : "PREVIOUS" - NEXT : "NEXT" - ARTICLE_DATE_FORMAT : "%b %d, %Y" - ARTICLE_LIST_DATE_FORMAT: "%b %d" - STATISTICS : "[POST_COUNT] post articles, [PAGE_COUNT] pages." - LICENSE_ANNOUNCE : "This work is licensed under a [LICENSE] license." - POST_ON_GITHUB : "Edit on Github" - FOLLOW_ME : "Follow me on [NAME]." - FOLLOW_US : "Follow us on [NAME]." - EMAIL_ME : "Send me an Email." - EMAIL_US : "Send us an Email." - COPYRIGHT_DATES : "2021" - -en-GB: - <<: *EN -en-US: - <<: *EN -en-CA: - <<: *EN -en-AU: - <<: *EN - -## => Simplified Chinese -######################## -zh-Hans: &ZH_HANS - SUBSCRIBE : "订阅" - READMORE : "阅读更多" - SEARCH : "搜索" - CANCEL : "取消" - VIEWS : "阅读" - LAST_UPDATED : "更新于" - PREVIOUS : "上篇" - NEXT : "下篇" - ARTICLE_DATE_FORMAT : "%Y年 %m月%d日" - ARTICLE_LIST_DATE_FORMAT: "%m月%d日" - STATISTICS : "共计 [POST_COUNT] 篇文章,[PAGE_COUNT] 页。" - LICENSE_ANNOUNCE : "本文遵守 [LICENSE] 许可协议。" - POST_ON_GITHUB : "在 Github 上修改" - FOLLOW_ME : "在 [NAME] 上关注我。" - FOLLOW_US : "在 [NAME] 上关注我们。" - EMAIL_ME : "给我发邮件。" - EMAIL_US : "给我们发邮件。" - COPYRIGHT_DATES : "2021" - -zh: - <<: *ZH_HANS -zh-CN: - <<: *ZH_HANS -zh-SG: - <<: *ZH_HANS - -## => Traditional Chinese -######################## -zh-Hant: &ZH_HANT - SUBSCRIBE : "訂閱" - READMORE : "閱讀更多" - SEARCH : "搜索" - CANCEL : "取消" - VIEWS : "閱讀" - LAST_UPDATED : "更新於" - PREVIOUS : "上篇" - NEXT : "下篇" - ARTICLE_DATE_FORMAT : "%Y年 %m月%d日" - ARTICLE_LIST_DATE_FORMAT: "%m月%d日" - STATISTICS : "共計 [POST_COUNT] 篇文章,[PAGE_COUNT] 頁。" - LICENSE_ANNOUNCE : "本文遵守 [LICENSE] 許可協議。" - POST_ON_GITHUB : "在 Github 上修改" - FOLLOW_ME : "在 [NAME] 上關注我。" - FOLLOW_US : "在 [NAME] 上關注我們。" - EMAIL_ME : "給我發郵件。" - EMAIL_US : "給我們發郵件。" - COPYRIGHT_DATES : "2021" - -zh-TW: - <<: *ZH_HANT -zh-HK: - <<: *ZH_HANT - -## => Korean -######################## -ko: &KO - SUBSCRIBE : "구독하기" - READMORE : "더보기" - SEARCH : "검색" - CANCEL : "취소" - VIEWS : "조회" - LAST_UPDATED : "마지막 수정" - PREVIOUS : "이전" - NEXT : "다음" - ARTICLE_DATE_FORMAT : "%Y년 %m월 %d일" - ARTICLE_LIST_DATE_FORMAT: "%m월 %d일" - STATISTICS : "전체 글 [POST_COUNT]개, [PAGE_COUNT] 페이지" - LICENSE_ANNOUNCE : "이 글의 저작권은 [LICENSE] 라이센스를 따릅니다." - POST_ON_GITHUB : "Github에서 확인하기" - FOLLOW_ME : "[NAME]에서 팔로우하기" - FOLLOW_US : "[NAME]에서 팔로우하기" - EMAIL_ME : "이메일 보내기" - EMAIL_US : "이메일 보내기" - COPYRIGHT_DATES : "2021" - -ko-KR: - <<: *KO - -## => French -######################## -fr: &FR - SUBSCRIBE : "S'abonner" - READMORE : "Plus" - SEARCH : "Recherche" - CANCEL : "Annuler" - VIEWS : "vues" - LAST_UPDATED : "Dernière modification" - PREVIOUS : "PRÉCÉDENT" - NEXT : "SUIVANT" - ARTICLE_DATE_FORMAT : "%d %b, %Y" - ARTICLE_LIST_DATE_FORMAT: "%d %b" - STATISTICS : "[POST_COUNT] articles, [PAGE_COUNT] pages." - LICENSE_ANNOUNCE : "Ce travail est sous licence [LICENSE]." - POST_ON_GITHUB : "Modifier sur Github" - FOLLOW_ME : "Suivez-moi sur [NAME]." - FOLLOW_US : "Suivez-nous sur [NAME]." - EMAIL_ME : "Envoyez-moi un courriel." - EMAIL_US : "Envoyez-nous un courriel" - COPYRIGHT_DATES : "2021" - DONATE : "Faites un don de [NAME]." - -fr-BE: - <<: *FR -fr-CA: - <<: *FR -fr-CH: - <<: *FR -fr-FR: - <<: *FR -fr-LU: - <<: *FR - -## => Turkish -######################## -tr: &TR - SUBSCRIBE : "Takip et" - READMORE : "Devamını Oku" - SEARCH : "İçerik Ara" - CANCEL : "İptal" - VIEWS : "gösterim" - LAST_UPDATED : "Son güncellenme" - PREVIOUS : "ÖNCEKİ" - NEXT : "SONRAKİ" - ARTICLE_DATE_FORMAT : "%d %b, %Y" - ARTICLE_LIST_DATE_FORMAT: "%d %b" - STATISTICS : "Toplam [POST_COUNT] adet gönderim ve [PAGE_COUNT] adet sayfa bulunuyor." - LICENSE_ANNOUNCE : "Bu içerik [LICENSE] ile lisanslanmıştır." - POST_ON_GITHUB : "Github üzerinde düzenle" - FOLLOW_ME : "Beni [NAME] üzerinden takip et." - FOLLOW_US : "Bizi [NAME] üzerinden takip edin." - EMAIL_ME : "Bana email ile ulaşın." - EMAIL_US : "Bize email ile ulaşın." - COPYRIGHT_DATES : "2021" - -# @end locale config diff --git a/test/_data/navigation.yml b/test/_data/navigation.yml deleted file mode 100644 index e6f5ee9..0000000 --- a/test/_data/navigation.yml +++ /dev/null @@ -1,52 +0,0 @@ -header: - - titles: - # @start locale config - en : &EN Archive - en-GB : *EN - en-US : *EN - en-CA : *EN - en-AU : *EN - zh-Hans : &ZH_HANS 归档 - zh : *ZH_HANS - zh-CN : *ZH_HANS - zh-SG : *ZH_HANS - zh-Hant : &ZH_HANT 歸檔 - zh-TW : *ZH_HANT - zh-HK : *ZH_HANT - ko : &KO 아카이브 - ko-KR : *KO - fr : &FR Archives - fr-BE : *FR - fr-CA : *FR - fr-CH : *FR - fr-FR : *FR - fr-LU : *FR - tr : &TR Arşivdekiler - # @end locale config - url: /archive.html - - - titles: - # @start locale config - en : &EN About - en-GB : *EN - en-US : *EN - en-CA : *EN - en-AU : *EN - zh-Hans : &ZH_HANS 关于 - zh : *ZH_HANS - zh-CN : *ZH_HANS - zh-SG : *ZH_HANS - zh-Hant : &ZH_HANT 關於 - zh-TW : *ZH_HANT - zh-HK : *ZH_HANT - ko : &KO 소개 - ko-KR : *KO - fr : &FR À propos - fr-BE : *FR - fr-CA : *FR - fr-CH : *FR - fr-FR : *FR - fr-LU : *FR - tr : &TR Hakkında - # @end locale config - url: /about.html diff --git a/test/_data/variables.yml b/test/_data/variables.yml deleted file mode 100644 index 43aa3aa..0000000 --- a/test/_data/variables.yml +++ /dev/null @@ -1,64 +0,0 @@ -default: - text_skin: default - highlight_theme: default - lang: en - paths: - root: / - home: / - archive: /archive.html - rss: /feed.xml - mathjax: false - mathjax_autoNumber: false - mermaid: false - chart: false - toc: - selectors: 'h1,h2,h3' - sources: bootcdn - - page: - mode: normal - type: webpage - article_header: - align: left - theme: light - articles: - show_cover: true - show_excerpt: false - show_readmore: false - show_info: false - show_title: true - show_edit_on_github: false - show_date: true - show_tags: true - show_author_profile: false - show_subscribe: false - full_width: false - sharing: false - comment: true - license: false - pageview: false - search: default - -sources: - bootcdn: - font_awesome: 'https://cdn.bootcdn.net/ajax/libs/font-awesome/5.15.1/css/all.css' - jquery: 'https://cdn.bootcss.com/jquery/3.1.1/jquery.min.js' - leancloud_js_sdk: '//cdn.jsdelivr.net/npm/leancloud-storage@3.13.2/dist/av-min.js' - chart: 'https://cdn.bootcss.com/Chart.js/2.7.2/Chart.bundle.min.js' - gitalk: - js: 'https://cdn.bootcss.com/gitalk/1.2.2/gitalk.min.js' - css: 'https://cdn.bootcss.com/gitalk/1.2.2/gitalk.min.css' - valine: 'https://unpkg.com/valine/dist/Valine.min.js' # bootcdn not available - mathjax: 'https://cdn.bootcss.com/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML' - mermaid: 'https://cdn.bootcss.com/mermaid/8.0.0-rc.8/mermaid.min.js' - unpkg: - font_awesome: 'https://use.fontawesome.com/releases/v5.15.1/css/all.css' - jquery: 'https://unpkg.com/jquery@3.3.1/dist/jquery.min.js' - leancloud_js_sdk: '//cdn.jsdelivr.net/npm/leancloud-storage@3.13.2/dist/av-min.js' - chart: 'https://unpkg.com/chart.js@2.7.2/dist/Chart.min.js' - gitalk: - js: 'https://unpkg.com/gitalk@1.2.2/dist/gitalk.min.js' - css: 'https://unpkg.com/gitalk@1.2.2/dist/gitalk.css' - valine: 'https//unpkg.com/valine/dist/Valine.min.js' - mathjax: 'https://unpkg.com/mathjax@2.7.4/unpacked/MathJax.js?config=TeX-MML-AM_CHTML' - mermaid: 'https://unpkg.com/mermaid@8.0.0-rc.8/dist/mermaid.min.js' diff --git a/test/_posts/2018-07-01-welcome.md b/test/_posts/2018-07-01-welcome.md deleted file mode 100644 index e9dbd54..0000000 --- a/test/_posts/2018-07-01-welcome.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -title: Welcome -tags: TeXt ---- - -If you see this page, that means you have setup your site. enjoy! :ghost: :ghost: :ghost: - -You may want to [config the site](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/configuration) or [writing a post](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/writing-posts) next. Please feel free to [create an issue](https://github.com/kitian616/jekyll-TeXt-theme/issues) or [send me an email](mailto:kitian616@outlook.com) if you have any questions. - - - ---- - -If you like TeXt, don't forget to give me a star. :star2: - -[![Star This Project](https://img.shields.io/github/stars/kitian616/jekyll-TeXt-theme.svg?label=Stars&style=social)](https://github.com/kitian616/jekyll-TeXt-theme/) diff --git a/test/about.md b/test/about.md deleted file mode 100644 index 13845b7..0000000 --- a/test/about.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -layout: article -titles: - en : &EN About - en-GB : *EN - en-US : *EN - en-CA : *EN - en-AU : *EN - zh-Hans : &ZH_HANS 关于 - zh : *ZH_HANS - zh-CN : *ZH_HANS - zh-SG : *ZH_HANS - zh-Hant : &ZH_HANT 關於 - zh-TW : *ZH_HANT - zh-HK : *ZH_HANT - ko : &KO 소개 - ko-KR : *KO -key: page-about ---- - -Just say something about yourself. :+1: - -{% highlight javascript %} -(() => console.log('hello, world!'))(); -{% endhighlight %} diff --git a/test/archive.html b/test/archive.html deleted file mode 100644 index 89dc810..0000000 --- a/test/archive.html +++ /dev/null @@ -1,3 +0,0 @@ ---- -layout: archive ---- diff --git a/test/index.html b/test/index.html deleted file mode 100644 index 989857f..0000000 --- a/test/index.html +++ /dev/null @@ -1,5 +0,0 @@ ---- -layout: home -# articles: -# excerpt_type: html ---- diff --git a/tools/assert-url.js b/tools/assert-url.js deleted file mode 100644 index c81ad6c..0000000 --- a/tools/assert-url.js +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env node -var path = require('path'); -var fs = require('fs'); - -var imgRg = /!\[([^\]]*)\]\((\/[^/]\S*)\)/gm; -var basePath = 'https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master'; -var srcPaths = ['./test/_posts', './docs/en', './docs/zh']; - -function runner() { - srcPaths.forEach(function(srcPath) { - fs.readdir(srcPath, function(err, files) { - files.forEach(function(file) { - var curPath = srcPath + '/' + file; - fs.stat(curPath, function(err, stat) { - if (stat.isFile() && path.extname(curPath) === '.md') { - fs.readFile(curPath, 'utf8', function(err, data) { - if (err) throw err; - data = assertUrl(data); - fs.writeFile(curPath, data, 'utf8', function(err) { - if (err) throw err; - }); - }); - } - }); - }); - }); - }); -} - - -function assertUrl(content) { - return content.replace(imgRg, '![$1](' + basePath + '$2)'); -} - -runner(); diff --git a/tools/diff.sh b/tools/diff.sh deleted file mode 100644 index 503f707..0000000 --- a/tools/diff.sh +++ /dev/null @@ -1,5 +0,0 @@ -Diffmerge ./_config.yml ./docs/_config.yml ./docs/_config.dev.yml -Diffmerge ./_config.yml ./test/_config.yml - -Diffmerge ./_data/ ./docs/_data/ -Diffmerge ./_data/ ./test/_data diff --git a/tools/dir-tree.sh b/tools/dir-tree.sh deleted file mode 100644 index 5297ed9..0000000 --- a/tools/dir-tree.sh +++ /dev/null @@ -1 +0,0 @@ -tree -I '.*|_site|docs|node_modules|screenshots|test|Gemfile.lock|*.gem|CHANGELOG.md|HOW_TO_RELEASE.md|LICENSE|README*|screenshot.*' --dirsfirst