├── settings.gradle ├── pnpm-workspace.yaml ├── screenshot.jpg ├── src ├── styles │ ├── tailwind.css │ └── main.css ├── alpine-data │ ├── dropdown.ts │ ├── color-scheme-switcher.ts │ ├── pagination.ts │ └── post-util.ts └── main.ts ├── postcss.config.js ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── templates ├── assets │ ├── images │ │ ├── default-background.png │ │ ├── read.svg │ │ ├── star.svg │ │ ├── crown.svg │ │ ├── lightning.svg │ │ ├── model.svg │ │ ├── computer.svg │ │ └── default-avatar.svg │ └── styles │ │ └── github-markdown.css ├── index.html ├── modules │ ├── widgets │ │ ├── categories.html │ │ ├── home.html │ │ ├── popular-posts.html │ │ ├── tags.html │ │ ├── profile.html │ │ └── latest-comments.html │ ├── tag-filter.html │ ├── category-sub.html │ ├── category-tree.html │ ├── sidebar.html │ ├── category-filter.html │ ├── layout.html │ ├── index │ │ ├── category-filter.html │ │ ├── popular-posts.html │ │ └── tag-filter.html │ ├── featured-post-card.html │ ├── post-card.html │ ├── footer.html │ └── header.html ├── categories.html ├── links.html ├── tags.html ├── search.html ├── category.html ├── tag.html ├── archives.html ├── page.html └── post.html ├── OWNERS ├── prettier.config.js ├── env.d.ts ├── .editorconfig ├── annotation-settings.yaml ├── .eslintrc.cjs ├── .github └── workflows │ └── cd.yaml ├── .gitignore ├── DEVELOP.md ├── README.md ├── vite.config.ts ├── tsconfig.json ├── theme.yaml ├── package.json ├── gradlew.bat ├── tailwind.config.cjs ├── gradlew └── settings.yaml /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'theme-ocean' 2 | -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- 1 | onlyBuiltDependencies: 2 | - esbuild 3 | -------------------------------------------------------------------------------- /screenshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lxware-dev/theme-ocean/HEAD/screenshot.jpg -------------------------------------------------------------------------------- /src/styles/tailwind.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind utilities; 3 | @tailwind components; 4 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lxware-dev/theme-ocean/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /templates/assets/images/default-background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lxware-dev/theme-ocean/HEAD/templates/assets/images/default-background.png -------------------------------------------------------------------------------- /OWNERS: -------------------------------------------------------------------------------- 1 | reviewers: 2 | - ruibaby 3 | - guqing 4 | - JohnNiang 5 | - lan-yonghui 6 | - wangzhen-fit2cloud 7 | 8 | approvers: 9 | - ruibaby 10 | - guqing 11 | - JohnNiang 12 | 13 | -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: [require("prettier-plugin-tailwindcss")], 3 | printWidth: 120, 4 | tabWidth: 2, 5 | useTabs: false, 6 | endOfLine: "lf", 7 | }; 8 | -------------------------------------------------------------------------------- /env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import type { Alpine } from "alpinejs"; 3 | 4 | export {}; 5 | 6 | declare global { 7 | interface Window { 8 | Alpine: Alpine; 9 | SearchWidget: any; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: https://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | [*] 7 | indent_style = space 8 | indent_size = 2 9 | end_of_line = lf 10 | charset = utf-8 11 | trim_trailing_whitespace = false 12 | insert_final_newline = false -------------------------------------------------------------------------------- /annotation-settings.yaml: -------------------------------------------------------------------------------- 1 | spec: 2 | targetRef: 3 | group: content.halo.run 4 | kind: Category 5 | formSchema: 6 | - $formkit: "color" 7 | name: "color" 8 | label: "字体颜色" 9 | apiVersion: v1alpha1 10 | kind: AnnotationSetting 11 | metadata: 12 | generateName: annotation- 13 | -------------------------------------------------------------------------------- /src/alpine-data/dropdown.ts: -------------------------------------------------------------------------------- 1 | export default () => ({ 2 | show: false, 3 | timer: 0, 4 | open: function () { 5 | if (this.timer) { 6 | window.clearTimeout(this.timer); 7 | } 8 | this.show = true; 9 | }, 10 | close: function () { 11 | this.timer = window.setTimeout(() => (this.show = false), 300); 12 | }, 13 | }); 14 | -------------------------------------------------------------------------------- /.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | parser: "@typescript-eslint/parser", 4 | plugins: ["@typescript-eslint", "prettier"], 5 | extends: [ 6 | "eslint:recommended", 7 | "plugin:@typescript-eslint/eslint-recommended", 8 | "plugin:@typescript-eslint/recommended", 9 | "prettier", 10 | ], 11 | env: { 12 | node: true, 13 | }, 14 | }; 15 | -------------------------------------------------------------------------------- /.github/workflows/cd.yaml: -------------------------------------------------------------------------------- 1 | name: CD 2 | 3 | on: 4 | release: 5 | types: 6 | - published 7 | 8 | jobs: 9 | cd: 10 | uses: halo-sigs/reusable-workflows/.github/workflows/theme-cd.yaml@v3 11 | secrets: 12 | halo-pat: ${{ secrets.HALO_PAT }} 13 | permissions: 14 | contents: write 15 | with: 16 | app-id: app-OBDIu 17 | pnpm-version: 10 18 | node-version: 20 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | .DS_Store 12 | *.local 13 | 14 | # Editor directories and files 15 | .vscode/* 16 | !.vscode/extensions.json 17 | .idea 18 | *.suo 19 | *.ntvs* 20 | *.njsproj 21 | *.sln 22 | *.sw? 23 | 24 | .gradle 25 | build 26 | dist 27 | dist.zip 28 | templates/assets/dist 29 | -------------------------------------------------------------------------------- /DEVELOP.md: -------------------------------------------------------------------------------- 1 | ## 开发 2 | 3 | ```bash 4 | git clone git@github.com:lxware-dev/theme-ocean.git ~/halo2-dev/themes/theme-ocean 5 | ``` 6 | 7 | ```bash 8 | cd ~/halo2-dev/themes/theme-ocean 9 | ``` 10 | 11 | ```bash 12 | pnpm install 13 | ``` 14 | 15 | ```bash 16 | pnpm dev 17 | ``` 18 | 19 | 主题开发文档可查阅: 20 | 21 | ## 构建 22 | 23 | ```bash 24 | pnpm build 25 | ``` 26 | 27 | 然后将 `dist` 目录压缩成 `ZIP` 格式压缩包即可在 Halo 后台上传安装。 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Theme Ocean - Halo 开源建站工具知识库主题 2 | 3 | [主题预览](https://kb.fit2cloud.com) 4 | 5 | Theme Ocean 是适用于开源建站工具 [Halo](https://halo.run) 的一款知识库主题,适合企业用于对外公开的产品知识库场景。 6 | 7 | 主题基于 Halo 默认主题 [Earth](https://github.com/halo-dev/theme-earth.git) 的基础上进行开发。 8 | 9 | ## 特性 10 | 11 | - 简洁大方的设计 12 | - 全局搜索支持 13 | - 亮色暗色模式切换 14 | - 丰富灵活的主题设置 15 | 16 | ## 使用方式 17 | 1. 下载,前往版本页面安装最新的版本即可,后续有更新也会在此页面发布。 18 | 2. 安装和更新方式可参考:https://docs.halo.run/user-guide/themes 19 | 20 | ## 其他 21 | - [开发相关](./DEVELOP.md) 22 | -------------------------------------------------------------------------------- /templates/index.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vite"; 2 | import { fileURLToPath } from "url"; 3 | import path from "path"; 4 | 5 | export default defineConfig({ 6 | experimental: { 7 | enableNativePlugin: true, 8 | }, 9 | build: { 10 | outDir: fileURLToPath(new URL("./templates/assets/dist", import.meta.url)), 11 | emptyOutDir: true, 12 | lib: { 13 | entry: path.resolve(__dirname, "src/main.ts"), 14 | name: "main", 15 | fileName: "main", 16 | formats: ["iife"], 17 | cssFileName: "style", 18 | }, 19 | }, 20 | }); 21 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ESNext", 4 | "useDefineForClassFields": true, 5 | "module": "ESNext", 6 | "lib": ["ESNext", "DOM"], 7 | "moduleResolution": "Node", 8 | "strict": true, 9 | "sourceMap": true, 10 | "resolveJsonModule": true, 11 | "isolatedModules": true, 12 | "esModuleInterop": true, 13 | "noEmit": true, 14 | "noUnusedLocals": true, 15 | "noUnusedParameters": true, 16 | "noImplicitReturns": true, 17 | "skipLibCheck": true 18 | }, 19 | "include": ["src", "./env.d.ts"] 20 | } 21 | -------------------------------------------------------------------------------- /templates/modules/widgets/categories.html: -------------------------------------------------------------------------------- 1 |
4 |

5 | 6 | 分类目录 7 |

8 |
9 |
    10 |
  • 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /src/alpine-data/color-scheme-switcher.ts: -------------------------------------------------------------------------------- 1 | import { currentColorScheme } from "../main"; 2 | 3 | export default () => ({ 4 | colorSchemes: [ 5 | { label: "暗色", value: "dark", icon: "i-gg-moon" }, 6 | { label: "亮色", value: "light", icon: "i-gg-sun" }, 7 | ], 8 | currentValue: currentColorScheme, 9 | get colorScheme() { 10 | return this.colorSchemes.find((x) => x.value === this.currentValue); 11 | }, 12 | get nextColorScheme() { 13 | const index = this.colorSchemes.findIndex((x) => x.value === this.currentValue); 14 | return this.colorSchemes[(index + 1) % this.colorSchemes.length]; 15 | }, 16 | }); 17 | -------------------------------------------------------------------------------- /templates/modules/widgets/home.html: -------------------------------------------------------------------------------- 1 | 16 | -------------------------------------------------------------------------------- /theme.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: theme.halo.run/v1alpha1 2 | kind: Theme 3 | metadata: 4 | name: theme-ocean 5 | spec: 6 | displayName: Ocean 7 | author: 8 | name: 凌霞软件 9 | website: https://www.lxware.cn 10 | description: 知识库类型主题 11 | logo: https://www.halo.run/logo 12 | homepage: https://www.halo.run/store/apps/app-OBDIu 13 | repo: https://github.com/lxware-dev/theme-ocean.git 14 | issues: https://github.com/lxware-dev/theme-ocean/issues 15 | settingName: "theme-ocean-setting" 16 | configMapName: "theme-ocean-configMap" 17 | version: 1.6.1 18 | requires: ">=2.21.0" 19 | license: 20 | - name: "GNU General Public License v3.0" 21 | url: "https://github.com/lxware-dev/theme-ocean/blob/master/LICENSE" 22 | -------------------------------------------------------------------------------- /templates/assets/images/read.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/assets/images/star.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/assets/images/crown.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/assets/images/lightning.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/modules/tag-filter.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | 4 | 所有标签 5 |

6 | 18 |
19 | -------------------------------------------------------------------------------- /templates/modules/category-sub.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /templates/modules/category-tree.html: -------------------------------------------------------------------------------- 1 | 21 | -------------------------------------------------------------------------------- /templates/modules/sidebar.html: -------------------------------------------------------------------------------- 1 | 27 | -------------------------------------------------------------------------------- /templates/assets/images/model.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/assets/images/computer.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/modules/widgets/popular-posts.html: -------------------------------------------------------------------------------- 1 |
4 |

5 | 6 | 热门文章 7 |

8 |
9 |
    10 |
  • 11 |
    12 |
    13 |

    14 | 15 |

    16 |

    20 |
    21 |
    22 | 23 | 24 |
    25 |
    26 |
  • 27 |
28 |
29 |
30 | -------------------------------------------------------------------------------- /templates/modules/widgets/tags.html: -------------------------------------------------------------------------------- 1 |
4 |
5 |

6 | 7 | 标签 8 |

9 | 13 | 更多 14 | 15 | 16 |
17 | 29 |
30 | -------------------------------------------------------------------------------- /src/alpine-data/pagination.ts: -------------------------------------------------------------------------------- 1 | export default (page: number, totalPages: number, totalVisible: number) => ({ 2 | page: page, 3 | totalPages: totalPages, 4 | totalVisible: totalVisible, 5 | 6 | get items(): (string | number)[] { 7 | if (totalVisible === 0 || this.totalPages === 0) { 8 | return []; 9 | } 10 | 11 | const maxLength = Math.min(Math.max(0, this.totalVisible) || this.totalPages, this.totalPages); 12 | 13 | if (this.totalPages <= maxLength) { 14 | return this.range(1, this.totalPages); 15 | } 16 | 17 | const even = maxLength % 2 === 0 ? 1 : 0; 18 | const left = Math.floor(maxLength / 2); 19 | const right = this.totalPages - left + 1 + even; 20 | 21 | if (this.page > left && this.page < right) { 22 | const firstItem = 1; 23 | const lastItem = this.totalPages; 24 | const start = this.page - left + 2; 25 | const end = this.page + left - 2 - even; 26 | const secondItem = start - 1 === firstItem + 1 ? 2 : "..."; 27 | const beforeLastItem = end + 1 === lastItem - 1 ? end + 1 : "..."; 28 | 29 | return [1, secondItem, ...this.range(start, end), beforeLastItem, this.totalPages]; 30 | } else if (this.page === left) { 31 | const end = this.page + left - 1 - even; 32 | return [...this.range(1, end), "...", this.totalPages]; 33 | } else if (this.page === right) { 34 | const start = this.page - left + 1; 35 | return [1, "...", ...this.range(start, this.totalPages)]; 36 | } else { 37 | return [...this.range(1, left), "...", ...this.range(right, this.totalPages)]; 38 | } 39 | }, 40 | 41 | range(from: number, to: number) { 42 | const range = []; 43 | 44 | from = from > 0 ? from : 1; 45 | 46 | for (let i = from; i <= to; i++) { 47 | range.push(i); 48 | } 49 | 50 | return range; 51 | }, 52 | }); 53 | -------------------------------------------------------------------------------- /templates/categories.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 |
17 | 18 | 21 | 22 |
23 | 24 |
25 | 此分类下没有文章 26 |
27 | 28 | 37 |
38 |
39 | 40 | -------------------------------------------------------------------------------- /templates/modules/category-filter.html: -------------------------------------------------------------------------------- 1 | 35 | -------------------------------------------------------------------------------- /templates/links.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 |
8 |

链接

9 | 34 |
35 |
36 | 37 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "repository": { 3 | "type": "git", 4 | "url": "https://github.com/lxware-dev/theme-ocean" 5 | }, 6 | "license": "GPL-3.0", 7 | "maintainers": [ 8 | { 9 | "name": "lan-yonghui", 10 | "url": "https://github.com/lan-yonghui" 11 | } 12 | ], 13 | "scripts": { 14 | "build": "pnpm build-only && pnpm package", 15 | "build-only": "tsc && vite build", 16 | "package": "npx @halo-dev/theme-package-cli", 17 | "dev": "vite build --watch", 18 | "lint": "eslint ./src --ext .js,.cjs,.mjs,.ts,.cts,.mts --ignore-path .gitignore", 19 | "prettier": "prettier --write './src/**/*.{js,ts,css,json,ml,yaml,html}' './templates/**/*.html'" 20 | }, 21 | "dependencies": { 22 | "alpinejs": "^3.15.0", 23 | "tocbot": "^4.36.4" 24 | }, 25 | "devDependencies": { 26 | "@iconify-json/bx": "^1.2.2", 27 | "@iconify-json/gg": "^1.2.2", 28 | "@iconify-json/simple-icons": "^1.2.54", 29 | "@iconify-json/tabler": "^1.2.23", 30 | "@tailwindcss/aspect-ratio": "^0.4.2", 31 | "@tailwindcss/typography": "^0.5.19", 32 | "@types/alpinejs": "^3.13.11", 33 | "@types/node": "18.11.9", 34 | "@typescript-eslint/eslint-plugin": "^5.62.0", 35 | "@typescript-eslint/parser": "^5.62.0", 36 | "autoprefixer": "^10.4.21", 37 | "axios": "1.6.0", 38 | "eslint": "^8.57.1", 39 | "eslint-config-prettier": "^8.10.2", 40 | "eslint-plugin-prettier": "^4.2.5", 41 | "postcss": "8.4.31", 42 | "prettier": "^2.8.8", 43 | "prettier-plugin-tailwindcss": "^0.1.13", 44 | "tailwindcss": "^3.4.18", 45 | "tailwindcss-plugin-icons": "^2.2.2", 46 | "typescript": "4.9.3", 47 | "vite": "7.1.9" 48 | }, 49 | "pnpm": { 50 | "overrides": { 51 | "vite": "npm:rolldown-vite@7.1.16" 52 | } 53 | }, 54 | "packageManager": "pnpm@10.18.2+sha512.9fb969fa749b3ade6035e0f109f0b8a60b5d08a1a87fdf72e337da90dcc93336e2280ca4e44f2358a649b83c17959e9993e777c2080879f3801e6f0d999ad3dd" 55 | } 56 | -------------------------------------------------------------------------------- /templates/tags.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 |
8 | 9 |
10 | 11 | 12 | 13 |
20 | 21 | 24 | 25 |
26 | 27 |
28 | 此标签下没有文章 29 |
30 | 31 | 40 |
41 |
42 |
43 | 44 | -------------------------------------------------------------------------------- /src/alpine-data/post-util.ts: -------------------------------------------------------------------------------- 1 | import axios from "axios"; 2 | 3 | export default (postId: any, likeNum: string) => ({ 4 | postId: postId, 5 | likeNum: likeNum, 6 | loading: false, 7 | liked: false, 8 | noLiked: false, 9 | get upvote() { 10 | this.init(); 11 | if (this.loading || this.liked) return; 12 | 13 | this.loading = true; 14 | axios 15 | .post( 16 | "/apis/api.halo.run/v1alpha1/trackers/upvote", 17 | { 18 | group: "content.halo.run", 19 | plural: "posts", 20 | name: this.postId, 21 | }, 22 | { 23 | headers: { 24 | "Content-Type": "application/json; charset=utf-8", 25 | }, 26 | } 27 | ) 28 | .then(() => { 29 | this.liked = true; 30 | this.noLiked = false; 31 | this.loading = false; 32 | localStorage.setItem("likeNum:" + this.postId, String(Number(this.likeNum) + 1)); 33 | this.likeNum = String(Number(this.likeNum) + 1); 34 | }) 35 | .catch(() => { 36 | this.loading = false; 37 | }); 38 | }, 39 | get downvote() { 40 | if (this.loading || !this.liked) return; 41 | 42 | this.loading = true; 43 | axios 44 | .post( 45 | "/apis/api.halo.run/v1alpha1/trackers/downvote", 46 | { 47 | group: "content.halo.run", 48 | plural: "posts", 49 | name: this.postId, 50 | }, 51 | { 52 | headers: { 53 | "Content-Type": "application/json; charset=utf-8", 54 | }, 55 | } 56 | ) 57 | .then(() => { 58 | let num = Number(this.likeNum) - 1; 59 | this.likeNum = String(num < 0 ? 0 : num); 60 | localStorage.removeItem("likeNum:" + this.postId); 61 | this.loading = false; 62 | this.liked = false; 63 | this.noLiked = true; 64 | }) 65 | .catch(() => { 66 | this.loading = false; 67 | }); 68 | }, 69 | init() { 70 | if (this.likeNumExists(this.postId) !== null && Number(this.likeNumExists(this.postId)) > 0) { 71 | this.liked = true; 72 | } 73 | this.noLiked = false; 74 | return this.liked; 75 | }, 76 | likeNumExists(id: any) { 77 | return localStorage.getItem("likeNum:" + id); 78 | }, 79 | }); 80 | -------------------------------------------------------------------------------- /templates/modules/layout.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 |
29 |
30 |
31 | 32 |
33 |
34 | 35 | 36 |
37 | 38 | 39 | 40 | 41 | 42 | 43 |
44 |
45 |
46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /templates/modules/index/category-filter.html: -------------------------------------------------------------------------------- 1 | 2 |

6 | 按产品浏览 7 |

8 | 47 |
48 | -------------------------------------------------------------------------------- /templates/search.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 |

8 | 9 |
10 |
14 |
15 | 20 |

25 |
29 |
30 |
31 |
32 | 33 |
37 | 41 | 没有搜索到文章 42 | 43 | 44 | 请输入搜索关键词 45 | 46 |
47 |
48 | 49 | -------------------------------------------------------------------------------- /templates/modules/widgets/profile.html: -------------------------------------------------------------------------------- 1 |
5 |
6 |
7 | 8 |
9 |

10 |
11 |

12 |
13 |
14 |
15 | 16 | 文章数 17 |
18 |
19 | 23 | 分类数 24 |
25 |
26 | 30 | 评论数 31 |
32 |
33 | 访问量 35 |
36 |
37 |
38 | 44 | 45 | 46 |
47 |
48 |
49 | -------------------------------------------------------------------------------- /templates/modules/featured-post-card.html: -------------------------------------------------------------------------------- 1 |
5 |
6 | 7 | 12 | 13 |
14 |
15 |
19 | 26 | 27 | 34 | 35 |
36 |

39 | 40 |

41 |

42 |
43 | 50 | 55 | 59 | 60 |
61 |
62 |
63 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /src/styles/main.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, 3 | Noto Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji" !important; 4 | color: #3d3d3d; 5 | -webkit-font-smoothing: antialiased; 6 | -moz-osx-font-smoothing: grayscale; 7 | text-rendering: optimizeLegibility; 8 | overflow: overlay; 9 | } 10 | 11 | *::-webkit-scrollbar-track-piece { 12 | background-color: #f8f8f8; 13 | -webkit-border-radius: 2em; 14 | -moz-border-radius: 2em; 15 | border-radius: 2em; 16 | } 17 | 18 | *::-webkit-scrollbar { 19 | width: 8px; 20 | height: 8px; 21 | } 22 | 23 | *::-webkit-scrollbar-thumb { 24 | background-color: #ddd; 25 | background-clip: padding-box; 26 | -webkit-border-radius: 2em; 27 | -moz-border-radius: 2em; 28 | border-radius: 2em; 29 | } 30 | 31 | *::-webkit-scrollbar-thumb:hover { 32 | background-color: #bbb; 33 | } 34 | 35 | .menu-sticky { 36 | @apply fixed top-0 left-0 right-0 z-10 drop-shadow-md backdrop-blur-lg; 37 | } 38 | 39 | .toc-list-item>.toc-list { 40 | @apply my-3 ml-3 space-y-1 border-l pl-2; 41 | } 42 | 43 | .is-active-link { 44 | @apply rounded bg-gray-100 dark:bg-slate-600; 45 | } 46 | 47 | .text-overflow { 48 | overflow: hidden; 49 | text-overflow: ellipsis; 50 | display: -webkit-box; 51 | -webkit-line-clamp: 1; 52 | -webkit-box-orient: vertical; 53 | } 54 | 55 | .text-overflow-2 { 56 | overflow: hidden; 57 | text-overflow: ellipsis; 58 | display: -webkit-box; 59 | -webkit-line-clamp: 2; 60 | -webkit-box-orient: vertical; 61 | } 62 | 63 | /*a标签增加指上下划线*/ 64 | .hover-within a { 65 | position: relative; 66 | } 67 | 68 | .hover-within a::after { 69 | --tw-bg-opacity: 1; 70 | background-color: rgb(255 255 255 / var(--tw-bg-opacity)); 71 | content: ""; 72 | display: block; 73 | height: 1px; 74 | margin-top: 2px; 75 | position: absolute; 76 | right: 0; 77 | transition: width 0.2s ease; 78 | -webkit-transition: width 0.2s ease; 79 | width: 0; 80 | } 81 | 82 | .hover-within a:hover::after { 83 | background: #3296ef; 84 | left: 0; 85 | width: 100%; 86 | } 87 | 88 | /*a标签增加指上下划线*/ 89 | 90 | /* Search page */ 91 | #search-list b { 92 | background-color: #d8eafd; 93 | color: #1077d1; 94 | } 95 | 96 | /* Override styles for markdown content */ 97 | .markdown-body { 98 | background-color: transparent !important; 99 | 100 | line-height: 1.75; 101 | 102 | ul { 103 | list-style: disc; 104 | } 105 | 106 | ol { 107 | list-style: decimal; 108 | } 109 | 110 | h1, 111 | h2, 112 | h3, 113 | h4, 114 | h5, 115 | h6 { 116 | border: none !important; 117 | } 118 | 119 | pre { 120 | padding: 0 !important; 121 | 122 | code { 123 | border: 1px solid #fbf6f6; 124 | } 125 | } 126 | 127 | p>img { 128 | border-radius: 0.4rem; 129 | overflow: hidden; 130 | @apply shadow; 131 | } 132 | 133 | :not(pre)>code { 134 | background-color: #afb8c133; 135 | } 136 | } -------------------------------------------------------------------------------- /templates/category.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 |
16 | 17 | 20 | 21 |
22 | 23 |
24 | 62 |
63 | 64 |
65 | 此分类下没有文章 66 |
67 |
68 | 69 | -------------------------------------------------------------------------------- /templates/tag.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 |
8 | 9 |
10 | 11 |
18 | 19 | 22 | 23 |
24 | 25 |
26 | 64 |
65 | 66 |
67 | 此标签下没有文章 68 |
69 |
70 | 71 | -------------------------------------------------------------------------------- /templates/archives.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 |
16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 |
26 | 27 |
28 | 66 |
67 | 68 |
69 | 当前没有文章 70 |
71 |
72 | 73 | -------------------------------------------------------------------------------- /templates/modules/index/popular-posts.html: -------------------------------------------------------------------------------- 1 | 5 |

9 | 推荐阅读 10 |

11 | 65 |
66 | -------------------------------------------------------------------------------- /templates/assets/images/default-avatar.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/modules/widgets/latest-comments.html: -------------------------------------------------------------------------------- 1 |
4 |

5 | 6 | 最新评论 7 |

8 |
9 |
    10 |
  • 11 |
    12 | Comment Avatar 13 |
    14 |
    15 |

    Phyllis McKenzie

    16 |

    1h

    17 |
    18 |

    19 | Fugit quae nam dolores impedit quia fuga pariatur dignissimos recusandae. 20 |

    21 |
    22 |
    23 |
  • 24 |
  • 25 |
    26 | Comment Avatar 27 |
    28 |
    29 |

    Willard Labadie I

    30 |

    1h

    31 |
    32 |

    33 | Officiis quis quos repudiandae quam delectus impedit quidem amet ut. 34 |

    35 |
    36 |
    37 |
  • 38 |
  • 39 |
    40 | Comment Avatar 41 |
    42 |
    43 |

    Miss Leonard Sporer

    44 |

    1h

    45 |
    46 |

    Nesciunt dolores et debitis.

    47 |
    48 |
    49 |
  • 50 |
  • 51 |
    52 | Comment Avatar 53 |
    54 |
    55 |

    Tyrone Fisher

    56 |

    1h

    57 |
    58 |

    Et nesciunt dolorem eum ut corporis.

    59 |
    60 |
    61 |
  • 62 |
  • 63 |
    64 | Comment Avatar 65 |
    66 |
    67 |

    Angie Braun V

    68 |

    1h

    69 |
    70 |

    Autem labore ipsam earum reiciendis eum omnis.

    71 |
    72 |
    73 |
  • 74 |
75 |
76 |
77 | -------------------------------------------------------------------------------- /templates/modules/index/tag-filter.html: -------------------------------------------------------------------------------- 1 | 2 |

6 | 常见主题 7 |

8 |
9 |
10 |
    14 | 15 | 16 |
  • 17 |
    18 |
    19 | 20 | 27 | 28 |
    29 |
    30 | 31 |

    35 |
    36 |
    37 |
    38 | 39 |
      40 |
    • 41 |
      42 |
      43 | 44 | 51 | 52 |
      53 |
      54 | 60 | 61 |
      62 |
      63 |
    • 64 |
    65 |
    66 |
  • 67 |
    68 |
    69 |
70 |
71 |
72 |
73 | -------------------------------------------------------------------------------- /tailwind.config.cjs: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | const { Icons } = require("tailwindcss-plugin-icons"); 3 | const plugin = require('tailwindcss/plugin') 4 | module.exports = { 5 | content: ["./templates/**/*.html", "./src/main.ts"], 6 | darkMode: "class", 7 | theme: { 8 | extend: { 9 | lineClamp: { 10 | 7: "7", 11 | 8: "8", 12 | }, 13 | typography: { 14 | DEFAULT: { 15 | css: { 16 | h1 : { 17 | marginTop: '0.25em !important', 18 | marginBottom: '0.25em !important', 19 | }, 20 | h2 : { 21 | marginTop: '0.25em !important', 22 | marginBottom: '0.25em !important', 23 | }, 24 | h3 : { 25 | marginTop: '0.25em !important', 26 | marginBottom: '0.25em !important', 27 | }, 28 | h4 : { 29 | marginTop: '0.25em !important', 30 | marginBottom: '0.25em !important', 31 | }, 32 | ul : { 33 | marginTop: '0.25em !important', 34 | marginBottom: '0.25em !important', 35 | }, 36 | li : { 37 | marginTop: '0.25em !important', 38 | marginBottom: '0.25em !important', 39 | }, 40 | dl : { 41 | marginTop: '0.25em !important', 42 | marginBottom: '0.25em !important', 43 | }, 44 | p : { 45 | marginTop: '0.25em !important', 46 | marginBottom: '0.25em !important', 47 | }, 48 | img : { 49 | marginTop: '0.5em !important', 50 | marginBottom: '0.5em !important', 51 | }, 52 | dd : { 53 | marginTop: '0.25em !important', 54 | marginBottom: '0.25em !important', 55 | }, 56 | ol : { 57 | marginTop: '0.25em !important', 58 | marginBottom: '0.25em !important', 59 | }, 60 | pre : { 61 | marginTop: '0.25em !important', 62 | marginBottom: '0.25em !important', 63 | }, 64 | hr : { 65 | marginTop: '1.25em !important', 66 | marginBottom: '1.25em !important', 67 | }, 68 | }, 69 | }, 70 | }, 71 | }, 72 | container: { 73 | padding: { 74 | DEFAULT: "1rem", 75 | sm: "2rem", 76 | lg: "4rem", 77 | xl: "5rem", 78 | "2xl": "6rem", 79 | }, 80 | }, 81 | }, 82 | plugins: [ 83 | require("@tailwindcss/aspect-ratio"), 84 | require("@tailwindcss/typography"), 85 | Icons(() => ({ 86 | gg: { 87 | includeAll: true, 88 | }, 89 | tabler: { 90 | includeAll: true, 91 | }, 92 | simpleIcons: { 93 | includeAll: true, 94 | }, 95 | bx: { 96 | includeAll: true, 97 | }, 98 | })), 99 | ], 100 | safelist: [ 101 | "i-gg-sun", 102 | "i-gg-moon", 103 | "i-tabler-mail", 104 | "i-simple-icons-wechat", 105 | "i-simple-icons-tencentqq", 106 | "i-simple-icons-sinaweibo", 107 | "i-simple-icons-zhihu", 108 | "i-simple-icons-douban", 109 | "i-simple-icons-bilibili", 110 | "i-simple-icons-tiktok", 111 | "i-simple-icons-telegram", 112 | "i-simple-icons-facebook", 113 | "i-simple-icons-instagram", 114 | "i-simple-icons-linkedin", 115 | "i-simple-icons-twitter", 116 | "i-simple-icons-slack", 117 | "i-simple-icons-discord", 118 | "i-simple-icons-youtube", 119 | "i-simple-icons-steam", 120 | "i-simple-icons-github", 121 | "i-simple-icons-gitlab", 122 | ], 123 | }; 124 | -------------------------------------------------------------------------------- /templates/modules/post-card.html: -------------------------------------------------------------------------------- 1 |
6 |
11 | 12 | 18 | 19 |
20 |
21 |
22 |
23 |
28 |
32 | 40 | 41 | 49 | 50 |
51 |

55 | 56 |

57 |

62 |
63 | 70 | 75 | 79 | 80 |
81 |
82 |
83 | -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import "./styles/tailwind.css"; 2 | import "./styles/main.css"; 3 | import Alpine from "alpinejs"; 4 | import tocbot from "tocbot"; 5 | import dropdown from "./alpine-data/dropdown"; 6 | import colorSchemeSwitcher from "./alpine-data/color-scheme-switcher"; 7 | import pagination from "./alpine-data/pagination"; 8 | import postUtil from "./alpine-data/post-util"; 9 | 10 | window.Alpine = Alpine; 11 | 12 | Alpine.data("dropdown", dropdown); 13 | Alpine.data("colorSchemeSwitcher", colorSchemeSwitcher); 14 | // @ts-ignore 15 | Alpine.data("pagination", pagination); 16 | // @ts-ignore 17 | Alpine.data("postUtil", postUtil); 18 | 19 | Alpine.start(); 20 | 21 | const onScroll = () => { 22 | const headerMenu = document.getElementById("header-menu"); 23 | if (window.scrollY > 0) { 24 | headerMenu?.classList.add("menu-sticky"); 25 | } else { 26 | headerMenu?.classList.remove("menu-sticky"); 27 | } 28 | }; 29 | 30 | window.addEventListener("scroll", onScroll); 31 | 32 | export function generateToc() { 33 | tocbot.init({ 34 | tocSelector: ".toc", 35 | contentSelector: "#content", 36 | headingSelector: "h1, h2, h3, h4", 37 | extraListClasses: "space-y-1 dark:border-zinc-500", 38 | extraLinkClasses: 39 | "group flex items-center justify-between rounded py-1 px-1.5 transition-all hover:bg-zinc-100 text-sm opacity-80 dark:hover:bg-zinc-700 dark:text-zinc-50", 40 | collapseDepth: 6, 41 | headingsOffset: 100, 42 | scrollSmooth: true, 43 | scrollSmoothOffset: -100, 44 | }); 45 | } 46 | 47 | type ColorSchemeType = "system" | "dark" | "light"; 48 | 49 | export let currentColorScheme: ColorSchemeType = "system"; 50 | 51 | export function initColorScheme(defaultColorScheme: ColorSchemeType, enableChangeColorScheme: boolean) { 52 | let colorScheme = defaultColorScheme; 53 | 54 | if (enableChangeColorScheme) { 55 | colorScheme = (localStorage.getItem("color-scheme") as ColorSchemeType) || defaultColorScheme; 56 | } 57 | 58 | currentColorScheme = colorScheme; 59 | 60 | setColorScheme(colorScheme, false); 61 | } 62 | 63 | export function setColorScheme(colorScheme: ColorSchemeType, store: boolean) { 64 | if (colorScheme === "system") { 65 | const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches; 66 | document.documentElement.classList.add(prefersDark ? "dark" : "light"); 67 | document.documentElement.classList.remove(prefersDark ? "light" : "dark"); 68 | } else { 69 | document.documentElement.classList.add(colorScheme); 70 | document.documentElement.classList.remove(colorScheme === "dark" ? "light" : "dark"); 71 | } 72 | currentColorScheme = colorScheme; 73 | if (store) { 74 | localStorage.setItem("color-scheme", colorScheme); 75 | } 76 | } 77 | 78 | window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", function () { 79 | if (currentColorScheme === "system") { 80 | setColorScheme("system", false); 81 | } 82 | }); 83 | 84 | /*移除HTML标签代码*/ 85 | export function removeHTMLTag(str: String) { 86 | str = str.replace(/<.*?>/g, ""); //去除HTML tag 87 | str = str.replace(/<\/?[^>]*>/g, ""); //去除HTML tag 88 | str = str.replace(/[ | ]*\n/g, "\n"); //去除行尾空 89 | str = str.replace(/\n[\s| | ]*\r/g, "\n"); //去除多余空行 90 | str = str.replace(/ /gi, ""); //去掉 91 | // str = str.replace(/[a-zA-Z]+/g, ''); //去除字母 92 | return str; 93 | } 94 | 95 | /*阅读时间*/ 96 | export function readTime() { 97 | const contentHtml: HTMLElement | null = document.getElementById("content"); 98 | // @ts-ignore 99 | let str = contentHtml.innerHTML; 100 | return ( 101 | "文章共计 " + 102 | removeHTMLTag(str).length + 103 | " 个字,阅读完成需要 " + 104 | Math.ceil(removeHTMLTag(str).length / 400) + 105 | " 分钟" 106 | ); 107 | } 108 | 109 | // 快速返回顶部或底部 110 | const onScrollToTop = () => { 111 | const backToTop = document.getElementById("back-to-top"); 112 | const backToDown = document.getElementById("back-to-down"); 113 | if (window.scrollY < 100) { 114 | backToTop?.classList.add("hidden"); 115 | backToDown?.classList.add("hidden"); 116 | } else if (window.scrollY > 300) { 117 | backToTop?.classList.remove("hidden"); 118 | backToDown?.classList.add("hidden"); 119 | } else { 120 | backToTop?.classList.add("hidden"); 121 | backToDown?.classList.remove("hidden"); 122 | } 123 | }; 124 | 125 | window.addEventListener("scroll", onScrollToTop); 126 | -------------------------------------------------------------------------------- /templates/page.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 14 | 17 | 18 | 19 |
20 |
21 |
22 | 28 |
29 | 34 |
35 | 36 | / 37 | 38 | / 39 | 40 | / 41 | 42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | 50 |
53 |
54 |
55 |
58 |
59 |
60 |
61 |

62 |
67 |
72 |
73 | 74 |
75 |

评论

76 | 82 |
83 |
84 | 85 | 91 |
92 |
93 |
94 | 95 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright © 2015-2021 the original authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | # 21 | # Gradle start up script for POSIX generated by Gradle. 22 | # 23 | # Important for running: 24 | # 25 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is 26 | # noncompliant, but you have some other compliant shell such as ksh or 27 | # bash, then to run this script, type that shell name before the whole 28 | # command line, like: 29 | # 30 | # ksh Gradle 31 | # 32 | # Busybox and similar reduced shells will NOT work, because this script 33 | # requires all of these POSIX shell features: 34 | # * functions; 35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}», 36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»; 37 | # * compound commands having a testable exit status, especially «case»; 38 | # * various built-in commands including «command», «set», and «ulimit». 39 | # 40 | # Important for patching: 41 | # 42 | # (2) This script targets any POSIX shell, so it avoids extensions provided 43 | # by Bash, Ksh, etc; in particular arrays are avoided. 44 | # 45 | # The "traditional" practice of packing multiple parameters into a 46 | # space-separated string is a well documented source of bugs and security 47 | # problems, so this is (mostly) avoided, by progressively accumulating 48 | # options in "$@", and eventually passing that to Java. 49 | # 50 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, 51 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; 52 | # see the in-line comments for details. 53 | # 54 | # There are tweaks for specific operating systems such as AIX, CygWin, 55 | # Darwin, MinGW, and NonStop. 56 | # 57 | # (3) This script is generated from the Groovy template 58 | # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt 59 | # within the Gradle project. 60 | # 61 | # You can find Gradle at https://github.com/gradle/gradle/. 62 | # 63 | ############################################################################## 64 | 65 | # Attempt to set APP_HOME 66 | 67 | # Resolve links: $0 may be a link 68 | app_path=$0 69 | 70 | # Need this for daisy-chained symlinks. 71 | while 72 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path 73 | [ -h "$app_path" ] 74 | do 75 | ls=$( ls -ld "$app_path" ) 76 | link=${ls#*' -> '} 77 | case $link in #( 78 | /*) app_path=$link ;; #( 79 | *) app_path=$APP_HOME$link ;; 80 | esac 81 | done 82 | 83 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit 84 | 85 | APP_NAME="Gradle" 86 | APP_BASE_NAME=${0##*/} 87 | 88 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 89 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 90 | 91 | # Use the maximum available, or set MAX_FD != -1 to use that value. 92 | MAX_FD=maximum 93 | 94 | warn () { 95 | echo "$*" 96 | } >&2 97 | 98 | die () { 99 | echo 100 | echo "$*" 101 | echo 102 | exit 1 103 | } >&2 104 | 105 | # OS specific support (must be 'true' or 'false'). 106 | cygwin=false 107 | msys=false 108 | darwin=false 109 | nonstop=false 110 | case "$( uname )" in #( 111 | CYGWIN* ) cygwin=true ;; #( 112 | Darwin* ) darwin=true ;; #( 113 | MSYS* | MINGW* ) msys=true ;; #( 114 | NONSTOP* ) nonstop=true ;; 115 | esac 116 | 117 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 118 | 119 | 120 | # Determine the Java command to use to start the JVM. 121 | if [ -n "$JAVA_HOME" ] ; then 122 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 123 | # IBM's JDK on AIX uses strange locations for the executables 124 | JAVACMD=$JAVA_HOME/jre/sh/java 125 | else 126 | JAVACMD=$JAVA_HOME/bin/java 127 | fi 128 | if [ ! -x "$JAVACMD" ] ; then 129 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 130 | 131 | Please set the JAVA_HOME variable in your environment to match the 132 | location of your Java installation." 133 | fi 134 | else 135 | JAVACMD=java 136 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 137 | 138 | Please set the JAVA_HOME variable in your environment to match the 139 | location of your Java installation." 140 | fi 141 | 142 | # Increase the maximum file descriptors if we can. 143 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then 144 | case $MAX_FD in #( 145 | max*) 146 | MAX_FD=$( ulimit -H -n ) || 147 | warn "Could not query maximum file descriptor limit" 148 | esac 149 | case $MAX_FD in #( 150 | '' | soft) :;; #( 151 | *) 152 | ulimit -n "$MAX_FD" || 153 | warn "Could not set maximum file descriptor limit to $MAX_FD" 154 | esac 155 | fi 156 | 157 | # Collect all arguments for the java command, stacking in reverse order: 158 | # * args from the command line 159 | # * the main class name 160 | # * -classpath 161 | # * -D...appname settings 162 | # * --module-path (only if needed) 163 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. 164 | 165 | # For Cygwin or MSYS, switch paths to Windows format before running java 166 | if "$cygwin" || "$msys" ; then 167 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) 168 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) 169 | 170 | JAVACMD=$( cygpath --unix "$JAVACMD" ) 171 | 172 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 173 | for arg do 174 | if 175 | case $arg in #( 176 | -*) false ;; # don't mess with options #( 177 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath 178 | [ -e "$t" ] ;; #( 179 | *) false ;; 180 | esac 181 | then 182 | arg=$( cygpath --path --ignore --mixed "$arg" ) 183 | fi 184 | # Roll the args list around exactly as many times as the number of 185 | # args, so each arg winds up back in the position where it started, but 186 | # possibly modified. 187 | # 188 | # NB: a `for` loop captures its iteration list before it begins, so 189 | # changing the positional parameters here affects neither the number of 190 | # iterations, nor the values presented in `arg`. 191 | shift # remove old arg 192 | set -- "$@" "$arg" # push replacement arg 193 | done 194 | fi 195 | 196 | # Collect all arguments for the java command; 197 | # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of 198 | # shell script including quotes and variable substitutions, so put them in 199 | # double quotes to make sure that they get re-expanded; and 200 | # * put everything else in single quotes, so that it's not re-expanded. 201 | 202 | set -- \ 203 | "-Dorg.gradle.appname=$APP_BASE_NAME" \ 204 | -classpath "$CLASSPATH" \ 205 | org.gradle.wrapper.GradleWrapperMain \ 206 | "$@" 207 | 208 | # Use "xargs" to parse quoted args. 209 | # 210 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed. 211 | # 212 | # In Bash we could simply go: 213 | # 214 | # readarray ARGS < <( xargs -n1 <<<"$var" ) && 215 | # set -- "${ARGS[@]}" "$@" 216 | # 217 | # but POSIX shell has neither arrays nor command substitution, so instead we 218 | # post-process each arg (as a line of input to sed) to backslash-escape any 219 | # character that might be a shell metacharacter, then use eval to reverse 220 | # that process (while maintaining the separation between arguments), and wrap 221 | # the whole thing up as a single "set" statement. 222 | # 223 | # This will of course break if any of these variables contains a newline or 224 | # an unmatched quote. 225 | # 226 | 227 | eval "set -- $( 228 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | 229 | xargs -n1 | 230 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | 231 | tr '\n' ' ' 232 | )" '"$@"' 233 | 234 | exec "$JAVACMD" "$@" 235 | -------------------------------------------------------------------------------- /templates/post.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | 21 |
22 | 27 |

28 |
29 | 36 | 37 |
38 |
39 |
43 |
44 | 50 |
51 |
52 | 57 | 58 | / 59 | 60 | / 61 | 62 | / 63 | 64 |
65 |
66 |
67 |
68 |
69 | 75 | 81 |
82 | 87 |
90 |
91 |
92 |
95 |
96 |
97 |
98 | 99 |
100 |
101 |
107 |
113 |
114 | 146 |
147 |
148 | 是否对你有帮助? 149 | 157 | 165 | 170 | 178 |
179 | 180 |
181 |

评论

182 | 188 |
189 |
190 | 196 |
197 |
198 |
199 | 200 |
203 |
204 |

205 | 206 | 返回首页 / 211 | 返回上一页 216 | 217 |

218 |
219 |
220 |
223 |

224 | 225 | 目录 226 |

227 |
228 |
229 |
230 | 231 | 232 | 233 | 234 | 235 | 238 | 239 | 240 | -------------------------------------------------------------------------------- /templates/modules/footer.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | 28 |
29 |
30 | 31 |
35 | 39 | 40 | 50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 | 61 | 68 | 69 |
70 | Copyright © 71 | 72 | . All Rights Reserved.
Powered by 73 | Halo. 74 |
75 |
76 |
77 |
78 |
79 | 80 |
81 |
82 |
83 | 84 | 90 | 94 | 95 | 100 | 101 |
102 |
106 | 107 |
108 |

112 |
    113 |
  • 114 | 119 |
  • 120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 | 128 | © 129 | 130 | . All Rights Reserved. Powered by 131 | Halo. 132 | 133 |
137 | 143 |
144 |
145 |
146 |
147 |
148 | 149 |
150 |
151 | 152 | 158 | 159 | 160 | 161 | 162 |
    166 |
  • 167 | 172 |
  • 173 |
174 |
175 |
176 |
177 | 178 | 185 | 186 | 187 | © 188 | 189 | . All Rights Reserved. Powered by 190 | Halo. 191 | 192 |
193 | 194 |
195 |
196 |
197 | 221 |
222 |
223 | 224 |
228 | 232 | 233 | 243 |
244 |
245 |
246 |
247 |
248 |
249 |

关注我们

250 | 251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 | 260 | 267 | 268 |
269 | Copyright © 270 | 271 | . All Rights Reserved.
Powered by 272 | Halo. 273 |
274 |
275 |
276 |
277 |
278 | 279 | 286 | 287 | 294 | -------------------------------------------------------------------------------- /settings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1alpha1 2 | kind: Setting 3 | metadata: 4 | name: theme-ocean-setting 5 | spec: 6 | forms: 7 | - group: layout 8 | label: 布局 9 | formSchema: 10 | - $formkit: select 11 | name: post_list_layout 12 | label: 文章列表布局 13 | value: single 14 | options: 15 | - label: 单条 16 | value: single 17 | - label: 网格(一行两列) 18 | value: grid_2 19 | - label: 网格(一行三列) 20 | value: grid_3 21 | help: "选择单条时,文章卡片的图片将位于左侧" 22 | - $formkit: radio 23 | name: content_header 24 | label: 文章页顶部图片 25 | value: false 26 | options: 27 | - label: 显示 28 | value: true 29 | - label: 隐藏 30 | value: false 31 | - $formkit: radio 32 | name: hide_avatar 33 | id: hide_avatar 34 | key: hide_avatar 35 | label: 隐藏作者头像 36 | value: false 37 | options: 38 | - label: 是 39 | value: true 40 | - label: 否 41 | value: false 42 | - $formkit: radio 43 | name: hide_author 44 | id: hide_author 45 | key: hide_author 46 | label: 隐藏作者名称 47 | value: false 48 | options: 49 | - label: 是 50 | value: true 51 | - label: 否 52 | value: false 53 | - $formkit: text 54 | if: "$get(hide_author).value === false" 55 | name: common_author 56 | label: 统一作者名称 57 | help: "为空显示原文章作者" 58 | 59 | - group: banner 60 | label: Banner 61 | formSchema: 62 | - $formkit: text 63 | name: custom_title 64 | label: Banner标题 65 | - $formkit: text 66 | name: custom_sub_title 67 | label: Banner副标题 68 | - $formkit: select 69 | name: header_background_type 70 | id: header_background_type 71 | key: header_background_type 72 | label: Banner背景 73 | value: image 74 | options: 75 | - label: 手动设置 76 | value: manual 77 | - label: 图片 78 | value: image 79 | - $formkit: text 80 | if: "$get(header_background_type).value === manual" 81 | name: header_background 82 | id: header_background 83 | key: header_background 84 | label: Banner背景色 85 | help: "填写 16 进制颜色" 86 | - $formkit: attachment 87 | if: "$get(header_background_type).value === image" 88 | name: header_background_image 89 | id: header_background_image 90 | key: header_background_image 91 | label: Banner背景图片 92 | value: /themes/theme-ocean/assets/images/default-background.png 93 | - $formkit: radio 94 | name: search_method 95 | value: page 96 | label: 搜索形式 97 | options: 98 | - label: 页面 99 | value: page 100 | - label: 弹窗 101 | value: popup 102 | - label: 隐藏 103 | value: none 104 | - $formkit: tagCheckbox 105 | name: tags 106 | id: tags 107 | key: tags 108 | label: 热门查询 109 | help: "选择多于三个标签,自动隐藏超出标签" 110 | 111 | - group: index 112 | label: 首页 113 | formSchema: 114 | - $formkit: radio 115 | name: index_menu 116 | id: index_menu 117 | key: index_menu 118 | label: 是否显示模块一 119 | value: false 120 | options: 121 | - label: 显示 122 | value: true 123 | - label: 隐藏 124 | value: false 125 | - $formkit: text 126 | if: "$get(index_menu).value === true" 127 | name: module_one 128 | id: module_one 129 | key: module_one 130 | value: 模块一 131 | label: 模块一名称 132 | help: 默认显示前四个分类,字体颜色和stars数需配置分类元数据,增加 color 和 stars 133 | - $formkit: select 134 | if: "$get(index_menu).value === true" 135 | name: module_one_layout 136 | label: 模块一布局 137 | value: 4 138 | options: 139 | - label: 网格(一行三列) 140 | value: 3 141 | - label: 网格(一行四列) 142 | value: 4 143 | - label: 网格(一行五列) 144 | value: 5 145 | help: 默认显示一行四列 146 | - $formkit: radio 147 | name: index_theme 148 | id: index_theme 149 | key: index_theme 150 | label: 是否显示模块二 151 | value: false 152 | options: 153 | - label: 显示 154 | value: true 155 | - label: 隐藏 156 | value: false 157 | - $formkit: text 158 | if: "$get(index_theme).value === true" 159 | name: module_two 160 | id: module_two 161 | key: module_two 162 | value: 模块二 163 | label: 模块二名称 164 | help: "模块二图标需配置菜单元数据,增加 icon" 165 | - $formkit: menuRadio 166 | if: "$get(index_theme).value === true" 167 | name: menu 168 | id: menu 169 | key: menu 170 | label: 模块二数据 171 | help: 默认显示前四个一级菜单项 172 | - $formkit: radio 173 | name: index_tag 174 | id: index_tag 175 | key: index_tag 176 | label: 是否显示模块三 177 | value: false 178 | options: 179 | - label: 显示 180 | value: true 181 | - label: 隐藏 182 | value: false 183 | - $formkit: text 184 | if: "$get(index_tag).value === true" 185 | name: module_there 186 | id: module_there 187 | key: module_there 188 | value: 模块三 189 | label: 模块三名称 190 | - $formkit: select 191 | if: "$get(index_tag).value === true" 192 | name: index_recommend 193 | id: index_recommend 194 | key: index_recommend 195 | label: 模块三类型 196 | value: tag 197 | options: 198 | - label: 文章标签 199 | value: tag 200 | - label: 文章分类 201 | value: categories 202 | - $formkit: tagSelect 203 | if: "$get(index_tag).value === true && $get(index_recommend).value === tag" 204 | name: tag 205 | id: tag 206 | key: tag 207 | label: 模块三数据 208 | help: 默认显示选中标签的前六篇文章 209 | - $formkit: categorySelect 210 | if: "$get(index_tag).value === true && $get(index_recommend).value === categories" 211 | name: category 212 | id: category 213 | key: category 214 | label: 模块三数据 215 | help: 默认显示选中分类的前六篇文章 216 | - group: post 217 | label: 文章 218 | formSchema: 219 | - $formkit: select 220 | name: content_style 221 | label: 内容样式 222 | value: "github" 223 | options: 224 | - label: GitHub 风格 225 | value: github 226 | - label: Tailwind CSS Typography 227 | value: tailwind 228 | - group: style 229 | label: 样式 230 | formSchema: 231 | - $formkit: radio 232 | name: color_scheme 233 | label: 默认配色 234 | value: light 235 | options: 236 | - label: 深色 237 | value: dark 238 | - label: 浅色 239 | value: light 240 | - $formkit: attachment 241 | name: dark_logo 242 | id: dark_logo 243 | key: dark_logo 244 | label: 深色Logo 245 | help: 默认使用站点Logo 246 | - $formkit: attachment 247 | name: light_logo 248 | id: light_logo 249 | key: light_logo 250 | label: 浅色Logo 251 | help: 默认使用站点Logo 252 | - $formkit: checkbox 253 | name: enable_change_color_scheme 254 | label: 允许访客切换配色 255 | value: true 256 | 257 | - $formkit: radio 258 | name: login_info 259 | id: login_info 260 | key: login_info 261 | label: 显示登录信息 262 | value: false 263 | options: 264 | - label: 显示 265 | value: true 266 | - label: 隐藏 267 | value: false 268 | 269 | - $formkit: radio 270 | if: "$get(login_info).value === true" 271 | name: show_content 272 | label: 显示内容 273 | value: all 274 | options: 275 | - label: 头像和名称 276 | value: all 277 | - label: 头像 278 | value: avatar 279 | - label: 名称 280 | value: user-name 281 | 282 | - group: sidebar 283 | label: 侧边栏 284 | formSchema: 285 | - $formkit: repeater 286 | name: widgets 287 | label: 小部件 288 | value: 289 | - value: categories 290 | - value: tags 291 | children: 292 | - $formkit: select 293 | name: value 294 | label: 部件 295 | options: 296 | - label: 站点资料 297 | value: profile 298 | - label: 热门文章 299 | value: popular-posts 300 | - label: 文章分类 301 | value: categories 302 | - label: 文章标签 303 | value: tags 304 | 305 | - $formkit: group 306 | name: profile 307 | value: 308 | logo: 309 | children: 310 | - $formkit: attachment 311 | name: logo 312 | label: 站点资料 Logo 313 | 314 | - $formkit: repeater 315 | name: social_media 316 | label: 社交媒体 317 | value: [] 318 | children: 319 | - $formkit: select 320 | name: icon 321 | label: 图标 322 | options: 323 | - label: 电子邮箱 324 | value: i-tabler-mail 325 | - label: 微信 326 | value: i-simple-icons-wechat 327 | - label: 腾讯 QQ 328 | value: i-simple-icons-tencentqq 329 | - label: 新浪微博 330 | value: i-simple-icons-sinaweibo 331 | - label: 知乎 332 | value: i-simple-icons-zhihu 333 | - label: 豆瓣 334 | value: i-simple-icons-douban 335 | - label: 哔哩哔哩 336 | value: i-simple-icons-bilibili 337 | - label: 抖音 / TikTok 338 | value: i-simple-icons-tiktok 339 | - label: Telegram 340 | value: i-simple-icons-telegram 341 | - label: Facebook 342 | value: i-simple-icons-facebook 343 | - label: Instagram 344 | value: i-simple-icons-instagram 345 | - label: LinkedIn 346 | value: i-simple-icons-linkedin 347 | - label: Twitter 348 | value: i-simple-icons-twitter 349 | - label: Slack 350 | value: i-simple-icons-slack 351 | - label: Discord 352 | value: i-simple-icons-discord 353 | - label: YouTube 354 | value: i-simple-icons-youtube 355 | - label: Steam 356 | value: i-simple-icons-steam 357 | - label: GitHub 358 | value: i-simple-icons-github 359 | - label: GitLab 360 | value: i-simple-icons-gitlab 361 | - $formkit: text 362 | name: name 363 | label: 名称 364 | - $formkit: text 365 | name: url 366 | label: 链接 367 | validation: "required" 368 | - $formkit: radio 369 | name: url_type 370 | label: 链接类型 371 | value: normal 372 | help: "如果选择了图片类型,那么在访客点击之后会使用弹框的形式加载" 373 | options: 374 | - label: 跳转链接 375 | value: normal 376 | - label: 图片 377 | value: image 378 | 379 | - group: footer 380 | label: 页脚 381 | formSchema: 382 | - $formkit: select 383 | name: style 384 | id: style 385 | key: style 386 | label: 页脚风格 387 | value: style_1 388 | options: 389 | - label: 风格一 390 | value: style_1 391 | - label: 风格二 392 | value: style_2 393 | - label: 风格三 394 | value: style_3 395 | - label: 风格四 396 | value: style_4 397 | - $formkit: attachment 398 | name: logo 399 | label: Logo 400 | help: 如果不设置,将使用站点设置的 Logo 401 | 402 | - $formkit: text 403 | name: title 404 | label: 标题 405 | help: 如果不设置,将使用站点设置的标题 406 | 407 | - $formkit: textarea 408 | rows: 3 409 | name: slogan 410 | id: slogan 411 | key: slogan 412 | if: "$get(style).value !== style_3" 413 | label: 标语 414 | 415 | - $formkit: menuRadio 416 | if: "$get(style).value === style_3" 417 | name: menu 418 | id: menu 419 | key: menu 420 | label: 右侧菜单 421 | 422 | - $formkit: repeater 423 | if: "$get(style).value !== style_3" 424 | name: menus 425 | id: menus 426 | key: menus 427 | label: 菜单组 428 | value: [] 429 | children: 430 | - $formkit: menuRadio 431 | name: name 432 | label: 菜单 433 | validation: "required" 434 | 435 | - $formkit: attachment 436 | if: "$get(style).value === style_4" 437 | name: qrcode 438 | label: Qrcode 439 | help: 关注二维码 440 | 441 | - $formkit: repeater 442 | name: social_media 443 | label: 社交媒体 444 | value: [] 445 | children: 446 | - $formkit: select 447 | name: icon 448 | label: 图标 449 | options: 450 | - label: 电子邮箱 451 | value: i-tabler-mail 452 | - label: 微信 453 | value: i-simple-icons-wechat 454 | - label: 腾讯 QQ 455 | value: i-simple-icons-tencentqq 456 | - label: 新浪微博 457 | value: i-simple-icons-sinaweibo 458 | - label: 知乎 459 | value: i-simple-icons-zhihu 460 | - label: 豆瓣 461 | value: i-simple-icons-douban 462 | - label: 哔哩哔哩 463 | value: i-simple-icons-bilibili 464 | - label: 抖音 / TikTok 465 | value: i-simple-icons-tiktok 466 | - label: Telegram 467 | value: i-simple-icons-telegram 468 | - label: Facebook 469 | value: i-simple-icons-facebook 470 | - label: Instagram 471 | value: i-simple-icons-instagram 472 | - label: LinkedIn 473 | value: i-simple-icons-linkedin 474 | - label: Twitter 475 | value: i-simple-icons-twitter 476 | - label: Slack 477 | value: i-simple-icons-slack 478 | - label: Discord 479 | value: i-simple-icons-discord 480 | - label: YouTube 481 | value: i-simple-icons-youtube 482 | - label: Steam 483 | value: i-simple-icons-steam 484 | - label: GitHub 485 | value: i-simple-icons-github 486 | - label: GitLab 487 | value: i-simple-icons-gitlab 488 | - $formkit: text 489 | name: name 490 | label: 名称 491 | - $formkit: text 492 | name: url 493 | label: 链接 494 | validation: "required" 495 | - $formkit: radio 496 | name: url_type 497 | label: 链接类型 498 | value: normal 499 | help: "如果选择了图片类型,那么在访客点击之后会使用弹框的形式加载" 500 | options: 501 | - label: 跳转链接 502 | value: normal 503 | - label: 图片 504 | value: image 505 | 506 | - group: beian 507 | label: 备案设置 508 | formSchema: 509 | - $formkit: text 510 | name: icp_text 511 | label: ICP备案号 512 | - $formkit: text 513 | name: icp_link 514 | label: ICP备案跳转链接 515 | value: https://beian.miit.gov.cn/ 516 | -------------------------------------------------------------------------------- /templates/modules/header.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 |
6 | 34 |
35 |
36 | 83 | 210 |
211 |
212 |
213 |
218 |
219 | 224 | 229 | 230 |
231 | 240 |
241 | 249 | 256 |
257 |
258 |
262 |

263 | 热门查询: 264 | 265 | 266 | 267 | 272 | 273 | 274 | 275 |

276 |
277 |
278 |
279 |
280 |
285 |
286 | 287 |
288 |
289 |
290 |
291 | 302 |
314 |
315 | 321 |

菜单

322 |
323 | 341 |
342 |
343 |
344 | -------------------------------------------------------------------------------- /templates/assets/styles/github-markdown.css: -------------------------------------------------------------------------------- 1 | /* https://github.com/sindresorhus/github-markdown-css */ 2 | .dark .markdown-body { 3 | /*dark*/ 4 | color-scheme: dark; 5 | --color-prettylights-syntax-comment: #8b949e; 6 | --color-prettylights-syntax-constant: #79c0ff; 7 | --color-prettylights-syntax-entity: #d2a8ff; 8 | --color-prettylights-syntax-storage-modifier-import: #c9d1d9; 9 | --color-prettylights-syntax-entity-tag: #7ee787; 10 | --color-prettylights-syntax-keyword: #ff7b72; 11 | --color-prettylights-syntax-string: #a5d6ff; 12 | --color-prettylights-syntax-variable: #ffa657; 13 | --color-prettylights-syntax-brackethighlighter-unmatched: #f85149; 14 | --color-prettylights-syntax-invalid-illegal-text: #f0f6fc; 15 | --color-prettylights-syntax-invalid-illegal-bg: #8e1519; 16 | --color-prettylights-syntax-carriage-return-text: #f0f6fc; 17 | --color-prettylights-syntax-carriage-return-bg: #b62324; 18 | --color-prettylights-syntax-string-regexp: #7ee787; 19 | --color-prettylights-syntax-markup-list: #f2cc60; 20 | --color-prettylights-syntax-markup-heading: #1f6feb; 21 | --color-prettylights-syntax-markup-italic: #c9d1d9; 22 | --color-prettylights-syntax-markup-bold: #c9d1d9; 23 | --color-prettylights-syntax-markup-deleted-text: #ffdcd7; 24 | --color-prettylights-syntax-markup-deleted-bg: #67060c; 25 | --color-prettylights-syntax-markup-inserted-text: #aff5b4; 26 | --color-prettylights-syntax-markup-inserted-bg: #033a16; 27 | --color-prettylights-syntax-markup-changed-text: #ffdfb6; 28 | --color-prettylights-syntax-markup-changed-bg: #5a1e02; 29 | --color-prettylights-syntax-markup-ignored-text: #c9d1d9; 30 | --color-prettylights-syntax-markup-ignored-bg: #1158c7; 31 | --color-prettylights-syntax-meta-diff-range: #d2a8ff; 32 | --color-prettylights-syntax-brackethighlighter-angle: #8b949e; 33 | --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58; 34 | --color-prettylights-syntax-constant-other-reference-link: #a5d6ff; 35 | --color-fg-default: #e6edf3; 36 | --color-fg-muted: #7d8590; 37 | --color-fg-subtle: #6e7681; 38 | --color-canvas-default: #0d1117; 39 | --color-canvas-subtle: #161b22; 40 | --color-border-default: #30363d; 41 | --color-border-muted: #21262d; 42 | --color-neutral-muted: rgba(110, 118, 129, 0.4); 43 | --color-accent-fg: #2f81f7; 44 | --color-accent-emphasis: #1f6feb; 45 | --color-attention-fg: #d29922; 46 | --color-attention-subtle: rgba(187, 128, 9, 0.15); 47 | --color-danger-fg: #f85149; 48 | --color-done-fg: #a371f7; 49 | } 50 | 51 | .light .markdown-body { 52 | /*light*/ 53 | color-scheme: light; 54 | --color-prettylights-syntax-comment: #6e7781; 55 | --color-prettylights-syntax-constant: #0550ae; 56 | --color-prettylights-syntax-entity: #6639ba; 57 | --color-prettylights-syntax-storage-modifier-import: #24292f; 58 | --color-prettylights-syntax-entity-tag: #116329; 59 | --color-prettylights-syntax-keyword: #cf222e; 60 | --color-prettylights-syntax-string: #0a3069; 61 | --color-prettylights-syntax-variable: #953800; 62 | --color-prettylights-syntax-brackethighlighter-unmatched: #82071e; 63 | --color-prettylights-syntax-invalid-illegal-text: #f6f8fa; 64 | --color-prettylights-syntax-invalid-illegal-bg: #82071e; 65 | --color-prettylights-syntax-carriage-return-text: #f6f8fa; 66 | --color-prettylights-syntax-carriage-return-bg: #cf222e; 67 | --color-prettylights-syntax-string-regexp: #116329; 68 | --color-prettylights-syntax-markup-list: #3b2300; 69 | --color-prettylights-syntax-markup-heading: #0550ae; 70 | --color-prettylights-syntax-markup-italic: #24292f; 71 | --color-prettylights-syntax-markup-bold: #24292f; 72 | --color-prettylights-syntax-markup-deleted-text: #82071e; 73 | --color-prettylights-syntax-markup-deleted-bg: #ffebe9; 74 | --color-prettylights-syntax-markup-inserted-text: #116329; 75 | --color-prettylights-syntax-markup-inserted-bg: #dafbe1; 76 | --color-prettylights-syntax-markup-changed-text: #953800; 77 | --color-prettylights-syntax-markup-changed-bg: #ffd8b5; 78 | --color-prettylights-syntax-markup-ignored-text: #eaeef2; 79 | --color-prettylights-syntax-markup-ignored-bg: #0550ae; 80 | --color-prettylights-syntax-meta-diff-range: #8250df; 81 | --color-prettylights-syntax-brackethighlighter-angle: #57606a; 82 | --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f; 83 | --color-prettylights-syntax-constant-other-reference-link: #0a3069; 84 | --color-fg-default: #1f2328; 85 | --color-fg-muted: #656d76; 86 | --color-fg-subtle: #6e7781; 87 | --color-canvas-default: #ffffff; 88 | --color-canvas-subtle: #f6f8fa; 89 | --color-border-default: #d0d7de; 90 | --color-border-muted: hsla(210, 18%, 87%, 1); 91 | --color-neutral-muted: rgba(175, 184, 193, 0.2); 92 | --color-accent-fg: #0969da; 93 | --color-accent-emphasis: #0969da; 94 | --color-attention-fg: #9a6700; 95 | --color-attention-subtle: #fff8c5; 96 | --color-danger-fg: #d1242f; 97 | --color-done-fg: #8250df; 98 | --color-prettylights-syntax-comment: #6e7781; 99 | --color-prettylights-syntax-constant: #0550ae; 100 | --color-prettylights-syntax-entity: #6639ba; 101 | --color-prettylights-syntax-storage-modifier-import: #24292f; 102 | --color-prettylights-syntax-entity-tag: #116329; 103 | --color-prettylights-syntax-keyword: #cf222e; 104 | --color-prettylights-syntax-string: #0a3069; 105 | --color-prettylights-syntax-variable: #953800; 106 | --color-prettylights-syntax-brackethighlighter-unmatched: #82071e; 107 | --color-prettylights-syntax-invalid-illegal-text: #f6f8fa; 108 | --color-prettylights-syntax-invalid-illegal-bg: #82071e; 109 | --color-prettylights-syntax-carriage-return-text: #f6f8fa; 110 | --color-prettylights-syntax-carriage-return-bg: #cf222e; 111 | --color-prettylights-syntax-string-regexp: #116329; 112 | --color-prettylights-syntax-markup-list: #3b2300; 113 | --color-prettylights-syntax-markup-heading: #0550ae; 114 | --color-prettylights-syntax-markup-italic: #24292f; 115 | --color-prettylights-syntax-markup-bold: #24292f; 116 | --color-prettylights-syntax-markup-deleted-text: #82071e; 117 | --color-prettylights-syntax-markup-deleted-bg: #ffebe9; 118 | --color-prettylights-syntax-markup-inserted-text: #116329; 119 | --color-prettylights-syntax-markup-inserted-bg: #dafbe1; 120 | --color-prettylights-syntax-markup-changed-text: #953800; 121 | --color-prettylights-syntax-markup-changed-bg: #ffd8b5; 122 | --color-prettylights-syntax-markup-ignored-text: #eaeef2; 123 | --color-prettylights-syntax-markup-ignored-bg: #0550ae; 124 | --color-prettylights-syntax-meta-diff-range: #8250df; 125 | --color-prettylights-syntax-brackethighlighter-angle: #57606a; 126 | --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f; 127 | --color-prettylights-syntax-constant-other-reference-link: #0a3069; 128 | --color-fg-default: #1f2328; 129 | --color-fg-muted: #656d76; 130 | --color-fg-subtle: #6e7781; 131 | --color-canvas-default: #ffffff; 132 | --color-canvas-subtle: #f6f8fa; 133 | --color-border-default: #d0d7de; 134 | --color-border-muted: hsla(210, 18%, 87%, 1); 135 | --color-neutral-muted: rgba(175, 184, 193, 0.2); 136 | --color-accent-fg: #0969da; 137 | --color-accent-emphasis: #0969da; 138 | --color-attention-fg: #9a6700; 139 | --color-attention-subtle: #fff8c5; 140 | --color-danger-fg: #d1242f; 141 | --color-done-fg: #8250df; 142 | } 143 | 144 | .markdown-body { 145 | -ms-text-size-adjust: 100%; 146 | -webkit-text-size-adjust: 100%; 147 | margin: 0; 148 | color: var(--color-fg-default); 149 | background-color: var(--color-canvas-default); 150 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, 151 | "Apple Color Emoji", "Segoe UI Emoji"; 152 | font-size: 16px; 153 | line-height: 1.5; 154 | word-wrap: break-word; 155 | } 156 | 157 | .markdown-body .octicon { 158 | display: inline-block; 159 | fill: currentColor; 160 | vertical-align: text-bottom; 161 | } 162 | 163 | .markdown-body h1:hover .anchor .octicon-link:before, 164 | .markdown-body h2:hover .anchor .octicon-link:before, 165 | .markdown-body h3:hover .anchor .octicon-link:before, 166 | .markdown-body h4:hover .anchor .octicon-link:before, 167 | .markdown-body h5:hover .anchor .octicon-link:before, 168 | .markdown-body h6:hover .anchor .octicon-link:before { 169 | width: 16px; 170 | height: 16px; 171 | content: " "; 172 | display: inline-block; 173 | background-color: currentColor; 174 | -webkit-mask-image: url("data:image/svg+xml,"); 175 | mask-image: url("data:image/svg+xml,"); 176 | } 177 | 178 | .markdown-body details, 179 | .markdown-body figcaption, 180 | .markdown-body figure { 181 | display: block; 182 | } 183 | 184 | .markdown-body summary { 185 | display: list-item; 186 | } 187 | 188 | .markdown-body [hidden] { 189 | display: none !important; 190 | } 191 | 192 | .markdown-body a { 193 | background-color: transparent; 194 | color: var(--color-accent-fg); 195 | text-decoration: none; 196 | } 197 | 198 | .markdown-body abbr[title] { 199 | border-bottom: none; 200 | -webkit-text-decoration: underline dotted; 201 | text-decoration: underline dotted; 202 | } 203 | 204 | .markdown-body b, 205 | .markdown-body strong { 206 | font-weight: var(--base-text-weight-semibold, 600); 207 | } 208 | 209 | .markdown-body dfn { 210 | font-style: italic; 211 | } 212 | 213 | .markdown-body h1 { 214 | margin: 0.67em 0; 215 | font-weight: var(--base-text-weight-semibold, 600); 216 | padding-bottom: 0.3em; 217 | font-size: 2em; 218 | border-bottom: 1px solid var(--color-border-muted); 219 | } 220 | 221 | .markdown-body mark { 222 | background-color: var(--color-attention-subtle); 223 | color: var(--color-fg-default); 224 | } 225 | 226 | .markdown-body small { 227 | font-size: 90%; 228 | } 229 | 230 | .markdown-body sub, 231 | .markdown-body sup { 232 | font-size: 75%; 233 | line-height: 0; 234 | position: relative; 235 | vertical-align: baseline; 236 | } 237 | 238 | .markdown-body sub { 239 | bottom: -0.25em; 240 | } 241 | 242 | .markdown-body sup { 243 | top: -0.5em; 244 | } 245 | 246 | .markdown-body img { 247 | border-style: none; 248 | max-width: 100%; 249 | box-sizing: content-box; 250 | background-color: var(--color-canvas-default); 251 | } 252 | 253 | .markdown-body code, 254 | .markdown-body kbd, 255 | .markdown-body pre, 256 | .markdown-body samp { 257 | font-family: monospace; 258 | font-size: 1em; 259 | } 260 | 261 | .markdown-body figure { 262 | margin: 1em 40px; 263 | } 264 | 265 | .markdown-body hr { 266 | box-sizing: content-box; 267 | overflow: hidden; 268 | background: transparent; 269 | border-bottom: 1px solid var(--color-border-muted); 270 | height: 0.25em; 271 | padding: 0; 272 | margin: 24px 0; 273 | background-color: var(--color-border-default); 274 | border: 0; 275 | } 276 | 277 | .markdown-body input { 278 | font: inherit; 279 | margin: 0; 280 | overflow: visible; 281 | font-family: inherit; 282 | font-size: inherit; 283 | line-height: inherit; 284 | } 285 | 286 | .markdown-body [type="button"], 287 | .markdown-body [type="reset"], 288 | .markdown-body [type="submit"] { 289 | -webkit-appearance: button; 290 | } 291 | 292 | .markdown-body [type="checkbox"], 293 | .markdown-body [type="radio"] { 294 | box-sizing: border-box; 295 | padding: 0; 296 | } 297 | 298 | .markdown-body [type="number"]::-webkit-inner-spin-button, 299 | .markdown-body [type="number"]::-webkit-outer-spin-button { 300 | height: auto; 301 | } 302 | 303 | .markdown-body [type="search"]::-webkit-search-cancel-button, 304 | .markdown-body [type="search"]::-webkit-search-decoration { 305 | -webkit-appearance: none; 306 | } 307 | 308 | .markdown-body ::-webkit-input-placeholder { 309 | color: inherit; 310 | opacity: 0.54; 311 | } 312 | 313 | .markdown-body ::-webkit-file-upload-button { 314 | -webkit-appearance: button; 315 | font: inherit; 316 | } 317 | 318 | .markdown-body a:hover { 319 | text-decoration: underline; 320 | } 321 | 322 | .markdown-body ::placeholder { 323 | color: var(--color-fg-subtle); 324 | opacity: 1; 325 | } 326 | 327 | .markdown-body hr::before { 328 | display: table; 329 | content: ""; 330 | } 331 | 332 | .markdown-body hr::after { 333 | display: table; 334 | clear: both; 335 | content: ""; 336 | } 337 | 338 | .markdown-body table { 339 | border-spacing: 0; 340 | border-collapse: collapse; 341 | display: block; 342 | width: max-content; 343 | max-width: 100%; 344 | overflow: auto; 345 | } 346 | 347 | .markdown-body td, 348 | .markdown-body th { 349 | padding: 0; 350 | } 351 | 352 | .markdown-body details summary { 353 | cursor: pointer; 354 | } 355 | 356 | .markdown-body details:not([open]) > *:not(summary) { 357 | display: none !important; 358 | } 359 | 360 | .markdown-body a:focus, 361 | .markdown-body [role="button"]:focus, 362 | .markdown-body input[type="radio"]:focus, 363 | .markdown-body input[type="checkbox"]:focus { 364 | outline: 2px solid var(--color-accent-fg); 365 | outline-offset: -2px; 366 | box-shadow: none; 367 | } 368 | 369 | .markdown-body a:focus:not(:focus-visible), 370 | .markdown-body [role="button"]:focus:not(:focus-visible), 371 | .markdown-body input[type="radio"]:focus:not(:focus-visible), 372 | .markdown-body input[type="checkbox"]:focus:not(:focus-visible) { 373 | outline: solid 1px transparent; 374 | } 375 | 376 | .markdown-body a:focus-visible, 377 | .markdown-body [role="button"]:focus-visible, 378 | .markdown-body input[type="radio"]:focus-visible, 379 | .markdown-body input[type="checkbox"]:focus-visible { 380 | outline: 2px solid var(--color-accent-fg); 381 | outline-offset: -2px; 382 | box-shadow: none; 383 | } 384 | 385 | .markdown-body a:not([class]):focus, 386 | .markdown-body a:not([class]):focus-visible, 387 | .markdown-body input[type="radio"]:focus, 388 | .markdown-body input[type="radio"]:focus-visible, 389 | .markdown-body input[type="checkbox"]:focus, 390 | .markdown-body input[type="checkbox"]:focus-visible { 391 | outline-offset: 0; 392 | } 393 | 394 | .markdown-body kbd { 395 | display: inline-block; 396 | padding: 3px 5px; 397 | font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; 398 | line-height: 10px; 399 | color: var(--color-fg-default); 400 | vertical-align: middle; 401 | background-color: var(--color-canvas-subtle); 402 | border: solid 1px var(--color-neutral-muted); 403 | border-bottom-color: var(--color-neutral-muted); 404 | border-radius: 6px; 405 | box-shadow: inset 0 -1px 0 var(--color-neutral-muted); 406 | } 407 | 408 | .markdown-body h1, 409 | .markdown-body h2, 410 | .markdown-body h3, 411 | .markdown-body h4, 412 | .markdown-body h5, 413 | .markdown-body h6 { 414 | margin-top: 24px; 415 | margin-bottom: 16px; 416 | font-weight: var(--base-text-weight-semibold, 600); 417 | line-height: 1.25; 418 | } 419 | 420 | .markdown-body h2 { 421 | font-weight: var(--base-text-weight-semibold, 600); 422 | padding-bottom: 0.3em; 423 | font-size: 1.5em; 424 | border-bottom: 1px solid var(--color-border-muted); 425 | } 426 | 427 | .markdown-body h3 { 428 | font-weight: var(--base-text-weight-semibold, 600); 429 | font-size: 1.25em; 430 | } 431 | 432 | .markdown-body h4 { 433 | font-weight: var(--base-text-weight-semibold, 600); 434 | font-size: 1em; 435 | } 436 | 437 | .markdown-body h5 { 438 | font-weight: var(--base-text-weight-semibold, 600); 439 | font-size: 0.875em; 440 | } 441 | 442 | .markdown-body h6 { 443 | font-weight: var(--base-text-weight-semibold, 600); 444 | font-size: 0.85em; 445 | color: var(--color-fg-muted); 446 | } 447 | 448 | .markdown-body p { 449 | margin-top: 0; 450 | margin-bottom: 10px; 451 | } 452 | 453 | .markdown-body blockquote { 454 | margin: 0; 455 | padding: 0 1em; 456 | color: var(--color-fg-muted); 457 | border-left: 0.25em solid var(--color-border-default); 458 | } 459 | 460 | .markdown-body ul, 461 | .markdown-body ol { 462 | margin-top: 0; 463 | margin-bottom: 0; 464 | padding-left: 2em; 465 | } 466 | 467 | .markdown-body ol ol, 468 | .markdown-body ul ol { 469 | list-style-type: lower-roman; 470 | } 471 | 472 | .markdown-body ul ul ol, 473 | .markdown-body ul ol ol, 474 | .markdown-body ol ul ol, 475 | .markdown-body ol ol ol { 476 | list-style-type: lower-alpha; 477 | } 478 | 479 | .markdown-body dd { 480 | margin-left: 0; 481 | } 482 | 483 | .markdown-body tt, 484 | .markdown-body code, 485 | .markdown-body samp { 486 | font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; 487 | font-size: 12px; 488 | } 489 | 490 | .markdown-body pre { 491 | margin-top: 0; 492 | margin-bottom: 0; 493 | font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; 494 | font-size: 12px; 495 | word-wrap: normal; 496 | } 497 | 498 | .markdown-body .octicon { 499 | display: inline-block; 500 | overflow: visible !important; 501 | vertical-align: text-bottom; 502 | fill: currentColor; 503 | } 504 | 505 | .markdown-body input::-webkit-outer-spin-button, 506 | .markdown-body input::-webkit-inner-spin-button { 507 | margin: 0; 508 | -webkit-appearance: none; 509 | appearance: none; 510 | } 511 | 512 | .markdown-body .color-fg-accent { 513 | color: var(--color-accent-fg) !important; 514 | } 515 | 516 | .markdown-body .color-fg-attention { 517 | color: var(--color-attention-fg) !important; 518 | } 519 | 520 | .markdown-body .color-fg-done { 521 | color: var(--color-done-fg) !important; 522 | } 523 | 524 | .markdown-body .flex-items-center { 525 | align-items: center !important; 526 | } 527 | 528 | .markdown-body .mb-1 { 529 | margin-bottom: var(--base-size-4, 4px) !important; 530 | } 531 | 532 | .markdown-body .text-semibold { 533 | font-weight: var(--base-text-weight-medium, 500) !important; 534 | } 535 | 536 | .markdown-body .d-inline-flex { 537 | display: inline-flex !important; 538 | } 539 | 540 | .markdown-body::before { 541 | display: table; 542 | content: ""; 543 | } 544 | 545 | .markdown-body::after { 546 | display: table; 547 | clear: both; 548 | content: ""; 549 | } 550 | 551 | .markdown-body > *:first-child { 552 | margin-top: 0 !important; 553 | } 554 | 555 | .markdown-body > *:last-child { 556 | margin-bottom: 0 !important; 557 | } 558 | 559 | .markdown-body a:not([href]) { 560 | color: inherit; 561 | text-decoration: none; 562 | } 563 | 564 | .markdown-body .absent { 565 | color: var(--color-danger-fg); 566 | } 567 | 568 | .markdown-body .anchor { 569 | float: left; 570 | padding-right: 4px; 571 | margin-left: -20px; 572 | line-height: 1; 573 | } 574 | 575 | .markdown-body .anchor:focus { 576 | outline: none; 577 | } 578 | 579 | .markdown-body p, 580 | .markdown-body blockquote, 581 | .markdown-body ul, 582 | .markdown-body ol, 583 | .markdown-body dl, 584 | .markdown-body table, 585 | .markdown-body pre, 586 | .markdown-body details { 587 | margin-top: 0; 588 | margin-bottom: 16px; 589 | } 590 | 591 | .markdown-body blockquote > :first-child { 592 | margin-top: 0; 593 | } 594 | 595 | .markdown-body blockquote > :last-child { 596 | margin-bottom: 0; 597 | } 598 | 599 | .markdown-body h1 .octicon-link, 600 | .markdown-body h2 .octicon-link, 601 | .markdown-body h3 .octicon-link, 602 | .markdown-body h4 .octicon-link, 603 | .markdown-body h5 .octicon-link, 604 | .markdown-body h6 .octicon-link { 605 | color: var(--color-fg-default); 606 | vertical-align: middle; 607 | visibility: hidden; 608 | } 609 | 610 | .markdown-body h1:hover .anchor, 611 | .markdown-body h2:hover .anchor, 612 | .markdown-body h3:hover .anchor, 613 | .markdown-body h4:hover .anchor, 614 | .markdown-body h5:hover .anchor, 615 | .markdown-body h6:hover .anchor { 616 | text-decoration: none; 617 | } 618 | 619 | .markdown-body h1:hover .anchor .octicon-link, 620 | .markdown-body h2:hover .anchor .octicon-link, 621 | .markdown-body h3:hover .anchor .octicon-link, 622 | .markdown-body h4:hover .anchor .octicon-link, 623 | .markdown-body h5:hover .anchor .octicon-link, 624 | .markdown-body h6:hover .anchor .octicon-link { 625 | visibility: visible; 626 | } 627 | 628 | .markdown-body h1 tt, 629 | .markdown-body h1 code, 630 | .markdown-body h2 tt, 631 | .markdown-body h2 code, 632 | .markdown-body h3 tt, 633 | .markdown-body h3 code, 634 | .markdown-body h4 tt, 635 | .markdown-body h4 code, 636 | .markdown-body h5 tt, 637 | .markdown-body h5 code, 638 | .markdown-body h6 tt, 639 | .markdown-body h6 code { 640 | padding: 0 0.2em; 641 | font-size: inherit; 642 | } 643 | 644 | .markdown-body summary h1, 645 | .markdown-body summary h2, 646 | .markdown-body summary h3, 647 | .markdown-body summary h4, 648 | .markdown-body summary h5, 649 | .markdown-body summary h6 { 650 | display: inline-block; 651 | } 652 | 653 | .markdown-body summary h1 .anchor, 654 | .markdown-body summary h2 .anchor, 655 | .markdown-body summary h3 .anchor, 656 | .markdown-body summary h4 .anchor, 657 | .markdown-body summary h5 .anchor, 658 | .markdown-body summary h6 .anchor { 659 | margin-left: -40px; 660 | } 661 | 662 | .markdown-body summary h1, 663 | .markdown-body summary h2 { 664 | padding-bottom: 0; 665 | border-bottom: 0; 666 | } 667 | 668 | .markdown-body ul.no-list, 669 | .markdown-body ol.no-list { 670 | padding: 0; 671 | list-style-type: none; 672 | } 673 | 674 | .markdown-body ol[type="a s"] { 675 | list-style-type: lower-alpha; 676 | } 677 | 678 | .markdown-body ol[type="A s"] { 679 | list-style-type: upper-alpha; 680 | } 681 | 682 | .markdown-body ol[type="i s"] { 683 | list-style-type: lower-roman; 684 | } 685 | 686 | .markdown-body ol[type="I s"] { 687 | list-style-type: upper-roman; 688 | } 689 | 690 | .markdown-body ol[type="1"] { 691 | list-style-type: decimal; 692 | } 693 | 694 | .markdown-body div > ol:not([type]) { 695 | list-style-type: decimal; 696 | } 697 | 698 | .markdown-body ul ul, 699 | .markdown-body ul ol, 700 | .markdown-body ol ol, 701 | .markdown-body ol ul { 702 | margin-top: 0; 703 | margin-bottom: 0; 704 | } 705 | 706 | .markdown-body li > p { 707 | margin-top: 16px; 708 | } 709 | 710 | .markdown-body li + li { 711 | margin-top: 0.25em; 712 | } 713 | 714 | .markdown-body dl { 715 | padding: 0; 716 | } 717 | 718 | .markdown-body dl dt { 719 | padding: 0; 720 | margin-top: 16px; 721 | font-size: 1em; 722 | font-style: italic; 723 | font-weight: var(--base-text-weight-semibold, 600); 724 | } 725 | 726 | .markdown-body dl dd { 727 | padding: 0 16px; 728 | margin-bottom: 16px; 729 | } 730 | 731 | .markdown-body table th { 732 | font-weight: var(--base-text-weight-semibold, 600); 733 | } 734 | 735 | .markdown-body table th, 736 | .markdown-body table td { 737 | padding: 6px 13px; 738 | border: 1px solid var(--color-border-default); 739 | } 740 | 741 | .markdown-body table td > :last-child { 742 | margin-bottom: 0; 743 | } 744 | 745 | .markdown-body table tr { 746 | background-color: var(--color-canvas-default); 747 | border-top: 1px solid var(--color-border-muted); 748 | } 749 | 750 | .markdown-body table tr:nth-child(2n) { 751 | background-color: var(--color-canvas-subtle); 752 | } 753 | 754 | .markdown-body table img { 755 | background-color: transparent; 756 | } 757 | 758 | .markdown-body img[align="right"] { 759 | padding-left: 20px; 760 | } 761 | 762 | .markdown-body img[align="left"] { 763 | padding-right: 20px; 764 | } 765 | 766 | .markdown-body .emoji { 767 | max-width: none; 768 | vertical-align: text-top; 769 | background-color: transparent; 770 | } 771 | 772 | .markdown-body span.frame { 773 | display: block; 774 | overflow: hidden; 775 | } 776 | 777 | .markdown-body span.frame > span { 778 | display: block; 779 | float: left; 780 | width: auto; 781 | padding: 7px; 782 | margin: 13px 0 0; 783 | overflow: hidden; 784 | border: 1px solid var(--color-border-default); 785 | } 786 | 787 | .markdown-body span.frame span img { 788 | display: block; 789 | float: left; 790 | } 791 | 792 | .markdown-body span.frame span span { 793 | display: block; 794 | padding: 5px 0 0; 795 | clear: both; 796 | color: var(--color-fg-default); 797 | } 798 | 799 | .markdown-body span.align-center { 800 | display: block; 801 | overflow: hidden; 802 | clear: both; 803 | } 804 | 805 | .markdown-body span.align-center > span { 806 | display: block; 807 | margin: 13px auto 0; 808 | overflow: hidden; 809 | text-align: center; 810 | } 811 | 812 | .markdown-body span.align-center span img { 813 | margin: 0 auto; 814 | text-align: center; 815 | } 816 | 817 | .markdown-body span.align-right { 818 | display: block; 819 | overflow: hidden; 820 | clear: both; 821 | } 822 | 823 | .markdown-body span.align-right > span { 824 | display: block; 825 | margin: 13px 0 0; 826 | overflow: hidden; 827 | text-align: right; 828 | } 829 | 830 | .markdown-body span.align-right span img { 831 | margin: 0; 832 | text-align: right; 833 | } 834 | 835 | .markdown-body span.float-left { 836 | display: block; 837 | float: left; 838 | margin-right: 13px; 839 | overflow: hidden; 840 | } 841 | 842 | .markdown-body span.float-left span { 843 | margin: 13px 0 0; 844 | } 845 | 846 | .markdown-body span.float-right { 847 | display: block; 848 | float: right; 849 | margin-left: 13px; 850 | overflow: hidden; 851 | } 852 | 853 | .markdown-body span.float-right > span { 854 | display: block; 855 | margin: 13px auto 0; 856 | overflow: hidden; 857 | text-align: right; 858 | } 859 | 860 | .markdown-body code, 861 | .markdown-body tt { 862 | padding: 0.2em 0.4em; 863 | margin: 0; 864 | font-size: 85%; 865 | white-space: break-spaces; 866 | /* background-color: var(--color-neutral-muted); */ 867 | border-radius: 6px; 868 | } 869 | 870 | .markdown-body code br, 871 | .markdown-body tt br { 872 | display: none; 873 | } 874 | 875 | .markdown-body del code { 876 | text-decoration: inherit; 877 | } 878 | 879 | .markdown-body samp { 880 | font-size: 85%; 881 | } 882 | 883 | .markdown-body pre code { 884 | font-size: 100%; 885 | } 886 | 887 | .markdown-body pre > code { 888 | padding: 0; 889 | margin: 0; 890 | word-break: normal; 891 | white-space: pre; 892 | /* background: transparent; */ 893 | border: 0; 894 | } 895 | 896 | .markdown-body .highlight { 897 | margin-bottom: 16px; 898 | } 899 | 900 | .markdown-body .highlight pre { 901 | margin-bottom: 0; 902 | word-break: normal; 903 | } 904 | 905 | .markdown-body .highlight pre, 906 | .markdown-body pre { 907 | padding: 16px; 908 | overflow: auto; 909 | font-size: 85%; 910 | line-height: 1.45; 911 | /* color: var(--color-fg-default); */ 912 | background-color: var(--color-canvas-subtle); 913 | border-radius: 6px; 914 | } 915 | 916 | .markdown-body pre code, 917 | .markdown-body pre tt { 918 | display: inline; 919 | max-width: auto; 920 | padding: 0; 921 | margin: 0; 922 | overflow: visible; 923 | line-height: inherit; 924 | word-wrap: normal; 925 | /* background-color: transparent; */ 926 | border: 0; 927 | } 928 | 929 | .markdown-body .csv-data td, 930 | .markdown-body .csv-data th { 931 | padding: 5px; 932 | overflow: hidden; 933 | font-size: 12px; 934 | line-height: 1; 935 | text-align: left; 936 | white-space: nowrap; 937 | } 938 | 939 | .markdown-body .csv-data .blob-num { 940 | padding: 10px 8px 9px; 941 | text-align: right; 942 | background: var(--color-canvas-default); 943 | border: 0; 944 | } 945 | 946 | .markdown-body .csv-data tr { 947 | border-top: 0; 948 | } 949 | 950 | .markdown-body .csv-data th { 951 | font-weight: var(--base-text-weight-semibold, 600); 952 | background: var(--color-canvas-subtle); 953 | border-top: 0; 954 | } 955 | 956 | .markdown-body [data-footnote-ref]::before { 957 | content: "["; 958 | } 959 | 960 | .markdown-body [data-footnote-ref]::after { 961 | content: "]"; 962 | } 963 | 964 | .markdown-body .footnotes { 965 | font-size: 12px; 966 | color: var(--color-fg-muted); 967 | border-top: 1px solid var(--color-border-default); 968 | } 969 | 970 | .markdown-body .footnotes ol { 971 | padding-left: 16px; 972 | } 973 | 974 | .markdown-body .footnotes ol ul { 975 | display: inline-block; 976 | padding-left: 16px; 977 | margin-top: 16px; 978 | } 979 | 980 | .markdown-body .footnotes li { 981 | position: relative; 982 | } 983 | 984 | .markdown-body .footnotes li:target::before { 985 | position: absolute; 986 | top: -8px; 987 | right: -8px; 988 | bottom: -8px; 989 | left: -24px; 990 | pointer-events: none; 991 | content: ""; 992 | border: 2px solid var(--color-accent-emphasis); 993 | border-radius: 6px; 994 | } 995 | 996 | .markdown-body .footnotes li:target { 997 | color: var(--color-fg-default); 998 | } 999 | 1000 | .markdown-body .footnotes .data-footnote-backref g-emoji { 1001 | font-family: monospace; 1002 | } 1003 | 1004 | .markdown-body .pl-c { 1005 | color: var(--color-prettylights-syntax-comment); 1006 | } 1007 | 1008 | .markdown-body .pl-c1, 1009 | .markdown-body .pl-s .pl-v { 1010 | color: var(--color-prettylights-syntax-constant); 1011 | } 1012 | 1013 | .markdown-body .pl-e, 1014 | .markdown-body .pl-en { 1015 | color: var(--color-prettylights-syntax-entity); 1016 | } 1017 | 1018 | .markdown-body .pl-smi, 1019 | .markdown-body .pl-s .pl-s1 { 1020 | color: var(--color-prettylights-syntax-storage-modifier-import); 1021 | } 1022 | 1023 | .markdown-body .pl-ent { 1024 | color: var(--color-prettylights-syntax-entity-tag); 1025 | } 1026 | 1027 | .markdown-body .pl-k { 1028 | color: var(--color-prettylights-syntax-keyword); 1029 | } 1030 | 1031 | .markdown-body .pl-s, 1032 | .markdown-body .pl-pds, 1033 | .markdown-body .pl-s .pl-pse .pl-s1, 1034 | .markdown-body .pl-sr, 1035 | .markdown-body .pl-sr .pl-cce, 1036 | .markdown-body .pl-sr .pl-sre, 1037 | .markdown-body .pl-sr .pl-sra { 1038 | color: var(--color-prettylights-syntax-string); 1039 | } 1040 | 1041 | .markdown-body .pl-v, 1042 | .markdown-body .pl-smw { 1043 | color: var(--color-prettylights-syntax-variable); 1044 | } 1045 | 1046 | .markdown-body .pl-bu { 1047 | color: var(--color-prettylights-syntax-brackethighlighter-unmatched); 1048 | } 1049 | 1050 | .markdown-body .pl-ii { 1051 | color: var(--color-prettylights-syntax-invalid-illegal-text); 1052 | background-color: var(--color-prettylights-syntax-invalid-illegal-bg); 1053 | } 1054 | 1055 | .markdown-body .pl-c2 { 1056 | color: var(--color-prettylights-syntax-carriage-return-text); 1057 | background-color: var(--color-prettylights-syntax-carriage-return-bg); 1058 | } 1059 | 1060 | .markdown-body .pl-sr .pl-cce { 1061 | font-weight: bold; 1062 | color: var(--color-prettylights-syntax-string-regexp); 1063 | } 1064 | 1065 | .markdown-body .pl-ml { 1066 | color: var(--color-prettylights-syntax-markup-list); 1067 | } 1068 | 1069 | .markdown-body .pl-mh, 1070 | .markdown-body .pl-mh .pl-en, 1071 | .markdown-body .pl-ms { 1072 | font-weight: bold; 1073 | color: var(--color-prettylights-syntax-markup-heading); 1074 | } 1075 | 1076 | .markdown-body .pl-mi { 1077 | font-style: italic; 1078 | color: var(--color-prettylights-syntax-markup-italic); 1079 | } 1080 | 1081 | .markdown-body .pl-mb { 1082 | font-weight: bold; 1083 | color: var(--color-prettylights-syntax-markup-bold); 1084 | } 1085 | 1086 | .markdown-body .pl-md { 1087 | color: var(--color-prettylights-syntax-markup-deleted-text); 1088 | background-color: var(--color-prettylights-syntax-markup-deleted-bg); 1089 | } 1090 | 1091 | .markdown-body .pl-mi1 { 1092 | color: var(--color-prettylights-syntax-markup-inserted-text); 1093 | background-color: var(--color-prettylights-syntax-markup-inserted-bg); 1094 | } 1095 | 1096 | .markdown-body .pl-mc { 1097 | color: var(--color-prettylights-syntax-markup-changed-text); 1098 | background-color: var(--color-prettylights-syntax-markup-changed-bg); 1099 | } 1100 | 1101 | .markdown-body .pl-mi2 { 1102 | color: var(--color-prettylights-syntax-markup-ignored-text); 1103 | background-color: var(--color-prettylights-syntax-markup-ignored-bg); 1104 | } 1105 | 1106 | .markdown-body .pl-mdr { 1107 | font-weight: bold; 1108 | color: var(--color-prettylights-syntax-meta-diff-range); 1109 | } 1110 | 1111 | .markdown-body .pl-ba { 1112 | color: var(--color-prettylights-syntax-brackethighlighter-angle); 1113 | } 1114 | 1115 | .markdown-body .pl-sg { 1116 | color: var(--color-prettylights-syntax-sublimelinter-gutter-mark); 1117 | } 1118 | 1119 | .markdown-body .pl-corl { 1120 | text-decoration: underline; 1121 | color: var(--color-prettylights-syntax-constant-other-reference-link); 1122 | } 1123 | 1124 | .markdown-body g-emoji { 1125 | display: inline-block; 1126 | min-width: 1ch; 1127 | font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; 1128 | font-size: 1em; 1129 | font-style: normal !important; 1130 | font-weight: var(--base-text-weight-normal, 400); 1131 | line-height: 1; 1132 | vertical-align: -0.075em; 1133 | } 1134 | 1135 | .markdown-body g-emoji img { 1136 | width: 1em; 1137 | height: 1em; 1138 | } 1139 | 1140 | .markdown-body .task-list-item { 1141 | list-style-type: none; 1142 | } 1143 | 1144 | .markdown-body .task-list-item label { 1145 | font-weight: var(--base-text-weight-normal, 400); 1146 | } 1147 | 1148 | .markdown-body .task-list-item.enabled label { 1149 | cursor: pointer; 1150 | } 1151 | 1152 | .markdown-body .task-list-item + .task-list-item { 1153 | margin-top: 4px; 1154 | } 1155 | 1156 | .markdown-body .task-list-item .handle { 1157 | display: none; 1158 | } 1159 | 1160 | .markdown-body .task-list-item-checkbox { 1161 | margin: 0 0.2em 0.25em -1.4em; 1162 | vertical-align: middle; 1163 | } 1164 | 1165 | .markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox { 1166 | margin: 0 -1.6em 0.25em 0.2em; 1167 | } 1168 | 1169 | .markdown-body .contains-task-list { 1170 | position: relative; 1171 | } 1172 | 1173 | .markdown-body .contains-task-list:hover .task-list-item-convert-container, 1174 | .markdown-body .contains-task-list:focus-within .task-list-item-convert-container { 1175 | display: block; 1176 | width: auto; 1177 | height: 24px; 1178 | overflow: visible; 1179 | clip: auto; 1180 | } 1181 | 1182 | .markdown-body .QueryBuilder .qb-entity { 1183 | color: var(--color-prettylights-syntax-entity); 1184 | } 1185 | 1186 | .markdown-body .QueryBuilder .qb-constant { 1187 | color: var(--color-prettylights-syntax-constant); 1188 | } 1189 | 1190 | .markdown-body ::-webkit-calendar-picker-indicator { 1191 | filter: invert(50%); 1192 | } 1193 | 1194 | .markdown-body .markdown-alert { 1195 | padding: 0 1em; 1196 | margin-bottom: 16px; 1197 | color: inherit; 1198 | border-left: 0.25em solid var(--color-border-default); 1199 | } 1200 | 1201 | .markdown-body .markdown-alert > :first-child { 1202 | margin-top: 0; 1203 | } 1204 | 1205 | .markdown-body .markdown-alert > :last-child { 1206 | margin-bottom: 0; 1207 | } 1208 | 1209 | .markdown-body .markdown-alert.markdown-alert-note { 1210 | border-left-color: var(--color-accent-fg); 1211 | } 1212 | 1213 | .markdown-body .markdown-alert.markdown-alert-important { 1214 | border-left-color: var(--color-done-fg); 1215 | } 1216 | 1217 | .markdown-body .markdown-alert.markdown-alert-warning { 1218 | border-left-color: var(--color-attention-fg); 1219 | } 1220 | --------------------------------------------------------------------------------