diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 975a2e82ba6..00000000000 --- 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/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 00000000000..30a90bda449 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,26 @@ +name: GitHub Pages + +on: + push: + branches: [master] + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: ruby/setup-ruby@v1 + with: + ruby-version: "3.3" + bundler-cache: true + + - run: cp -rfv docs/_includes . + + - run: JEKYLL_ENV=production bundle exec jekyll build --config ./docs/_config.yml + + - uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_site + keep_history: true diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 00000000000..da9948310e7 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1 @@ +npx --no -- commitlint --edit "$1" diff --git a/.stylelintrc b/.stylelintrc index 28df0f66a72..aa3421bc006 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -1,42 +1,53 @@ - { - "extends": ["stylelint-config-standard", "stylelint-config-recommended-scss"], + "extends": [ + "stylelint-config-standard", + "stylelint-config-recommended-scss" + ], "plugins": [ "stylelint-order" ], "rules": { + "alpha-value-notation": "number", "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, + "at-rule-no-vendor-prefix": null, + "color-function-alias-notation": null, + "color-function-notation": "legacy", "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-block-single-line-max-declarations": null, "declaration-empty-line-before": null, - "declaration-no-important": true, + "declaration-no-important": null, "font-family-name-quotes": "always-where-recommended", "font-weight-notation": null, "function-url-no-scheme-relative": true, "function-url-quotes": "always", + "import-notation": "string", "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"] - }], + "no-duplicate-selectors": null, + "no-empty-source": null, + "property-no-deprecated": null, + "property-no-vendor-prefix": null, + "rule-empty-line-before": null, + "selector-class-pattern": null, + "selector-max-attribute": 2, + "selector-max-class": 4, + "selector-max-combinators": 4, + "selector-max-compound-selectors": 4, + "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": null, + "shorthand-property-no-redundant-values": null, + "value-keyword-case": null, + "value-no-vendor-prefix": null, + "scss/at-extend-no-missing-placeholder": null, + "scss/at-if-no-null": null, + "scss/comment-no-empty": null, + "scss/no-global-function-names": null, "order/properties-order": [ "position", "top", @@ -247,30 +258,6 @@ "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/CHANGELOG.md b/CHANGELOG.md index ebc82382001..c5d1032f6a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -118,7 +118,7 @@ ## 2.0.0 (2018-07-01) -Breaking changes, please check [Update from 1.x to 2.x](https://tianqi.name/jekyll-TeXt-theme/docs/en/update-from-1-to-2) for details +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 diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 00000000000..bd5547fa26b --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,93 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Commands + +```bash +# Build the production site +npm run build + +# Serve locally with live reload (default) +npm run serve + +# Serve with tracing output +npm run default + +# Serve docs/demo site (dev, beta, production variants) +npm run dev # docs/_config.dev.yml +npm run demo-dev # docs/_config.yml (dev env) +npm run demo-prod # docs/_config.yml (production env) + +# Lint JS in _includes/**/*.js +npm run eslint +npm run eslint-fix + +# Lint SCSS in _sass/**/*.scss +npm run stylelint +npm run stylelint-fix + +# Build & publish gem (release flow only) +npm run gem-build +npm run gem-push + +# Docker-based development +npm run docker-dev:default +npm run docker-dev:dev +npm run docker-dev:demo-dev + +# Docker production build + serve +npm run docker-prod:build +npm run docker-prod:serve +``` + +**CI**: Travis builds the docs site via `JEKYLL_ENV=production bundle exec jekyll build --config ./docs/_config.yml` and deploys to `gh-pages` branch. + +**Commit style**: Conventional Commits via commitlint (`feat:`, `fix:`, `docs:`, `refactor:`, `release:`, etc.). + +## Project Architecture + +### Skin System +6 built-in skins (`default`, `dark`, `forest`, `ocean`, `chocolate`, `orange`) + 5 highlight themes. A skin is a SCSS file at `_sass/skins/_.scss` that defines CSS custom properties (colors, fonts, borders). Selected via `text_skin` in `_config.yml`. The main entry point `assets/css/main.scss` dynamically `@import`s the active skin. + +### Layout Inheritance +Layouts in `_layouts/` form a chain: `none` ← `base` ← `page` ← `article` / `home` / `landing` / `articles` / `archive` / `404`. `base.html` is the root — it sets up the HTML shell, analytics, head, and core JS utilities. Page-level layouts extend it and add content wrappers. + +### Include System +`_includes/` is organized by concern: +- **article/** — header, footer, info, list components +- **aside/** — sidebar content (TOC, affix) +- **scripts/** — vanilla JS (no framework): lib/ (third-party), utils/, components/ (search, lightbox, sidebar) +- **head/**, **footer/**, **sidebar/** — structural includes +- **comments-providers/**, **analytics-providers/**, **search-providers/**, **sharing-providers/**, **pageview-providers/** — pluggable third-party integrations + +### JavaScript Architecture +Vanilla JS (no build step, no framework). Scripts are included directly via Liquid `{%- include scripts/...js -%}` in `base.html`. The JS is split into: +- **lib/** — isolated utilities (lazyload, throttle, affix, TOC, swiper, modal, gallery, scroll-to) +- **components/** — stateful UI (search, lightbox, sidebar) +- **utils/** — helpers (image loading, general utils) +- Page-level scripts: `article.js`, `page.js`, `home.js`, `archieve.js` + +No bundler — all JS is served raw from `_includes/scripts/`. + +### SCSS Organization +`_sass/` is structured as: +- **skins/** — color/font themes (each skin is a standalone variable file) +- **common/** — shared variables, functions, classes, reset, print styles, reusable components (button, card, modal, gallery, etc.) +- **components/** — page-level component styles (header, footer, search, lightbox, etc.) +- **layout/** — page layout styles (base, page, article, home, archive, etc.) +- **additional/** — optional utility styles (alerts, tags, photo frames) +- **animate/** — keyframe animations (fade-in variants) +- **custom.scss** — user overrides placeholder + +### Content & Data +- `_data/` — YAML files for authors, licenses, locale (i18n), navigation, and theme variables +- `_posts/` — sample/blog posts directory +- `docs/` — standalone documentation site (has its own `_config.yml`, posts, sample pages, and shared `_includes` from root via Travis `before_script`) +- `test/` — minimal test site (used for smoke testing the theme) + +### Building a Release +1. Update version in `jekyll-text-theme.gemspec`, `package.json`, and `_includes/scripts/variables.html` +2. Update `CHANGELOG.md` +3. Run `npm run gem-build && npm run gem-push` +4. Tag and push with `release: vx.x.x` commit message diff --git a/Dockerfile.dev b/Dockerfile.dev index 79c2a1fa5f9..33682a99aa7 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -1,4 +1,4 @@ -FROM ruby:2.6 +FROM ruby:2.7 # Set default locale for the environment ENV LC_ALL C.UTF-8 diff --git a/README-zh.md b/README-zh.md index bc2ca584dd6..ed3021e60b6 100644 --- a/README-zh.md +++ b/README-zh.md @@ -57,32 +57,32 @@ TeXt 使用 [Tomorrow](https://github.com/chriskempson/tomorrow-theme) 作为它 ### 开始 -- [快速开始](https://tianqi.name/jekyll-TeXt-theme/docs/zh/quick-start) -- [从 1.x 升级到 2.x](https://tianqi.name/jekyll-TeXt-theme/docs/zh/update-from-1-to-2) +- [快速开始](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://tianqi.name/jekyll-TeXt-theme/docs/zh/configuration) -- [导航栏](https://tianqi.name/jekyll-TeXt-theme/docs/zh/navigation) -- [布局](https://tianqi.name/jekyll-TeXt-theme/docs/zh/layouts) -- [Logo 和 Favicon](https://tianqi.name/jekyll-TeXt-theme/docs/zh/logo-and-favicon) -- [作者](https://tianqi.name/jekyll-TeXt-theme/docs/zh/authors) -- [国际化](https://tianqi.name/jekyll-TeXt-theme/docs/zh/i18n) +- [配置](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://tianqi.name/jekyll-TeXt-theme/docs/zh/writing-posts) -- [附加样式](https://tianqi.name/jekyll-TeXt-theme/docs/zh/additional-styles) -- [扩展](https://tianqi.name/jekyll-TeXt-theme/docs/zh/extensions) -- [Markdown 增强](https://tianqi.name/jekyll-TeXt-theme/docs/zh/markdown-enhancements) +- [撰写博客](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://tianqi.name/jekyll-TeXt-theme/test/) | 列表页 | -| [Archive](https://tianqi.name/jekyll-TeXt-theme/archive.html) | 归档页 | -| [Layout Examples](https://tianqi.name/jekyll-TeXt-theme/samples.html) | 各种布局示例 | +| [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) | 各种布局示例 | ## 支持我 diff --git a/README.md b/README.md index dcc8570d4ed..b29eb701254 100644 --- a/README.md +++ b/README.md @@ -57,32 +57,32 @@ TeXt use [Tomorrow](https://github.com/chriskempson/tomorrow-theme) as the highl ### Start -- [Quick Start](https://tianqi.name/jekyll-TeXt-theme/docs/en/quick-start) -- [Update from 1.x to 2.x](https://tianqi.name/jekyll-TeXt-theme/docs/en/update-from-1-to-2) +- [Quick Start](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/quick-start) +- [Update from 1.x to 2.x](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/update-from-1-to-2) ### Customization -- [Configuration](https://tianqi.name/jekyll-TeXt-theme/docs/en/configuration) -- [Navigation](https://tianqi.name/jekyll-TeXt-theme/docs/en/navigation) -- [Layouts](https://tianqi.name/jekyll-TeXt-theme/docs/en/layouts) -- [Logo and Favicon](https://tianqi.name/jekyll-TeXt-theme/docs/en/logo-and-favicon) -- [Authors](https://tianqi.name/jekyll-TeXt-theme/docs/en/authors) -- [Internationalization](https://tianqi.name/jekyll-TeXt-theme/docs/en/i18n) +- [Configuration](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/configuration) +- [Navigation](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/navigation) +- [Layouts](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/layouts) +- [Logo and Favicon](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/logo-and-favicon) +- [Authors](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/authors) +- [Internationalization](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/i18n) ### Content -- [Writing Posts](https://tianqi.name/jekyll-TeXt-theme/docs/en/writing-posts) -- [Additional styles](https://tianqi.name/jekyll-TeXt-theme/docs/en/additional-styles) -- [Extensions](https://tianqi.name/jekyll-TeXt-theme/docs/en/extensions) -- [Markdown Enhancements](https://tianqi.name/jekyll-TeXt-theme/docs/en/markdown-enhancements) +- [Writing Posts](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/writing-posts) +- [Additional styles](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/additional-styles) +- [Extensions](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/extensions) +- [Markdown Enhancements](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/markdown-enhancements) ## Demo Pages | Name | Description | | --- | --- | -| [Home](https://tianqi.name/jekyll-TeXt-theme/test/) | Home page | -| [Archive](https://tianqi.name/jekyll-TeXt-theme/archive.html) | Archive page | -| [Layout Examples](https://tianqi.name/jekyll-TeXt-theme/samples.html) | Examples for different layouts | +| [Home](https://kitian616.github.io/jekyll-TeXt-theme/test/) | Home page | +| [Archive](https://kitian616.github.io/jekyll-TeXt-theme/archive.html) | Archive page | +| [Layout Examples](https://kitian616.github.io/jekyll-TeXt-theme/samples.html) | Examples for different layouts | ## License diff --git a/_data/locale.yml b/_data/locale.yml index 6adca98abbc..772767352aa 100644 --- a/_data/locale.yml +++ b/_data/locale.yml @@ -19,7 +19,7 @@ en: &EN FOLLOW_US : "Follow us on [NAME]." EMAIL_ME : "Send me an Email." EMAIL_US : "Send us an Email." - COPYRIGHT_DATES : "2020" + COPYRIGHT_DATES : "2026" en-GB: <<: *EN @@ -50,7 +50,7 @@ zh-Hans: &ZH_HANS FOLLOW_US : "在 [NAME] 上关注我们。" EMAIL_ME : "给我发邮件。" EMAIL_US : "给我们发邮件。" - COPYRIGHT_DATES : "2020" + COPYRIGHT_DATES : "2026" zh: <<: *ZH_HANS @@ -79,7 +79,7 @@ zh-Hant: &ZH_HANT FOLLOW_US : "在 [NAME] 上關注我們。" EMAIL_ME : "給我發郵件。" EMAIL_US : "給我們發郵件。" - COPYRIGHT_DATES : "2020" + COPYRIGHT_DATES : "2026" zh-TW: <<: *ZH_HANT @@ -106,7 +106,7 @@ ko: &KO FOLLOW_US : "[NAME]에서 팔로우하기" EMAIL_ME : "이메일 보내기" EMAIL_US : "이메일 보내기" - COPYRIGHT_DATES : "2020" + COPYRIGHT_DATES : "2026" ko-KR: <<: *KO @@ -131,7 +131,7 @@ fr: &FR FOLLOW_US : "Suivez-nous sur [NAME]." EMAIL_ME : "Envoyez-moi un courriel." EMAIL_US : "Envoyez-nous un courriel" - COPYRIGHT_DATES : "2020" + COPYRIGHT_DATES : "2026" DONATE : "Faites un don de [NAME]." fr-BE: @@ -144,4 +144,26 @@ 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 : "2026" + # @end locale config diff --git a/_data/navigation.yml b/_data/navigation.yml index 9a2b8a901f4..e6f5ee962e9 100644 --- a/_data/navigation.yml +++ b/_data/navigation.yml @@ -21,6 +21,7 @@ header: fr-CH : *FR fr-FR : *FR fr-LU : *FR + tr : &TR Arşivdekiler # @end locale config url: /archive.html @@ -46,5 +47,6 @@ header: fr-CH : *FR fr-FR : *FR fr-LU : *FR + tr : &TR Hakkında # @end locale config url: /about.html diff --git a/_data/variables.yml b/_data/variables.yml index 15fdb0497fa..43aa3aaf4fe 100644 --- a/_data/variables.yml +++ b/_data/variables.yml @@ -41,7 +41,7 @@ default: sources: bootcdn: - font_awesome: 'https://use.fontawesome.com/releases/v5.0.13/css/all.css' + 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' @@ -52,7 +52,7 @@ sources: 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.0.13/css/all.css' + 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' diff --git a/_includes/scripts/archieve.js b/_includes/scripts/archieve.js index 96549b5b573..acacb7e5ec7 100644 --- a/_includes/scripts/archieve.js +++ b/_includes/scripts/archieve.js @@ -3,7 +3,7 @@ function queryString() { // This function is anonymous, is executed immediately and // the return value is assigned to QueryString! - var i = 0, queryObj = {}, pair; + var i, queryObj = {}, pair; var queryStr = window.location.search.substring(1); var queryArr = queryStr.split('&'); for (i = 0; i < queryArr.length; i++) { diff --git a/_includes/scripts/components/search.js b/_includes/scripts/components/search.js index e1c8c27884f..0180dec4f3b 100644 --- a/_includes/scripts/components/search.js +++ b/_includes/scripts/components/search.js @@ -15,7 +15,7 @@ var $searchBox = null; var $searchInput = null; - var $searchClear = null; + var $searchClear; function getModalVisible() { return modalVisible; diff --git a/_includes/scripts/lib/lazyload.js b/_includes/scripts/lib/lazyload.js index 9911535fa9d..07731e954ef 100644 --- a/_includes/scripts/lib/lazyload.js +++ b/_includes/scripts/lib/lazyload.js @@ -58,7 +58,7 @@ var createNode = function(name, attrs) { var node = doc.createElement(name), attr; for (attr in attrs) { - if (attrs.hasOwnProperty(attr)) { + if (Object.prototype.hasOwnProperty.call(attrs, attr)) { node.setAttribute(attr, attrs[attr]); } } diff --git a/_layouts/archive.html b/_layouts/archive.html index 02412a6f03b..82a04a37aa6 100644 --- a/_layouts/archive.html +++ b/_layouts/archive.html @@ -22,6 +22,7 @@ fr-CH : *FR fr-FR : *FR fr-LU : *FR + tr : &TR Arşivdekiler # @end locale config --- diff --git a/_layouts/home.html b/_layouts/home.html index e587d6f82d1..553cc5afd4b 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -22,6 +22,7 @@ fr-CH : *FR fr-FR : *FR fr-LU : *FR + tr : &TR Ana Sayfa # @end locale config show_title: false articles: diff --git a/_posts/2018-06-01-header-image.md b/_posts/2018-06-01-header-image.md index 44c6672cfcf..82a13c4d660 100644 --- a/_posts/2018-06-01-header-image.md +++ b/_posts/2018-06-01-header-image.md @@ -7,6 +7,6 @@ article_header: src: /screenshot.jpg --- -A Post with Header Image, See [Page layout](https://tianqi.name/jekyll-TeXt-theme/samples.html#page-layout) for more examples. +A Post with Header Image, See [Page layout](https://kitian616.github.io/jekyll-TeXt-theme/samples.html#page-layout) for more examples. diff --git a/_posts/2018-07-01-welcome.md b/_posts/2018-07-01-welcome.md index 39843a65f88..5760d9c4261 100644 --- a/_posts/2018-07-01-welcome.md +++ b/_posts/2018-07-01-welcome.md @@ -5,7 +5,7 @@ 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://tianqi.name/jekyll-TeXt-theme/docs/en/configuration) or [writing a post](https://tianqi.name/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 email](mailto:kitian616@outlook.com) if you have any questions. +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 email](mailto:kitian616@outlook.com) if you have any questions. diff --git a/docs/_config.yml b/docs/_config.yml index 49189072a9c..aef64743c82 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -18,7 +18,7 @@ ############################## 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://tianqi.name +url : https://kitian616.github.io baseurl : /jekyll-TeXt-theme title : TeXt Theme description: > diff --git a/docs/_data/authors.yml b/docs/_data/authors.yml index 094b607fbec..90e3e1bc603 100644 --- a/docs/_data/authors.yml +++ b/docs/_data/authors.yml @@ -1,6 +1,6 @@ Tian Qi: name: Tian Qi # your Name - url: https://tianqi.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 diff --git a/docs/_data/locale.yml b/docs/_data/locale.yml index 6adca98abbc..a7f39133a8c 100644 --- a/docs/_data/locale.yml +++ b/docs/_data/locale.yml @@ -19,7 +19,7 @@ en: &EN FOLLOW_US : "Follow us on [NAME]." EMAIL_ME : "Send me an Email." EMAIL_US : "Send us an Email." - COPYRIGHT_DATES : "2020" + COPYRIGHT_DATES : "2026" en-GB: <<: *EN @@ -50,7 +50,7 @@ zh-Hans: &ZH_HANS FOLLOW_US : "在 [NAME] 上关注我们。" EMAIL_ME : "给我发邮件。" EMAIL_US : "给我们发邮件。" - COPYRIGHT_DATES : "2020" + COPYRIGHT_DATES : "2026" zh: <<: *ZH_HANS @@ -79,7 +79,7 @@ zh-Hant: &ZH_HANT FOLLOW_US : "在 [NAME] 上關注我們。" EMAIL_ME : "給我發郵件。" EMAIL_US : "給我們發郵件。" - COPYRIGHT_DATES : "2020" + COPYRIGHT_DATES : "2026" zh-TW: <<: *ZH_HANT @@ -106,7 +106,7 @@ ko: &KO FOLLOW_US : "[NAME]에서 팔로우하기" EMAIL_ME : "이메일 보내기" EMAIL_US : "이메일 보내기" - COPYRIGHT_DATES : "2020" + COPYRIGHT_DATES : "2026" ko-KR: <<: *KO @@ -131,7 +131,7 @@ fr: &FR FOLLOW_US : "Suivez-nous sur [NAME]." EMAIL_ME : "Envoyez-moi un courriel." EMAIL_US : "Envoyez-nous un courriel" - COPYRIGHT_DATES : "2020" + COPYRIGHT_DATES : "2026" DONATE : "Faites un don de [NAME]." fr-BE: @@ -144,4 +144,27 @@ 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 : "2026" + # @end locale config diff --git a/docs/_data/variables.yml b/docs/_data/variables.yml index e3be92d233f..43aa3aaf4fe 100644 --- a/docs/_data/variables.yml +++ b/docs/_data/variables.yml @@ -41,7 +41,7 @@ default: sources: bootcdn: - font_awesome: 'https://use.fontawesome.com/releases/v5.0.13/css/all.css' + 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' @@ -52,7 +52,7 @@ sources: 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.0.13/css/all.css' + 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' @@ -61,4 +61,4 @@ sources: 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' \ No newline at end of file + mermaid: 'https://unpkg.com/mermaid@8.0.0-rc.8/dist/mermaid.min.js' diff --git a/docs/_docs/en/2.1-configuration.md b/docs/_docs/en/2.1-configuration.md index 010d19464ef..c04bbbed6e1 100644 --- a/docs/_docs/en/2.1-configuration.md +++ b/docs/_docs/en/2.1-configuration.md @@ -53,7 +53,7 @@ highlight_theme: default # "default" (default), "tomorrow", "tomorrow-night", "t ### 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://tianqi.name if there is cname file. +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} @@ -89,7 +89,7 @@ description: > # this means to ignore newlines until "nav_lists:" ### 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://tianqi.name/jekyll-TeXt-theme/docs/en/i18n). +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 @@ -167,7 +167,7 @@ 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://tianqi.name/jekyll-TeXt-theme/docs/en/layouts#articles-layout). +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 @@ -264,7 +264,7 @@ comments: 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://tianqi.name/jekyll-TeXt-theme/docs/en/layouts#article-layout). +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 @@ -316,7 +316,7 @@ comments: 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://tianqi.name/jekyll-TeXt-theme/docs/en/layouts#page-layout). +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 @@ -330,7 +330,7 @@ For all the above comments systems, you NEED set `key` variable in the page’s 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://tianqi.name/jekyll-TeXt-theme/docs/zh/configuration#leancloud) since LeanCloud haven't provide an English-language edition. +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 @@ -342,7 +342,7 @@ pageview: 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://tianqi.name/jekyll-TeXt-theme/docs/en/layouts#page-layout). +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 diff --git a/docs/_docs/en/2.3-layouts.md b/docs/_docs/en/2.3-layouts.md index 1b1d557db63..4e0522a1736 100644 --- a/docs/_docs/en/2.3-layouts.md +++ b/docs/_docs/en/2.3-layouts.md @@ -39,7 +39,7 @@ Base on Base Layout. | **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://tianqi.name/jekyll-TeXt-theme/docs/en/authors) for detail. | 2.2.0 | +| **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 | @@ -128,7 +128,7 @@ Base on Page Layout, available since version **2.2.0**. | 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://tianqi.name/jekyll-TeXt-theme/samples.html#articles-layout). | +| **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). | diff --git a/docs/_docs/en/2.5-authors.md b/docs/_docs/en/2.5-authors.md index d961e2d16dd..a4c31c7a68e 100644 --- a/docs/_docs/en/2.5-authors.md +++ b/docs/_docs/en/2.5-authors.md @@ -10,7 +10,7 @@ Todo so, you need create *_data/authors.yml* and add authors using the following ```yml Tian Qi: name : Tian Qi - url : https://tianqi.name + url : https://kitian616.github.io avatar : https://wx3.sinaimg.cn/large/73bd9e13ly1fjkqy66hl8j208c08c0td.jpg bio : Author of TeXt. email : kitian616@outlook.com diff --git a/docs/_docs/en/2.7-i18n.md b/docs/_docs/en/2.7-i18n.md index 48343e9b0d8..f72ff55863b 100644 --- a/docs/_docs/en/2.7-i18n.md +++ b/docs/_docs/en/2.7-i18n.md @@ -20,6 +20,7 @@ The translation keys and multi-language names mentioned above support the follow | **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://tianqi.name/jekyll-TeXt-theme/samples.html#languages). +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 index d2643af347a..21742328564 100644 --- a/docs/_docs/en/3.1-writing-posts.md +++ b/docs/_docs/en/3.1-writing-posts.md @@ -31,4 +31,4 @@ To improve the user experience for both reading and writing posts, TeXt made som 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://tianqi.name/jekyll-TeXt-theme/docs/en/layouts) for details. +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 index a53dc46b528..76772baf93b 100644 --- a/docs/_docs/en/3.2-markdown-enhancements.md +++ b/docs/_docs/en/3.2-markdown-enhancements.md @@ -8,9 +8,9 @@ You need set the variable true in the *_config.yml* or in the YAML Front Matter | Enhancemen Name | Description | | --------------- | ----------- | -| **Mathjax** | Make it easy to add mathematics in articles, using MathML, LaTeX and ASCIIMathML markup | [EXAMPLES](https://tianqi.name/jekyll-TeXt-theme/post/2017/07/07/mathjax.html) | -| **Mermaid** | Bring diagrams and flowcharts in articles | [EXAMPLES](https://tianqi.name/jekyll-TeXt-theme/post/2017/06/06/mermaid.html) | -| **Chart** | Bring charts in articles | [EXAMPLES](https://tianqi.name/jekyll-TeXt-theme/post/2017/05/05/chart.html) | +| **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 diff --git a/docs/_docs/en/3.3-additional-styles.md b/docs/_docs/en/3.3-additional-styles.md index 54b085936fb..8c0d16fa738 100644 --- a/docs/_docs/en/3.3-additional-styles.md +++ b/docs/_docs/en/3.3-additional-styles.md @@ -6,7 +6,7 @@ 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://tianqi.name/jekyll-TeXt-theme/post/2017/08/08/additional-styles.html). +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) diff --git a/docs/_docs/en/4.8-hero.md b/docs/_docs/en/4.8-hero.md index 1feb9a194bc..7dfc975da23 100644 --- a/docs/_docs/en/4.8-hero.md +++ b/docs/_docs/en/4.8-hero.md @@ -18,10 +18,10 @@ key: docs-hero background-color: #123; } .hero-bg-image-example { - background-image: url("https://tianqi.name/jekyll-TeXt-theme/docs/assets/images/cover3.jpg"); + background-image: url("https://kitian616.github.io/jekyll-TeXt-theme/docs/assets/images/cover3.jpg"); } .hero-bg-image-example--linear-gradient { - background-image: linear-gradient(135deg, rgba(255, 69, 0, .5), rgba(255, 197, 0, .2)), url("https://tianqi.name/jekyll-TeXt-theme/docs/assets/images/cover3.jpg"); + background-image: linear-gradient(135deg, rgba(255, 69, 0, .5), rgba(255, 197, 0, .2)), url("https://kitian616.github.io/jekyll-TeXt-theme/docs/assets/images/cover3.jpg"); } diff --git a/docs/_docs/en/4.9-swiper.md b/docs/_docs/en/4.9-swiper.md index 21aba6a14f0..cee99cddf02 100644 --- a/docs/_docs/en/4.9-swiper.md +++ b/docs/_docs/en/4.9-swiper.md @@ -120,13 +120,13 @@ window.Lazyload.js(SOURCES.jquery, function() {
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/docs/_docs/zh/2.1-configuration.md b/docs/_docs/zh/2.1-configuration.md index 1326ab8fdeb..b752f2c3722 100644 --- a/docs/_docs/zh/2.1-configuration.md +++ b/docs/_docs/zh/2.1-configuration.md @@ -55,7 +55,7 @@ highlight_theme: default # "default" (default), "tomorrow", "tomorrow-night", "t 网站的协议和域名。 -如果你的网站是搭建在 Github Pages 上的,这个只会被设置为 GitHub Pages 域名(CNAME 或个人域名)[^gitHub_metadata]. 举个例子, https://kitian616.github.io 或者 https://tianqi.name 如果设置了 CNAME。 +如果你的网站是搭建在 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} @@ -91,7 +91,7 @@ description: > # this means to ignore newlines until "nav_lists:" ### 语言 -网站的语言,当然你可以在头信息[^font_matter]里指定特定的文章或页面的语言,你可以在[国际化](https://tianqi.name/jekyll-TeXt-theme/docs/zh/i18n)找到更多信息。 +网站的语言,当然你可以在头信息[^font_matter]里指定特定的文章或页面的语言,你可以在[国际化](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/i18n)找到更多信息。 ```yaml lang: en @@ -163,7 +163,7 @@ excerpt_separator: excerpt_type: text # text (default), html ``` -该设置在 2.2.0 版中移到了 Articles 和 Home 布局的头信息中,详情请戳 [这里](https://tianqi.name/jekyll-TeXt-theme/docs/cn/layouts#articles-layout)。 +该设置在 2.2.0 版中移到了 Articles 和 Home 布局的头信息中,详情请戳 [这里](https://kitian616.github.io/jekyll-TeXt-theme/docs/cn/layouts#articles-layout)。 {:.error} ### 许可协议 @@ -262,7 +262,7 @@ comments: id: "your-addthis-pubid" ``` -你需要在页面的头信息里设置 `sharing` 属性为 `true` 来开启该页的评论,详情请戳 [这里](https://tianqi.name/jekyll-TeXt-theme/docs/zh/layouts#article-%E5%B8%83%E5%B1%80)。 +你需要在页面的头信息里设置 `sharing` 属性为 `true` 来开启该页的评论,详情请戳 [这里](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/layouts#article-%E5%B8%83%E5%B1%80)。 {:.warning} ## 评论 @@ -316,7 +316,7 @@ comments: app_key : "your-leanCloud-app-key" ``` -对于上面所有的评论系统, 你都需要在页面的头信息里设置 `key` 属性来开启该页的评论,详情请戳 [这里](https://tianqi.name/jekyll-TeXt-theme/docs/zh/layouts#page-%E5%B8%83%E5%B1%80)。 +对于上面所有的评论系统, 你都需要在页面的头信息里设置 `key` 属性来开启该页的评论,详情请戳 [这里](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/layouts#page-%E5%B8%83%E5%B1%80)。 {:.warning} ## 文章点击量 @@ -359,7 +359,7 @@ pageview: app_class : "your-leanCloud-app-class" ``` -对于上面所有的点击量统计, 你都需要在页面的头信息里设置 `key` 属性来开启该页的统计功能,详情请戳 [这里](https://tianqi.name/jekyll-TeXt-theme/docs/zh/layouts#page-%E5%B8%83%E5%B1%80)。 +对于上面所有的点击量统计, 你都需要在页面的头信息里设置 `key` 属性来开启该页的统计功能,详情请戳 [这里](https://kitian616.github.io/jekyll-TeXt-theme/docs/zh/layouts#page-%E5%B8%83%E5%B1%80)。 {:.warning} ## 站点统计 diff --git a/docs/_docs/zh/2.3-layouts.md b/docs/_docs/zh/2.3-layouts.md index 4d226f119fc..61e70446448 100644 --- a/docs/_docs/zh/2.3-layouts.md +++ b/docs/_docs/zh/2.3-layouts.md @@ -39,7 +39,7 @@ graph TB; | **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://tianqi.name/jekyll-TeXt-theme/docs/zh/authors)。 | 2.2.0 | +| **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 | @@ -128,7 +128,7 @@ graph TB; | 配置项 | 可选值 | 描述 | | --- | --- | --- | | **data_source** | `!!str` | 如果你将将集合名设置为该项的值,该页面将会展示这个集合下的文章列表。你可以在 [Collections](https://jekyllrb.com/docs/collections/) 找到更多关于集合的信息。 | -| **type** | item, brief, grid | TeXt 支持三种文章列表类型,每种类型都对应着一些配置,你可以在 [这里](https://tianqi.name/jekyll-TeXt-theme/samples.html#articles-layout) 看到相关的示例。 | +| **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` 配置项。 | diff --git a/docs/_docs/zh/2.5-authors.md b/docs/_docs/zh/2.5-authors.md index 7d238909319..da36a9c4ebb 100644 --- a/docs/_docs/zh/2.5-authors.md +++ b/docs/_docs/zh/2.5-authors.md @@ -10,7 +10,7 @@ key: docs-authors-zh ```yml Tian Qi: name : Tian Qi - url : https://tianqi.name + url : https://kitian616.github.io avatar : https://wx3.sinaimg.cn/large/73bd9e13ly1fjkqy66hl8j208c08c0td.jpg bio : Author of TeXt. email : kitian616@outlook.com diff --git a/docs/_docs/zh/2.7-i18n.md b/docs/_docs/zh/2.7-i18n.md index 407f5c254b6..7ed42cb53ca 100644 --- a/docs/_docs/zh/2.7-i18n.md +++ b/docs/_docs/zh/2.7-i18n.md @@ -22,4 +22,4 @@ TeXt 把 UI 元素的文字整理成一系列的翻译标识统一的放置在 * | **法语** | fr, fr-BE, fr-CA, fr-CH, fr-FR, fr-LU | -你可以在 [这里](https://tianqi.name/jekyll-TeXt-theme/samples.html#languages) 找到不同语言的示例。 +你可以在 [这里](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 index d3ffaea602b..491ef2a060c 100644 --- a/docs/_docs/zh/3.1-writing-posts.md +++ b/docs/_docs/zh/3.1-writing-posts.md @@ -35,4 +35,4 @@ key: docs-writing-posts-zh 在 `---` 之间你可以设置属性的值,可以把它们看作页面的配置,这些配置会覆盖在 *_config.yml* 文件中设置的全局配置。 -除去 Jekyll 自定义的变量外,TeXt 也定义了一些额外的变量,详情请戳[布局](https://tianqi.name/jekyll-TeXt-theme/docs/zh/layouts)。 +除去 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 index 1e8a1b6eaa0..5e149e0ad8e 100644 --- a/docs/_docs/zh/3.2-markdown-enhancements.md +++ b/docs/_docs/zh/3.2-markdown-enhancements.md @@ -8,9 +8,9 @@ key: docs-markdown-enhancements-zh | 增强项 | 描述 | | --------------- | ----------- | -| **Mathjax** | 在文章中方便的加入数学公式,使用 MathML、LaTeX 和 ASCIIMathML 语法 | [示例](https://tianqi.name/jekyll-TeXt-theme/post/2017/07/07/mathjax.html) | -| **Mermaid** | 在文章中方便的加入流程图 | [示例](https://tianqi.name/jekyll-TeXt-theme/post/2017/06/06/mermaid.html) | -| **Chart** | 在文章中方便的加入可交互的图表 | [示例](https://tianqi.name/jekyll-TeXt-theme/post/2017/05/05/chart.html) | +| **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 diff --git a/docs/_docs/zh/3.3-additional-styles.md b/docs/_docs/zh/3.3-additional-styles.md index 2e3cb3dce30..367e42e0897 100644 --- a/docs/_docs/zh/3.3-additional-styles.md +++ b/docs/_docs/zh/3.3-additional-styles.md @@ -6,7 +6,7 @@ key: docs-additional-styles-zh Jekyll 使用 kramdown 作为默认 Markdown 解释器。kramdown 可以通过 ALDs[^ALDs] 来设置块级元素或行内元素的属性。例如,可以通过 `{:.class-name1.class-name-2}` 来给元素定义样式类。 -TeXt 定义了一些样式类,你可以在文章和页面的方便的使用,可以在 [这里](https://tianqi.name/jekyll-TeXt-theme/post/2017/08/08/additional-styles.html) 看到示例和详细的说明. +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) diff --git a/docs/_posts/2017-05-05-chart.md b/docs/_posts/2017-05-05-chart.md index 0db37c0aa8e..0a870c8fc72 100644 --- a/docs/_posts/2017-05-05-chart.md +++ b/docs/_posts/2017-05-05-chart.md @@ -60,7 +60,7 @@ chart: true You need set `chart: true` in the *_config.yml* or the markdown’s front matter to **enable** it. {:.warning} -[Documentation](https://tianqi.name/jekyll-TeXt-theme/docs/en/markdown-enhancements#chart) +[Documentation](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/markdown-enhancements#chart) ## Line Chart diff --git a/docs/_posts/2017-06-06-mermaid.md b/docs/_posts/2017-06-06-mermaid.md index 54ae4bd61e8..22b5d478628 100644 --- a/docs/_posts/2017-06-06-mermaid.md +++ b/docs/_posts/2017-06-06-mermaid.md @@ -21,7 +21,7 @@ graph TB; You need set `mermaid: true` in the *_config.yml* or the markdown’s front matter to **enable** it. {:.warning} -[Documentation](https://tianqi.name/jekyll-TeXt-theme/docs/en/markdown-enhancements#mermaid) +[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. diff --git a/docs/_posts/2017-07-07-mathjax.md b/docs/_posts/2017-07-07-mathjax.md index c0271bc2250..5f8dcc29407 100644 --- a/docs/_posts/2017-07-07-mathjax.md +++ b/docs/_posts/2017-07-07-mathjax.md @@ -20,7 +20,7 @@ You need set `mathjax: true` in the *_config.yml* or the markdown’s front matt **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://tianqi.name/jekyll-TeXt-theme/docs/en/markdown-enhancements#mathjax) +[Documentation](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/markdown-enhancements#mathjax) **markdown:** diff --git a/docs/_posts/2017-08-02-extensions.md b/docs/_posts/2017-08-02-extensions.md index dea98cb94ab..23d0fe64018 100644 --- a/docs/_posts/2017-08-02-extensions.md +++ b/docs/_posts/2017-08-02-extensions.md @@ -10,7 +10,7 @@ With the help of extensions, you can easily add **audios**, **videos**, **slides -[Documentation](https://tianqi.name/jekyll-TeXt-theme/docs/en/extensions) +[Documentation](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/extensions) ## Audio diff --git a/docs/_posts/2017-08-08-additional-styles.md b/docs/_posts/2017-08-08-additional-styles.md index 4b6e4a75ba7..7527aa9eea0 100644 --- a/docs/_posts/2017-08-08-additional-styles.md +++ b/docs/_posts/2017-08-08-additional-styles.md @@ -39,7 +39,7 @@ Success! -[Documentation](https://tianqi.name/jekyll-TeXt-theme/docs/en/additional-styles) +[Documentation](https://kitian616.github.io/jekyll-TeXt-theme/docs/en/additional-styles) ## Alert @@ -89,12 +89,12 @@ Error Text. | Name | Description | | ---- | ---- | -| Spacing | [Doc](https://tianqi.name/jekyll-TeXt-theme/docs/en/spacing) | -| Grid | [Doc](https://tianqi.name/jekyll-TeXt-theme/docs/en/grid) | -| Icons | [Doc](https://tianqi.name/jekyll-TeXt-theme/docs/en/icons) | -| Image | [Doc](https://tianqi.name/jekyll-TeXt-theme/docs/en/image) | -| Button | [Doc](https://tianqi.name/jekyll-TeXt-theme/docs/en/button) | -| Item | [Doc](https://tianqi.name/jekyll-TeXt-theme/docs/en/item) | -| Card | [Doc](https://tianqi.name/jekyll-TeXt-theme/docs/en/card) | -| Hero | [Doc](https://tianqi.name/jekyll-TeXt-theme/docs/en/hero) | -| Swiper | [Doc](https://tianqi.name/jekyll-TeXt-theme/docs/en/swiper) | +| 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/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 00000000000..4a7462afcf3 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,34 @@ +import js from "@eslint/js"; +import globals from "globals"; + +export default [ + js.configs.recommended, + { + ignores: [ + "_includes/scripts/lib/gallery.js", + "_includes/scripts/components/lightbox.js", + "_includes/search-providers/**", + ], + }, + { + languageOptions: { + globals: { + ...globals.browser, + ...globals.jquery, + ...globals.node, + }, + }, + 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"], + }, + }, +]; diff --git a/jekyll-text-theme.gemspec b/jekyll-text-theme.gemspec index cc47579e11f..6525d95ec8d 100644 --- a/jekyll-text-theme.gemspec +++ b/jekyll-text-theme.gemspec @@ -18,9 +18,9 @@ Gem::Specification.new do |spec| spec.add_runtime_dependency "jekyll", ">= 3.6", "< 5.0" spec.add_runtime_dependency "jekyll-paginate", "~> 1.1" - spec.add_runtime_dependency "jekyll-sitemap", "~> 1.0" - spec.add_runtime_dependency "jekyll-feed", "~> 0.1" - spec.add_runtime_dependency "jemoji", "~> 0.8" + spec.add_runtime_dependency "jekyll-sitemap", "~> 1.4" + spec.add_runtime_dependency "jekyll-feed", "~> 0.17" + spec.add_runtime_dependency "jemoji", "~> 0.13" spec.add_development_dependency "bundler" spec.add_development_dependency "rake", "~> 10.0" diff --git a/package.json b/package.json index 468502f3a0f..64953387555 100644 --- a/package.json +++ b/package.json @@ -36,26 +36,23 @@ "demo-prod": "cross-env JEKYLL_ENV=production bundle exec jekyll serve -H 0.0.0.0 -t --config ./docs/_config.yml", "eslint": "eslint \"_includes/**/*.js\"", "eslint-fix": "eslint \"_includes/**/*.js\" --fix", - "stylelint": "stylelint --syntax scss \"_sass/**/*.scss\"", - "stylelint-fix": "stylelint --syntax scss \"_sass/**/*.scss\" --fix", + "stylelint": "stylelint \"_sass/**/*.scss\"", + "stylelint-fix": "stylelint \"_sass/**/*.scss\" --fix", "gem-build": "rm -fv jekyll-text-theme-*.gem && gem build jekyll-text-theme.gemspec", "gem-push": "gem push jekyll-text-theme-*.gem" }, "devDependencies": { - "@commitlint/cli": "^8.3.5", - "@commitlint/config-conventional": "^8.3.4", - "cross-env": "^7.0.0", - "eslint": "^6.8.0", - "husky": "^4.2.1", - "stylelint": "^13.0.0", - "stylelint-config-recommended-scss": "^4.2.0", - "stylelint-config-standard": "^19.0.0", - "stylelint-order": "^4.0.0", - "stylelint-scss": "^3.14.2" - }, - "husky": { - "hooks": { - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" - } + "@commitlint/cli": "^21.0.2", + "@commitlint/config-conventional": "^21.0.2", + "@eslint/js": "^10.0.1", + "cross-env": "^10.1.0", + "eslint": "^10.4.1", + "globals": "^17.6.0", + "husky": "^9.1.7", + "stylelint": "^17.13.0", + "stylelint-config-recommended-scss": "^17.0.1", + "stylelint-config-standard": "^40.0.0", + "stylelint-order": "^8.1.1", + "stylelint-scss": "^7.2.0" } } diff --git a/test/_data/locale.yml b/test/_data/locale.yml index 6adca98abbc..dded3a6189e 100644 --- a/test/_data/locale.yml +++ b/test/_data/locale.yml @@ -19,7 +19,7 @@ en: &EN FOLLOW_US : "Follow us on [NAME]." EMAIL_ME : "Send me an Email." EMAIL_US : "Send us an Email." - COPYRIGHT_DATES : "2020" + COPYRIGHT_DATES : "2026" en-GB: <<: *EN @@ -50,7 +50,7 @@ zh-Hans: &ZH_HANS FOLLOW_US : "在 [NAME] 上关注我们。" EMAIL_ME : "给我发邮件。" EMAIL_US : "给我们发邮件。" - COPYRIGHT_DATES : "2020" + COPYRIGHT_DATES : "2026" zh: <<: *ZH_HANS @@ -79,7 +79,7 @@ zh-Hant: &ZH_HANT FOLLOW_US : "在 [NAME] 上關注我們。" EMAIL_ME : "給我發郵件。" EMAIL_US : "給我們發郵件。" - COPYRIGHT_DATES : "2020" + COPYRIGHT_DATES : "2026" zh-TW: <<: *ZH_HANT @@ -106,7 +106,7 @@ ko: &KO FOLLOW_US : "[NAME]에서 팔로우하기" EMAIL_ME : "이메일 보내기" EMAIL_US : "이메일 보내기" - COPYRIGHT_DATES : "2020" + COPYRIGHT_DATES : "2026" ko-KR: <<: *KO @@ -131,7 +131,7 @@ fr: &FR FOLLOW_US : "Suivez-nous sur [NAME]." EMAIL_ME : "Envoyez-moi un courriel." EMAIL_US : "Envoyez-nous un courriel" - COPYRIGHT_DATES : "2020" + COPYRIGHT_DATES : "2026" DONATE : "Faites un don de [NAME]." fr-BE: @@ -144,4 +144,27 @@ 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 : "2026" + # @end locale config diff --git a/test/_data/navigation.yml b/test/_data/navigation.yml index 9a2b8a901f4..e6f5ee962e9 100644 --- a/test/_data/navigation.yml +++ b/test/_data/navigation.yml @@ -21,6 +21,7 @@ header: fr-CH : *FR fr-FR : *FR fr-LU : *FR + tr : &TR Arşivdekiler # @end locale config url: /archive.html @@ -46,5 +47,6 @@ header: 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 index 15fdb0497fa..43aa3aaf4fe 100644 --- a/test/_data/variables.yml +++ b/test/_data/variables.yml @@ -41,7 +41,7 @@ default: sources: bootcdn: - font_awesome: 'https://use.fontawesome.com/releases/v5.0.13/css/all.css' + 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' @@ -52,7 +52,7 @@ sources: 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.0.13/css/all.css' + 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' diff --git a/test/_posts/2018-07-01-welcome.md b/test/_posts/2018-07-01-welcome.md index a167231518a..e9dbd54b56d 100644 --- a/test/_posts/2018-07-01-welcome.md +++ b/test/_posts/2018-07-01-welcome.md @@ -5,7 +5,7 @@ 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://tianqi.name/jekyll-TeXt-theme/docs/en/configuration) or [writing a post](https://tianqi.name/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. +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.