valaxy 0.15.9 → 0.15.11-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/valaxy.cjs +1 -1
- package/bin/valaxy.mjs +1 -1
- package/client/.vite-ssg-temp/tbbjcbuyn2/CNAME +1 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/PressAlgoliaSearch-2943719f.js +227 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/ValaxyMain-26e77dc6.js +752 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/_...all_-080f97f3.js +31 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/_...all_-5084a1b0.js +42 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/addon-f5fa83e1.js +172 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/best-pratice-0231a551.js +1105 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/client-496183a0.js +286 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/community-1b33ec3b.js +627 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/components-7000ddd3.js +2460 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/deploy-59948619.js +1071 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/docs-26abd7f8.js +490 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/extend-975f8f72.js +1851 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/extend-acd7107b.js +1444 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/faq-62ed7bfd.js +321 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/features-8acbd53d.js +2625 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/gallery-832227a9.js +244 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/gallery-9077df38.js +370 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/getting-started-52c30f03.js +3684 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/hexo-7311896e.js +969 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/hooks-67450cb3.js +517 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/i18n-4cd1bb86.js +4159 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/i18n-e1165bc4.js +676 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-002f83fb.js +768 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-3dec2b83.js +527 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-43565e48.js +424 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-5f07432e.js +563 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-6024f010.js +3294 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-6f0d6ec7.js +202 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-78c510e0.js +549 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-839c338e.js +4161 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-d39a48fd.js +1170 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/index-e633613c.js +1564 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/katex-32f21e80.js +6119 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/logo-bd69f816.js +180 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/markdown-050f3269.js +5895 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/news-ecba2d88.js +278 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/page-d48f3caa.js +752 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/post-ac89eaf5.js +1605 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/route-block-c0a8bdd8.js +4 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/schema-org-f60b7dac.js +477 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/site-6caa6511.js +286 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/style-f415f7fa.css +3742 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/styles-cdaadad2.js +548 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/templates-c97584f2.js +574 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/theme-192f77ef.js +172 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/use-3c036a47.js +669 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/use-851c0307.js +619 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/vite-vue-f91b9792.js +830 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/vscode-bc411e64.js +350 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/why-c98bbe8e.js +1131 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/write-6a43d4d0.js +4963 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/assets/write-6bc2b77c.js +675 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/favicon.svg +33 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/main.mjs +6239 -0
- package/client/.vite-ssg-temp/tbbjcbuyn2/valaxy-logo.png +0 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/CNAME +1 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/PressAlgoliaSearch-2943719f.js +227 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/ValaxyMain-26e77dc6.js +752 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/_...all_-080f97f3.js +31 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/_...all_-5084a1b0.js +42 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/addon-f5fa83e1.js +172 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/best-pratice-0231a551.js +1105 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/client-496183a0.js +286 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/community-1b33ec3b.js +627 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/components-7000ddd3.js +2460 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/deploy-59948619.js +1071 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/docs-26abd7f8.js +490 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/extend-975f8f72.js +1851 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/extend-acd7107b.js +1444 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/faq-62ed7bfd.js +321 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/features-8acbd53d.js +2625 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/gallery-832227a9.js +244 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/gallery-9077df38.js +370 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/getting-started-bb7fc0a8.js +3684 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/hexo-7311896e.js +969 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/hooks-67450cb3.js +517 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/i18n-4cd1bb86.js +4159 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/i18n-e1165bc4.js +676 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-002f83fb.js +768 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-3dec2b83.js +527 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-43565e48.js +424 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-5f07432e.js +563 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-6024f010.js +3294 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-6f0d6ec7.js +202 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-78c510e0.js +549 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-839c338e.js +4161 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-d39a48fd.js +1170 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/index-e633613c.js +1564 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/katex-32f21e80.js +6119 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/logo-bd69f816.js +180 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/markdown-abdb17ca.js +5895 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/news-ecba2d88.js +278 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/page-d48f3caa.js +752 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/post-0ed0dfec.js +1605 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/route-block-c0a8bdd8.js +4 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/schema-org-f60b7dac.js +477 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/site-6caa6511.js +286 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/style-f415f7fa.css +3742 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/styles-cdaadad2.js +548 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/templates-c97584f2.js +574 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/theme-192f77ef.js +172 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/use-3c036a47.js +669 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/use-851c0307.js +619 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/vite-vue-f91b9792.js +830 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/vscode-bc411e64.js +350 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/why-c98bbe8e.js +1131 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/write-6a43d4d0.js +4963 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/assets/write-6bc2b77c.js +675 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/favicon.svg +33 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/main.mjs +6239 -0
- package/client/.vite-ssg-temp/vp12eb5cgm/valaxy-logo.png +0 -0
- package/client/App.vue +1 -1
- package/client/components/AppLink.vue +2 -2
- package/client/components/ValaxyMd.vue +1 -1
- package/client/components/ValaxyOverlay.vue +2 -2
- package/client/components/ValaxyPagination.vue +6 -6
- package/client/components/debug/ValaxyDevtools.vue +6 -0
- package/client/composables/dark.ts +39 -0
- package/client/layouts/404.vue +1 -1
- package/client/layouts/layout.vue +2 -2
- package/client/locales/zh-CN.yml +1 -1
- package/client/pages/[...all].vue +2 -0
- package/client/styles/common/transition.scss +1 -0
- package/client/styles/common/view-transition.css +21 -0
- package/dist/chunk-3EJGKTUH.mjs +130 -0
- package/dist/chunk-RDNVTVQ5.cjs +129 -0
- package/dist/{config-29a16f62.d.ts → config-e5704a2c.d.ts} +223 -1
- package/dist/node/cli/index.cjs +1 -0
- package/dist/node/cli/index.mjs +2 -0
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +14 -2
- package/dist/node/index.d.ts +14 -2
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.d.cts +3 -220
- package/dist/types/index.d.ts +3 -220
- package/dist/types/index.mjs +1 -1
- package/package.json +19 -18
- package/types/config.ts +6 -0
- package/LICENSE +0 -21
- package/dist/chunk-57ETS265.mjs +0 -130
- package/dist/chunk-RAU3RNGI.cjs +0 -129
- package/dist/node/cli.cjs +0 -1
- package/dist/node/cli.mjs +0 -2
- /package/dist/node/{cli.d.cts → cli/index.d.cts} +0 -0
- /package/dist/node/{cli.d.ts → cli/index.d.ts} +0 -0
|
@@ -0,0 +1,1605 @@
|
|
|
1
|
+
import { _ as _export_sfc, a as _sfc_main$1 } from "../main.mjs";
|
|
2
|
+
import { _ as __unplugin_components_0 } from "./ValaxyMain-26e77dc6.js";
|
|
3
|
+
import { provide, mergeProps, withCtx, createTextVNode, createVNode, renderSlot, useSSRContext } from "vue";
|
|
4
|
+
import { useRoute } from "vue-router";
|
|
5
|
+
import { ssrRenderComponent, ssrRenderStyle, ssrRenderSlot } from "vue/server-renderer";
|
|
6
|
+
import "vite-ssg";
|
|
7
|
+
import "pinia";
|
|
8
|
+
import "@vueuse/core";
|
|
9
|
+
import "dayjs";
|
|
10
|
+
import "dayjs/plugin/utc.js";
|
|
11
|
+
import "dayjs/plugin/timezone.js";
|
|
12
|
+
import "dayjs/locale/zh-cn.js";
|
|
13
|
+
import "body-scroll-lock";
|
|
14
|
+
import "@intlify/shared";
|
|
15
|
+
import "@intlify/core-base";
|
|
16
|
+
import "@vue/devtools-api";
|
|
17
|
+
import "@unhead/schema-org";
|
|
18
|
+
import "@unhead/vue";
|
|
19
|
+
import "dayjs/plugin/relativeTime.js";
|
|
20
|
+
import "defu";
|
|
21
|
+
import "nprogress";
|
|
22
|
+
import "medium-zoom";
|
|
23
|
+
import "vanilla-lazyload";
|
|
24
|
+
const __pageData = JSON.parse('{"title":"Post","description":"","frontmatter":{"title":"Post","title_zh-CN":"文章","categories":["guide"],"end":false},"headers":[{"level":2,"title":"FrontMatter","slug":"frontmatter","link":"#frontmatter","children":[]},{"level":2,"title":"摘要","slug":"摘要","link":"#摘要","children":[]},{"level":2,"title":"Excerpt","slug":"excerpt","link":"#excerpt","children":[]},{"level":2,"title":"插入","slug":"插入","link":"#插入","children":[{"level":3,"title":"组件","slug":"组件","link":"#组件","children":[]},{"level":3,"title":"脚本","slug":"脚本","link":"#脚本","children":[]}]},{"level":2,"title":"强制规范","slug":"强制规范","link":"#强制规范","children":[]}],"relativePath":"pages/guide/post.md","path":"C:\\\\Users\\\\me\\\\repos\\\\yyj\\\\valaxy\\\\docs\\\\pages\\\\guide\\\\post.md","lastUpdated":1696615123000}');
|
|
25
|
+
const data = JSON.parse('{"title":"Post","description":"","frontmatter":{"title":"Post","title_zh-CN":"文章","categories":["guide"],"end":false},"headers":[{"level":2,"title":"FrontMatter","slug":"frontmatter","link":"#frontmatter","children":[]},{"level":2,"title":"摘要","slug":"摘要","link":"#摘要","children":[]},{"level":2,"title":"Excerpt","slug":"excerpt","link":"#excerpt","children":[]},{"level":2,"title":"插入","slug":"插入","link":"#插入","children":[{"level":3,"title":"组件","slug":"组件","link":"#组件","children":[]},{"level":3,"title":"脚本","slug":"脚本","link":"#脚本","children":[]}]},{"level":2,"title":"强制规范","slug":"强制规范","link":"#强制规范","children":[]}],"relativePath":"pages/guide/post.md","path":"C:\\\\Users\\\\me\\\\repos\\\\yyj\\\\valaxy\\\\docs\\\\pages\\\\guide\\\\post.md","lastUpdated":1696615123000}');
|
|
26
|
+
const _sfc_main = {
|
|
27
|
+
name: "pages/guide/post.md",
|
|
28
|
+
data() {
|
|
29
|
+
return { data, frontmatter: data.frontmatter, $frontmatter: data.frontmatter };
|
|
30
|
+
},
|
|
31
|
+
setup() {
|
|
32
|
+
const route = useRoute();
|
|
33
|
+
route.meta.frontmatter = Object.assign(route.meta.frontmatter, data.frontmatter);
|
|
34
|
+
provide("pageData", data);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
38
|
+
const _component_ValaxyMain = __unplugin_components_0;
|
|
39
|
+
const _component_AppLink = _sfc_main$1;
|
|
40
|
+
_push(ssrRenderComponent(_component_ValaxyMain, mergeProps({
|
|
41
|
+
frontmatter: $data.frontmatter,
|
|
42
|
+
data: $data.data
|
|
43
|
+
}, _attrs), {
|
|
44
|
+
"main-content-md": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
45
|
+
if (_push2) {
|
|
46
|
+
_push2(`<blockquote${_scopeId}><p${_scopeId}>`);
|
|
47
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
48
|
+
href: "https://wordpress.com/zh-cn/support/post-vs-page/",
|
|
49
|
+
target: "_blank",
|
|
50
|
+
rel: "noreferrer"
|
|
51
|
+
}, {
|
|
52
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
53
|
+
if (_push3) {
|
|
54
|
+
_push3(`Post VS Page`);
|
|
55
|
+
} else {
|
|
56
|
+
return [
|
|
57
|
+
createTextVNode("Post VS Page")
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
}),
|
|
61
|
+
_: 1
|
|
62
|
+
/* STABLE */
|
|
63
|
+
}, _parent2, _scopeId));
|
|
64
|
+
_push2(`</p></blockquote><h2 id="frontmatter" tabindex="-1"${_scopeId}>FrontMatter `);
|
|
65
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
66
|
+
class: "header-anchor",
|
|
67
|
+
href: "#frontmatter",
|
|
68
|
+
"aria-label": 'Permalink to "FrontMatter"'
|
|
69
|
+
}, {
|
|
70
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
71
|
+
if (_push3) {
|
|
72
|
+
_push3(``);
|
|
73
|
+
} else {
|
|
74
|
+
return [
|
|
75
|
+
createTextVNode("")
|
|
76
|
+
];
|
|
77
|
+
}
|
|
78
|
+
}),
|
|
79
|
+
_: 1
|
|
80
|
+
/* STABLE */
|
|
81
|
+
}, _parent2, _scopeId));
|
|
82
|
+
_push2(`</h2><div class="tip custom-block"${_scopeId}><p class="custom-block-title"${_scopeId}><i class="icon i-carbon-thumbs-up"${_scopeId}></i><span lang="en"${_scopeId}>TIP</span><span lang="zh-CN"${_scopeId}>提示</span></p><p${_scopeId}>更多配置项可参见:</p><ul${_scopeId}><li${_scopeId}>文章(Post)配置:`);
|
|
83
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
84
|
+
href: "https://github.com/YunYouJun/valaxy/blob/main/packages/valaxy/types/posts.ts#L144",
|
|
85
|
+
target: "_blank",
|
|
86
|
+
rel: "noreferrer"
|
|
87
|
+
}, {
|
|
88
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
89
|
+
if (_push3) {
|
|
90
|
+
_push3(`PostFrontmatter`);
|
|
91
|
+
} else {
|
|
92
|
+
return [
|
|
93
|
+
createTextVNode("PostFrontmatter")
|
|
94
|
+
];
|
|
95
|
+
}
|
|
96
|
+
}),
|
|
97
|
+
_: 1
|
|
98
|
+
/* STABLE */
|
|
99
|
+
}, _parent2, _scopeId));
|
|
100
|
+
_push2(` (文章配置包含页面配置)</li><li${_scopeId}>页面(Page)配置:`);
|
|
101
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
102
|
+
href: "https://github.com/YunYouJun/valaxy/blob/main/packages/valaxy/types/posts.ts#L27",
|
|
103
|
+
target: "_blank",
|
|
104
|
+
rel: "noreferrer"
|
|
105
|
+
}, {
|
|
106
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
107
|
+
if (_push3) {
|
|
108
|
+
_push3(`PageFrontmatter`);
|
|
109
|
+
} else {
|
|
110
|
+
return [
|
|
111
|
+
createTextVNode("PageFrontmatter")
|
|
112
|
+
];
|
|
113
|
+
}
|
|
114
|
+
}),
|
|
115
|
+
_: 1
|
|
116
|
+
/* STABLE */
|
|
117
|
+
}, _parent2, _scopeId));
|
|
118
|
+
_push2(`</li></ul></div><div lang="zh-CN"${_scopeId}><p${_scopeId}><strong${_scopeId}>文章</strong>(<code${_scopeId}>post</code>)继承自<strong${_scopeId}>页面</strong>(<code${_scopeId}>page</code>),因此<strong${_scopeId}>页面</strong>中的 Front Matter 通用被<strong${_scopeId}>文章</strong>支持。</p><blockquote${_scopeId}><p${_scopeId}>单篇文章支持的配置项。</p></blockquote><p${_scopeId}>譬如:</p></div><div lang="en"${_scopeId}><p${_scopeId}><code${_scopeId}>post</code> is a descendant of <code${_scopeId}>page</code>, so the front matter in <strong${_scopeId}>pages</strong> are supported by <strong${_scopeId}>posts</strong>.</p><p${_scopeId}>For example:</p></div><div class="language-md"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>md</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>---</span></span>
|
|
119
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>title</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>Title</span></span>
|
|
120
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>hide</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>true</span></span>
|
|
121
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>---</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>---</span></span>
|
|
122
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>title</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>Title</span></span>
|
|
123
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>hide</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>true</span></span>
|
|
124
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>---</span></span></code></pre></div><div lang="zh-CN"${_scopeId}><ul${_scopeId}><li${_scopeId}><code${_scopeId}>title</code>: 文章标题</li><li${_scopeId}><code${_scopeId}>hide</code>: 你可以在文章头部添加 hide 属性,来临时隐藏某篇文章。(该文章仍然会被渲染) <ul${_scopeId}><li${_scopeId}><code${_scopeId}>true</code> / <code${_scopeId}>all</code>: 当设置为 <code${_scopeId}>true</code> 或 <code${_scopeId}>all</code> 时,该文章仍然会被渲染,你可以直接访问链接进行查看。但不会被显示在展示的文章卡片与归档中。</li><li${_scopeId}><code${_scopeId}>index</code>: 设置为 <code${_scopeId}>index</code> 时,将只在首页隐藏,归档中仍然展示。(譬如放一些没有必要放在首页的笔记,并在归档中方便自己查看。)</li></ul></li></ul></div><div lang="en"${_scopeId}><ul${_scopeId}><li${_scopeId}><code${_scopeId}>title</code>: Title of the article.</li><li${_scopeId}><code${_scopeId}>hide</code>: Adding <code${_scopeId}>hide</code> in the header allows you to hide the article temporarily. (The article will still be rendered) <ul${_scopeId}><li${_scopeId}><code${_scopeId}>true</code> / <code${_scopeId}>all</code>: When set to <code${_scopeId}>true</code> or <code${_scopeId}>all</code>, the article will be rendered, and you can view it by visiting the link directly. It will not be displayed in article cards or archives.</li><li${_scopeId}><code${_scopeId}>index</code>: When set to <code${_scopeId}>index</code>, it will be hidden only in the front page. It will still be displayed in archives. (You can use this for some notes unnecessary for the front page, but good for the archive for reference sometimes)</li></ul></li></ul></div><h2 lang="zh-CN" id="摘要" tabindex="-1"${_scopeId}>摘要 `);
|
|
125
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
126
|
+
class: "header-anchor",
|
|
127
|
+
href: "#摘要",
|
|
128
|
+
"aria-label": 'Permalink to "摘要 {lang="zh-CN"}"'
|
|
129
|
+
}, {
|
|
130
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
131
|
+
if (_push3) {
|
|
132
|
+
_push3(``);
|
|
133
|
+
} else {
|
|
134
|
+
return [
|
|
135
|
+
createTextVNode("")
|
|
136
|
+
];
|
|
137
|
+
}
|
|
138
|
+
}),
|
|
139
|
+
_: 1
|
|
140
|
+
/* STABLE */
|
|
141
|
+
}, _parent2, _scopeId));
|
|
142
|
+
_push2(`</h2><h2 lang="en" id="excerpt" tabindex="-1"${_scopeId}>Excerpt `);
|
|
143
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
144
|
+
class: "header-anchor",
|
|
145
|
+
href: "#excerpt",
|
|
146
|
+
"aria-label": 'Permalink to "Excerpt {lang="en"}"'
|
|
147
|
+
}, {
|
|
148
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
149
|
+
if (_push3) {
|
|
150
|
+
_push3(``);
|
|
151
|
+
} else {
|
|
152
|
+
return [
|
|
153
|
+
createTextVNode("")
|
|
154
|
+
];
|
|
155
|
+
}
|
|
156
|
+
}),
|
|
157
|
+
_: 1
|
|
158
|
+
/* STABLE */
|
|
159
|
+
}, _parent2, _scopeId));
|
|
160
|
+
_push2(`</h2><div lang="zh-CN"${_scopeId}><p${_scopeId}>你可以通过插入 <code${_scopeId}><!-- more --></code> 的方式生成摘要(excerpt)。 可通过设置 <code${_scopeId}>excerpt_type</code> 设置摘要渲染类型。</p><ul${_scopeId}><li${_scopeId}><code${_scopeId}>excerpt</code>: 自定义摘要(优先级高于 <code${_scopeId}><!-- more --></code>)</li><li${_scopeId}><code${_scopeId}>excerpt_type</code>: 预览列表<strong${_scopeId}>摘要</strong>的渲染类型(与 <code${_scopeId}><!-- more --></code> 配合使用) <ul${_scopeId}><li${_scopeId}><code${_scopeId}>md</code>: 展示原始 Markdown</li><li${_scopeId}><code${_scopeId}>html</code>: 以 HTML 形式展示</li><li${_scopeId}><code${_scopeId}>text</code>: 以纯文本形式展示(去除 HTML 标签)</li></ul></li></ul></div><div lang="en"${_scopeId}><p${_scopeId}>You can insert <code${_scopeId}><!--more--></code> to generate an excerpt. You can set the excerpt rendering type by setting <code${_scopeId}>excerpt_type</code>.</p><ul${_scopeId}><li${_scopeId}><code${_scopeId}>excerpt</code>: Custom excerpt (higher priority than <code${_scopeId}><!-- more --></code>)</li><li${_scopeId}><code${_scopeId}>excerpt_type</code>: The rendering type for the excerpt in the preview list (Used with <code${_scopeId}><!-- more --></code>) <ul${_scopeId}><li${_scopeId}><code${_scopeId}>md</code>: Display as original markdown</li><li${_scopeId}><code${_scopeId}>html</code>: Display as HTML</li><li${_scopeId}><code${_scopeId}>text</code>: Display as text (removing HTML tags)</li></ul></li></ul></div><div class="vp-code-group"${_scopeId}><div class="tabs"${_scopeId}><input type="radio" name="group-M7s83" id="tab-odoIGIF" checked="checked"${_scopeId}><label for="tab-odoIGIF"${_scopeId}>excerpt_type: text</label><input type="radio" name="group-M7s83" id="tab-617BloV"${_scopeId}><label for="tab-617BloV"${_scopeId}>excerpt_type: md</label><input type="radio" name="group-M7s83" id="tab-PggoVcE"${_scopeId}><label for="tab-PggoVcE"${_scopeId}>excerpt_type: html</label><input type="radio" name="group-M7s83" id="tab-09LkPKR"${_scopeId}><label for="tab-09LkPKR"${_scopeId}>custom excerpt</label></div><div class="blocks"${_scopeId}><div class="language-md active"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>md</span><pre class="shiki github-dark has-highlighted-lines vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>---</span></span>
|
|
161
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>title</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>'excerpt_type: text'</span></span>
|
|
162
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>excerpt_type</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>text</span></span>
|
|
163
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>---</span></span>
|
|
164
|
+
<span class="line"${_scopeId}></span>
|
|
165
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#79B8FF", "font-weight": "bold" })}"${_scopeId}>## Header</span></span>
|
|
166
|
+
<span class="line"${_scopeId}></span>
|
|
167
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>}"${_scopeId}>https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>)</span></span>
|
|
168
|
+
<span class="line"${_scopeId}></span>
|
|
169
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}><!-- more --></span></span>
|
|
170
|
+
<span class="line"${_scopeId}></span>
|
|
171
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>Main Content</span></span></code></pre><pre class="shiki github-light has-highlighted-lines vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>---</span></span>
|
|
172
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>title</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>'excerpt_type: text'</span></span>
|
|
173
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>excerpt_type</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>text</span></span>
|
|
174
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>---</span></span>
|
|
175
|
+
<span class="line"${_scopeId}></span>
|
|
176
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#005CC5", "font-weight": "bold" })}"${_scopeId}>## Header</span></span>
|
|
177
|
+
<span class="line"${_scopeId}></span>
|
|
178
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>}"${_scopeId}>https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>)</span></span>
|
|
179
|
+
<span class="line"${_scopeId}></span>
|
|
180
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}><!-- more --></span></span>
|
|
181
|
+
<span class="line"${_scopeId}></span>
|
|
182
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>Main Content</span></span></code></pre></div><div class="language-md"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>md</span><pre class="shiki github-dark has-highlighted-lines vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>---</span></span>
|
|
183
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>title</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>'excerpt_type: md'</span></span>
|
|
184
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>excerpt_type</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>md</span></span>
|
|
185
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>---</span></span>
|
|
186
|
+
<span class="line"${_scopeId}></span>
|
|
187
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#79B8FF", "font-weight": "bold" })}"${_scopeId}>## Header</span></span>
|
|
188
|
+
<span class="line"${_scopeId}></span>
|
|
189
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>}"${_scopeId}>https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>)</span></span>
|
|
190
|
+
<span class="line"${_scopeId}></span>
|
|
191
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}><!-- more --></span></span>
|
|
192
|
+
<span class="line"${_scopeId}></span>
|
|
193
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>Main Content</span></span></code></pre><pre class="shiki github-light has-highlighted-lines vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>---</span></span>
|
|
194
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>title</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>'excerpt_type: md'</span></span>
|
|
195
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>excerpt_type</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>md</span></span>
|
|
196
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>---</span></span>
|
|
197
|
+
<span class="line"${_scopeId}></span>
|
|
198
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#005CC5", "font-weight": "bold" })}"${_scopeId}>## Header</span></span>
|
|
199
|
+
<span class="line"${_scopeId}></span>
|
|
200
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>}"${_scopeId}>https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>)</span></span>
|
|
201
|
+
<span class="line"${_scopeId}></span>
|
|
202
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}><!-- more --></span></span>
|
|
203
|
+
<span class="line"${_scopeId}></span>
|
|
204
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>Main Content</span></span></code></pre></div><div class="language-md"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>md</span><pre class="shiki github-dark has-highlighted-lines vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>---</span></span>
|
|
205
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>title</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>'excerpt_type: html'</span></span>
|
|
206
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>excerpt_type</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>html</span></span>
|
|
207
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>---</span></span>
|
|
208
|
+
<span class="line"${_scopeId}></span>
|
|
209
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#79B8FF", "font-weight": "bold" })}"${_scopeId}>## Header</span></span>
|
|
210
|
+
<span class="line"${_scopeId}></span>
|
|
211
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>}"${_scopeId}>https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>)</span></span>
|
|
212
|
+
<span class="line"${_scopeId}></span>
|
|
213
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}><!-- more --></span></span>
|
|
214
|
+
<span class="line"${_scopeId}></span>
|
|
215
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>Main Content</span></span></code></pre><pre class="shiki github-light has-highlighted-lines vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>---</span></span>
|
|
216
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>title</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>'excerpt_type: html'</span></span>
|
|
217
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>excerpt_type</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>html</span></span>
|
|
218
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>---</span></span>
|
|
219
|
+
<span class="line"${_scopeId}></span>
|
|
220
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#005CC5", "font-weight": "bold" })}"${_scopeId}>## Header</span></span>
|
|
221
|
+
<span class="line"${_scopeId}></span>
|
|
222
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>}"${_scopeId}>https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>)</span></span>
|
|
223
|
+
<span class="line"${_scopeId}></span>
|
|
224
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}><!-- more --></span></span>
|
|
225
|
+
<span class="line"${_scopeId}></span>
|
|
226
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>Main Content</span></span></code></pre></div><div class="language-md"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>md</span><pre class="shiki github-dark has-highlighted-lines vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>---</span></span>
|
|
227
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>title</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>'custom excerpt'</span></span>
|
|
228
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>excerpt</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>This is a custom excerpt.</span></span>
|
|
229
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>---</span></span>
|
|
230
|
+
<span class="line"${_scopeId}></span>
|
|
231
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#79B8FF", "font-weight": "bold" })}"${_scopeId}>## Header</span></span>
|
|
232
|
+
<span class="line"${_scopeId}></span>
|
|
233
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>}"${_scopeId}>https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>)</span></span>
|
|
234
|
+
<span class="line"${_scopeId}></span>
|
|
235
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>Main Content</span></span></code></pre><pre class="shiki github-light has-highlighted-lines vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>---</span></span>
|
|
236
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>title</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>'custom excerpt'</span></span>
|
|
237
|
+
<span class="line highlighted"${_scopeId}><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>excerpt</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>: </span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>This is a custom excerpt.</span></span>
|
|
238
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>---</span></span>
|
|
239
|
+
<span class="line"${_scopeId}></span>
|
|
240
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#005CC5", "font-weight": "bold" })}"${_scopeId}>## Header</span></span>
|
|
241
|
+
<span class="line"${_scopeId}></span>
|
|
242
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>}"${_scopeId}>https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>)</span></span>
|
|
243
|
+
<span class="line"${_scopeId}></span>
|
|
244
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>Main Content</span></span></code></pre></div></div></div><p${_scopeId}>You will get excerpt:</p><div class="vp-code-group"${_scopeId}><div class="tabs"${_scopeId}><input type="radio" name="group-TcXyo" id="tab-I2mnaqK" checked="checked"${_scopeId}><label for="tab-I2mnaqK"${_scopeId}>excerpt_type: text</label><input type="radio" name="group-TcXyo" id="tab-AQCM52N"${_scopeId}><label for="tab-AQCM52N"${_scopeId}>excerpt_type: md</label><input type="radio" name="group-TcXyo" id="tab-KF6jFF6"${_scopeId}><label for="tab-KF6jFF6"${_scopeId}>excerpt_type: html</label><input type="radio" name="group-TcXyo" id="tab-TmNNls_"${_scopeId}><label for="tab-TmNNls_"${_scopeId}>custom excerpt</label></div><div class="blocks"${_scopeId}><div class="language-md active"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>md</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>HEADER yun-bg</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>HEADER yun-bg</span></span></code></pre></div><div class="language-md"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>md</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#79B8FF", "font-weight": "bold" })}"${_scopeId}>## Header }"${_scopeId}>https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg</span><span style="${ssrRenderStyle({ "color": "#79B8FF", "font-weight": "bold" })}"${_scopeId}>)</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#005CC5", "font-weight": "bold" })}"${_scopeId}>## Header }"${_scopeId}>https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg</span><span style="${ssrRenderStyle({ "color": "#005CC5", "font-weight": "bold" })}"${_scopeId}>)</span></span></code></pre></div><div class="language-md"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>md</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}><!-- Rendered HTML --></span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6A737D" })}"${_scopeId}><!-- Rendered HTML --></span></span></code></pre></div><div class="language-md"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>md</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>This is a custom excerpt.</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>This is a custom excerpt.</span></span></code></pre></div></div></div><h2 id="插入" tabindex="-1"${_scopeId}>插入 `);
|
|
245
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
246
|
+
class: "header-anchor",
|
|
247
|
+
href: "#插入",
|
|
248
|
+
"aria-label": 'Permalink to "插入"'
|
|
249
|
+
}, {
|
|
250
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
251
|
+
if (_push3) {
|
|
252
|
+
_push3(``);
|
|
253
|
+
} else {
|
|
254
|
+
return [
|
|
255
|
+
createTextVNode("")
|
|
256
|
+
];
|
|
257
|
+
}
|
|
258
|
+
}),
|
|
259
|
+
_: 1
|
|
260
|
+
/* STABLE */
|
|
261
|
+
}, _parent2, _scopeId));
|
|
262
|
+
_push2(`</h2><h3 id="组件" tabindex="-1"${_scopeId}>组件 `);
|
|
263
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
264
|
+
class: "header-anchor",
|
|
265
|
+
href: "#组件",
|
|
266
|
+
"aria-label": 'Permalink to "组件"'
|
|
267
|
+
}, {
|
|
268
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
269
|
+
if (_push3) {
|
|
270
|
+
_push3(``);
|
|
271
|
+
} else {
|
|
272
|
+
return [
|
|
273
|
+
createTextVNode("")
|
|
274
|
+
];
|
|
275
|
+
}
|
|
276
|
+
}),
|
|
277
|
+
_: 1
|
|
278
|
+
/* STABLE */
|
|
279
|
+
}, _parent2, _scopeId));
|
|
280
|
+
_push2(`</h3><ul${_scopeId}><li${_scopeId}>如想在文章中插入现有公共组件,请参照 `);
|
|
281
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/guide/built-ins" }, {
|
|
282
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
283
|
+
if (_push3) {
|
|
284
|
+
_push3(`组件`);
|
|
285
|
+
} else {
|
|
286
|
+
return [
|
|
287
|
+
createTextVNode("组件")
|
|
288
|
+
];
|
|
289
|
+
}
|
|
290
|
+
}),
|
|
291
|
+
_: 1
|
|
292
|
+
/* STABLE */
|
|
293
|
+
}, _parent2, _scopeId));
|
|
294
|
+
_push2(`。</li><li${_scopeId}>如想在文章中插入自定义组件,请参照 `);
|
|
295
|
+
_push2(ssrRenderComponent(_component_AppLink, { href: "/guide/custom/components" }, {
|
|
296
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
297
|
+
if (_push3) {
|
|
298
|
+
_push3(`自定义组件`);
|
|
299
|
+
} else {
|
|
300
|
+
return [
|
|
301
|
+
createTextVNode("自定义组件")
|
|
302
|
+
];
|
|
303
|
+
}
|
|
304
|
+
}),
|
|
305
|
+
_: 1
|
|
306
|
+
/* STABLE */
|
|
307
|
+
}, _parent2, _scopeId));
|
|
308
|
+
_push2(`。</li></ul><h3 id="脚本" tabindex="-1"${_scopeId}>脚本 `);
|
|
309
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
310
|
+
class: "header-anchor",
|
|
311
|
+
href: "#脚本",
|
|
312
|
+
"aria-label": 'Permalink to "脚本"'
|
|
313
|
+
}, {
|
|
314
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
315
|
+
if (_push3) {
|
|
316
|
+
_push3(``);
|
|
317
|
+
} else {
|
|
318
|
+
return [
|
|
319
|
+
createTextVNode("")
|
|
320
|
+
];
|
|
321
|
+
}
|
|
322
|
+
}),
|
|
323
|
+
_: 1
|
|
324
|
+
/* STABLE */
|
|
325
|
+
}, _parent2, _scopeId));
|
|
326
|
+
_push2(`</h3><p${_scopeId}>可直接通过 `);
|
|
327
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
328
|
+
href: "https://vueuse.org/core/useScriptTag/",
|
|
329
|
+
target: "_blank",
|
|
330
|
+
rel: "noreferrer"
|
|
331
|
+
}, {
|
|
332
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
333
|
+
if (_push3) {
|
|
334
|
+
_push3(`<code${_scopeId2}>useScriptTag</code>`);
|
|
335
|
+
} else {
|
|
336
|
+
return [
|
|
337
|
+
createVNode("code", null, "useScriptTag")
|
|
338
|
+
];
|
|
339
|
+
}
|
|
340
|
+
}),
|
|
341
|
+
_: 1
|
|
342
|
+
/* STABLE */
|
|
343
|
+
}, _parent2, _scopeId));
|
|
344
|
+
_push2(` 使用,封装为组件或直接添加在文章中。</p><div class="language-vue"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>vue</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}><</span><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>script</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>lang</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>"ts"</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>setup</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>></span></span>
|
|
345
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#B392F0" })}"${_scopeId}>useScriptTag</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>(</span><span style="${ssrRenderStyle({ "color": "#9ECBFF" })}"${_scopeId}>'https://static.codepen.io/assets/embed/ei.js'</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>)</span></span>
|
|
346
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}></</span><span style="${ssrRenderStyle({ "color": "#85E89D" })}"${_scopeId}>script</span><span style="${ssrRenderStyle({ "color": "#E1E4E8" })}"${_scopeId}>></span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}><</span><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>script</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>lang</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>=</span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>"ts"</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}> </span><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>setup</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>></span></span>
|
|
347
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#6F42C1" })}"${_scopeId}>useScriptTag</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>(</span><span style="${ssrRenderStyle({ "color": "#032F62" })}"${_scopeId}>'https://static.codepen.io/assets/embed/ei.js'</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>)</span></span>
|
|
348
|
+
<span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}></</span><span style="${ssrRenderStyle({ "color": "#22863A" })}"${_scopeId}>script</span><span style="${ssrRenderStyle({ "color": "#24292E" })}"${_scopeId}>></span></span></code></pre></div><h2 id="强制规范" tabindex="-1"${_scopeId}>强制规范 `);
|
|
349
|
+
_push2(ssrRenderComponent(_component_AppLink, {
|
|
350
|
+
class: "header-anchor",
|
|
351
|
+
href: "#强制规范",
|
|
352
|
+
"aria-label": 'Permalink to "强制规范"'
|
|
353
|
+
}, {
|
|
354
|
+
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
355
|
+
if (_push3) {
|
|
356
|
+
_push3(``);
|
|
357
|
+
} else {
|
|
358
|
+
return [
|
|
359
|
+
createTextVNode("")
|
|
360
|
+
];
|
|
361
|
+
}
|
|
362
|
+
}),
|
|
363
|
+
_: 1
|
|
364
|
+
/* STABLE */
|
|
365
|
+
}, _parent2, _scopeId));
|
|
366
|
+
_push2(`</h2><p${_scopeId}>由于 Valaxy 支持解析 Vue 组件渲染,因此当您输入 <code${_scopeId}><CustomComponent></CustomComponent></code> 时,它会解析 <code${_scopeId}>components</code> 目录下的 <code${_scopeId}>CustomComponent.vue</code> 组件并渲染。</p><p${_scopeId}>当您不需要其被渲染时,请务必使用反引号包裹,如:</p><div class="language-md"${_scopeId}><button title="Copy Code" class="copy"${_scopeId}></button><span class="lang"${_scopeId}>md</span><pre class="shiki github-dark vp-code-dark"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#79B8FF" })}"${_scopeId}>\`<CustomComponent></CustomComponent>\`</span></span></code></pre><pre class="shiki github-light vp-code-light"${_scopeId}><code${_scopeId}><span class="line"${_scopeId}><span style="${ssrRenderStyle({ "color": "#005CC5" })}"${_scopeId}>\`<CustomComponent></CustomComponent>\`</span></span></code></pre></div>`);
|
|
367
|
+
} else {
|
|
368
|
+
return [
|
|
369
|
+
createVNode("blockquote", null, [
|
|
370
|
+
createVNode("p", null, [
|
|
371
|
+
createVNode(_component_AppLink, {
|
|
372
|
+
href: "https://wordpress.com/zh-cn/support/post-vs-page/",
|
|
373
|
+
target: "_blank",
|
|
374
|
+
rel: "noreferrer"
|
|
375
|
+
}, {
|
|
376
|
+
default: withCtx(() => [
|
|
377
|
+
createTextVNode("Post VS Page")
|
|
378
|
+
]),
|
|
379
|
+
_: 1
|
|
380
|
+
/* STABLE */
|
|
381
|
+
})
|
|
382
|
+
])
|
|
383
|
+
]),
|
|
384
|
+
createVNode("h2", {
|
|
385
|
+
id: "frontmatter",
|
|
386
|
+
tabindex: "-1"
|
|
387
|
+
}, [
|
|
388
|
+
createTextVNode("FrontMatter "),
|
|
389
|
+
createVNode(_component_AppLink, {
|
|
390
|
+
class: "header-anchor",
|
|
391
|
+
href: "#frontmatter",
|
|
392
|
+
"aria-label": 'Permalink to "FrontMatter"'
|
|
393
|
+
}, {
|
|
394
|
+
default: withCtx(() => [
|
|
395
|
+
createTextVNode("")
|
|
396
|
+
]),
|
|
397
|
+
_: 1
|
|
398
|
+
/* STABLE */
|
|
399
|
+
})
|
|
400
|
+
]),
|
|
401
|
+
createVNode("div", { class: "tip custom-block" }, [
|
|
402
|
+
createVNode("p", { class: "custom-block-title" }, [
|
|
403
|
+
createVNode("i", { class: "icon i-carbon-thumbs-up" }),
|
|
404
|
+
createVNode("span", { lang: "en" }, "TIP"),
|
|
405
|
+
createVNode("span", { lang: "zh-CN" }, "提示")
|
|
406
|
+
]),
|
|
407
|
+
createVNode("p", null, "更多配置项可参见:"),
|
|
408
|
+
createVNode("ul", null, [
|
|
409
|
+
createVNode("li", null, [
|
|
410
|
+
createTextVNode("文章(Post)配置:"),
|
|
411
|
+
createVNode(_component_AppLink, {
|
|
412
|
+
href: "https://github.com/YunYouJun/valaxy/blob/main/packages/valaxy/types/posts.ts#L144",
|
|
413
|
+
target: "_blank",
|
|
414
|
+
rel: "noreferrer"
|
|
415
|
+
}, {
|
|
416
|
+
default: withCtx(() => [
|
|
417
|
+
createTextVNode("PostFrontmatter")
|
|
418
|
+
]),
|
|
419
|
+
_: 1
|
|
420
|
+
/* STABLE */
|
|
421
|
+
}),
|
|
422
|
+
createTextVNode(" (文章配置包含页面配置)")
|
|
423
|
+
]),
|
|
424
|
+
createVNode("li", null, [
|
|
425
|
+
createTextVNode("页面(Page)配置:"),
|
|
426
|
+
createVNode(_component_AppLink, {
|
|
427
|
+
href: "https://github.com/YunYouJun/valaxy/blob/main/packages/valaxy/types/posts.ts#L27",
|
|
428
|
+
target: "_blank",
|
|
429
|
+
rel: "noreferrer"
|
|
430
|
+
}, {
|
|
431
|
+
default: withCtx(() => [
|
|
432
|
+
createTextVNode("PageFrontmatter")
|
|
433
|
+
]),
|
|
434
|
+
_: 1
|
|
435
|
+
/* STABLE */
|
|
436
|
+
})
|
|
437
|
+
])
|
|
438
|
+
])
|
|
439
|
+
]),
|
|
440
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
441
|
+
createVNode("p", null, [
|
|
442
|
+
createVNode("strong", null, "文章"),
|
|
443
|
+
createTextVNode("("),
|
|
444
|
+
createVNode("code", null, "post"),
|
|
445
|
+
createTextVNode(")继承自"),
|
|
446
|
+
createVNode("strong", null, "页面"),
|
|
447
|
+
createTextVNode("("),
|
|
448
|
+
createVNode("code", null, "page"),
|
|
449
|
+
createTextVNode("),因此"),
|
|
450
|
+
createVNode("strong", null, "页面"),
|
|
451
|
+
createTextVNode("中的 Front Matter 通用被"),
|
|
452
|
+
createVNode("strong", null, "文章"),
|
|
453
|
+
createTextVNode("支持。")
|
|
454
|
+
]),
|
|
455
|
+
createVNode("blockquote", null, [
|
|
456
|
+
createVNode("p", null, "单篇文章支持的配置项。")
|
|
457
|
+
]),
|
|
458
|
+
createVNode("p", null, "譬如:")
|
|
459
|
+
]),
|
|
460
|
+
createVNode("div", { lang: "en" }, [
|
|
461
|
+
createVNode("p", null, [
|
|
462
|
+
createVNode("code", null, "post"),
|
|
463
|
+
createTextVNode(" is a descendant of "),
|
|
464
|
+
createVNode("code", null, "page"),
|
|
465
|
+
createTextVNode(", so the front matter in "),
|
|
466
|
+
createVNode("strong", null, "pages"),
|
|
467
|
+
createTextVNode(" are supported by "),
|
|
468
|
+
createVNode("strong", null, "posts"),
|
|
469
|
+
createTextVNode(".")
|
|
470
|
+
]),
|
|
471
|
+
createVNode("p", null, "For example:")
|
|
472
|
+
]),
|
|
473
|
+
createVNode("div", { class: "language-md" }, [
|
|
474
|
+
createVNode("button", {
|
|
475
|
+
title: "Copy Code",
|
|
476
|
+
class: "copy"
|
|
477
|
+
}),
|
|
478
|
+
createVNode("span", { class: "lang" }, "md"),
|
|
479
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
480
|
+
createVNode("code", null, [
|
|
481
|
+
createVNode("span", { class: "line" }, [
|
|
482
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
|
|
483
|
+
]),
|
|
484
|
+
createTextVNode("\n"),
|
|
485
|
+
createVNode("span", { class: "line" }, [
|
|
486
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "title"),
|
|
487
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
|
|
488
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "Title")
|
|
489
|
+
]),
|
|
490
|
+
createTextVNode("\n"),
|
|
491
|
+
createVNode("span", { class: "line" }, [
|
|
492
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "hide"),
|
|
493
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
|
|
494
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "true")
|
|
495
|
+
]),
|
|
496
|
+
createTextVNode("\n"),
|
|
497
|
+
createVNode("span", { class: "line" }, [
|
|
498
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
|
|
499
|
+
])
|
|
500
|
+
])
|
|
501
|
+
]),
|
|
502
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
503
|
+
createVNode("code", null, [
|
|
504
|
+
createVNode("span", { class: "line" }, [
|
|
505
|
+
createVNode("span", { style: { "color": "#24292E" } }, "---")
|
|
506
|
+
]),
|
|
507
|
+
createTextVNode("\n"),
|
|
508
|
+
createVNode("span", { class: "line" }, [
|
|
509
|
+
createVNode("span", { style: { "color": "#22863A" } }, "title"),
|
|
510
|
+
createVNode("span", { style: { "color": "#24292E" } }, ": "),
|
|
511
|
+
createVNode("span", { style: { "color": "#032F62" } }, "Title")
|
|
512
|
+
]),
|
|
513
|
+
createTextVNode("\n"),
|
|
514
|
+
createVNode("span", { class: "line" }, [
|
|
515
|
+
createVNode("span", { style: { "color": "#22863A" } }, "hide"),
|
|
516
|
+
createVNode("span", { style: { "color": "#24292E" } }, ": "),
|
|
517
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "true")
|
|
518
|
+
]),
|
|
519
|
+
createTextVNode("\n"),
|
|
520
|
+
createVNode("span", { class: "line" }, [
|
|
521
|
+
createVNode("span", { style: { "color": "#24292E" } }, "---")
|
|
522
|
+
])
|
|
523
|
+
])
|
|
524
|
+
])
|
|
525
|
+
]),
|
|
526
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
527
|
+
createVNode("ul", null, [
|
|
528
|
+
createVNode("li", null, [
|
|
529
|
+
createVNode("code", null, "title"),
|
|
530
|
+
createTextVNode(": 文章标题")
|
|
531
|
+
]),
|
|
532
|
+
createVNode("li", null, [
|
|
533
|
+
createVNode("code", null, "hide"),
|
|
534
|
+
createTextVNode(": 你可以在文章头部添加 hide 属性,来临时隐藏某篇文章。(该文章仍然会被渲染) "),
|
|
535
|
+
createVNode("ul", null, [
|
|
536
|
+
createVNode("li", null, [
|
|
537
|
+
createVNode("code", null, "true"),
|
|
538
|
+
createTextVNode(" / "),
|
|
539
|
+
createVNode("code", null, "all"),
|
|
540
|
+
createTextVNode(": 当设置为 "),
|
|
541
|
+
createVNode("code", null, "true"),
|
|
542
|
+
createTextVNode(" 或 "),
|
|
543
|
+
createVNode("code", null, "all"),
|
|
544
|
+
createTextVNode(" 时,该文章仍然会被渲染,你可以直接访问链接进行查看。但不会被显示在展示的文章卡片与归档中。")
|
|
545
|
+
]),
|
|
546
|
+
createVNode("li", null, [
|
|
547
|
+
createVNode("code", null, "index"),
|
|
548
|
+
createTextVNode(": 设置为 "),
|
|
549
|
+
createVNode("code", null, "index"),
|
|
550
|
+
createTextVNode(" 时,将只在首页隐藏,归档中仍然展示。(譬如放一些没有必要放在首页的笔记,并在归档中方便自己查看。)")
|
|
551
|
+
])
|
|
552
|
+
])
|
|
553
|
+
])
|
|
554
|
+
])
|
|
555
|
+
]),
|
|
556
|
+
createVNode("div", { lang: "en" }, [
|
|
557
|
+
createVNode("ul", null, [
|
|
558
|
+
createVNode("li", null, [
|
|
559
|
+
createVNode("code", null, "title"),
|
|
560
|
+
createTextVNode(": Title of the article.")
|
|
561
|
+
]),
|
|
562
|
+
createVNode("li", null, [
|
|
563
|
+
createVNode("code", null, "hide"),
|
|
564
|
+
createTextVNode(": Adding "),
|
|
565
|
+
createVNode("code", null, "hide"),
|
|
566
|
+
createTextVNode(" in the header allows you to hide the article temporarily. (The article will still be rendered) "),
|
|
567
|
+
createVNode("ul", null, [
|
|
568
|
+
createVNode("li", null, [
|
|
569
|
+
createVNode("code", null, "true"),
|
|
570
|
+
createTextVNode(" / "),
|
|
571
|
+
createVNode("code", null, "all"),
|
|
572
|
+
createTextVNode(": When set to "),
|
|
573
|
+
createVNode("code", null, "true"),
|
|
574
|
+
createTextVNode(" or "),
|
|
575
|
+
createVNode("code", null, "all"),
|
|
576
|
+
createTextVNode(", the article will be rendered, and you can view it by visiting the link directly. It will not be displayed in article cards or archives.")
|
|
577
|
+
]),
|
|
578
|
+
createVNode("li", null, [
|
|
579
|
+
createVNode("code", null, "index"),
|
|
580
|
+
createTextVNode(": When set to "),
|
|
581
|
+
createVNode("code", null, "index"),
|
|
582
|
+
createTextVNode(", it will be hidden only in the front page. It will still be displayed in archives. (You can use this for some notes unnecessary for the front page, but good for the archive for reference sometimes)")
|
|
583
|
+
])
|
|
584
|
+
])
|
|
585
|
+
])
|
|
586
|
+
])
|
|
587
|
+
]),
|
|
588
|
+
createVNode("h2", {
|
|
589
|
+
lang: "zh-CN",
|
|
590
|
+
id: "摘要",
|
|
591
|
+
tabindex: "-1"
|
|
592
|
+
}, [
|
|
593
|
+
createTextVNode("摘要 "),
|
|
594
|
+
createVNode(_component_AppLink, {
|
|
595
|
+
class: "header-anchor",
|
|
596
|
+
href: "#摘要",
|
|
597
|
+
"aria-label": 'Permalink to "摘要 {lang="zh-CN"}"'
|
|
598
|
+
}, {
|
|
599
|
+
default: withCtx(() => [
|
|
600
|
+
createTextVNode("")
|
|
601
|
+
]),
|
|
602
|
+
_: 1
|
|
603
|
+
/* STABLE */
|
|
604
|
+
})
|
|
605
|
+
]),
|
|
606
|
+
createVNode("h2", {
|
|
607
|
+
lang: "en",
|
|
608
|
+
id: "excerpt",
|
|
609
|
+
tabindex: "-1"
|
|
610
|
+
}, [
|
|
611
|
+
createTextVNode("Excerpt "),
|
|
612
|
+
createVNode(_component_AppLink, {
|
|
613
|
+
class: "header-anchor",
|
|
614
|
+
href: "#excerpt",
|
|
615
|
+
"aria-label": 'Permalink to "Excerpt {lang="en"}"'
|
|
616
|
+
}, {
|
|
617
|
+
default: withCtx(() => [
|
|
618
|
+
createTextVNode("")
|
|
619
|
+
]),
|
|
620
|
+
_: 1
|
|
621
|
+
/* STABLE */
|
|
622
|
+
})
|
|
623
|
+
]),
|
|
624
|
+
createVNode("div", { lang: "zh-CN" }, [
|
|
625
|
+
createVNode("p", null, [
|
|
626
|
+
createTextVNode("你可以通过插入 "),
|
|
627
|
+
createVNode("code", null, "<!-- more -->"),
|
|
628
|
+
createTextVNode(" 的方式生成摘要(excerpt)。 可通过设置 "),
|
|
629
|
+
createVNode("code", null, "excerpt_type"),
|
|
630
|
+
createTextVNode(" 设置摘要渲染类型。")
|
|
631
|
+
]),
|
|
632
|
+
createVNode("ul", null, [
|
|
633
|
+
createVNode("li", null, [
|
|
634
|
+
createVNode("code", null, "excerpt"),
|
|
635
|
+
createTextVNode(": 自定义摘要(优先级高于 "),
|
|
636
|
+
createVNode("code", null, "<!-- more -->"),
|
|
637
|
+
createTextVNode(")")
|
|
638
|
+
]),
|
|
639
|
+
createVNode("li", null, [
|
|
640
|
+
createVNode("code", null, "excerpt_type"),
|
|
641
|
+
createTextVNode(": 预览列表"),
|
|
642
|
+
createVNode("strong", null, "摘要"),
|
|
643
|
+
createTextVNode("的渲染类型(与 "),
|
|
644
|
+
createVNode("code", null, "<!-- more -->"),
|
|
645
|
+
createTextVNode(" 配合使用) "),
|
|
646
|
+
createVNode("ul", null, [
|
|
647
|
+
createVNode("li", null, [
|
|
648
|
+
createVNode("code", null, "md"),
|
|
649
|
+
createTextVNode(": 展示原始 Markdown")
|
|
650
|
+
]),
|
|
651
|
+
createVNode("li", null, [
|
|
652
|
+
createVNode("code", null, "html"),
|
|
653
|
+
createTextVNode(": 以 HTML 形式展示")
|
|
654
|
+
]),
|
|
655
|
+
createVNode("li", null, [
|
|
656
|
+
createVNode("code", null, "text"),
|
|
657
|
+
createTextVNode(": 以纯文本形式展示(去除 HTML 标签)")
|
|
658
|
+
])
|
|
659
|
+
])
|
|
660
|
+
])
|
|
661
|
+
])
|
|
662
|
+
]),
|
|
663
|
+
createVNode("div", { lang: "en" }, [
|
|
664
|
+
createVNode("p", null, [
|
|
665
|
+
createTextVNode("You can insert "),
|
|
666
|
+
createVNode("code", null, "<!--more-->"),
|
|
667
|
+
createTextVNode(" to generate an excerpt. You can set the excerpt rendering type by setting "),
|
|
668
|
+
createVNode("code", null, "excerpt_type"),
|
|
669
|
+
createTextVNode(".")
|
|
670
|
+
]),
|
|
671
|
+
createVNode("ul", null, [
|
|
672
|
+
createVNode("li", null, [
|
|
673
|
+
createVNode("code", null, "excerpt"),
|
|
674
|
+
createTextVNode(": Custom excerpt (higher priority than "),
|
|
675
|
+
createVNode("code", null, "<!-- more -->"),
|
|
676
|
+
createTextVNode(")")
|
|
677
|
+
]),
|
|
678
|
+
createVNode("li", null, [
|
|
679
|
+
createVNode("code", null, "excerpt_type"),
|
|
680
|
+
createTextVNode(": The rendering type for the excerpt in the preview list (Used with "),
|
|
681
|
+
createVNode("code", null, "<!-- more -->"),
|
|
682
|
+
createTextVNode(") "),
|
|
683
|
+
createVNode("ul", null, [
|
|
684
|
+
createVNode("li", null, [
|
|
685
|
+
createVNode("code", null, "md"),
|
|
686
|
+
createTextVNode(": Display as original markdown")
|
|
687
|
+
]),
|
|
688
|
+
createVNode("li", null, [
|
|
689
|
+
createVNode("code", null, "html"),
|
|
690
|
+
createTextVNode(": Display as HTML")
|
|
691
|
+
]),
|
|
692
|
+
createVNode("li", null, [
|
|
693
|
+
createVNode("code", null, "text"),
|
|
694
|
+
createTextVNode(": Display as text (removing HTML tags)")
|
|
695
|
+
])
|
|
696
|
+
])
|
|
697
|
+
])
|
|
698
|
+
])
|
|
699
|
+
]),
|
|
700
|
+
createVNode("div", { class: "vp-code-group" }, [
|
|
701
|
+
createVNode("div", { class: "tabs" }, [
|
|
702
|
+
createVNode("input", {
|
|
703
|
+
type: "radio",
|
|
704
|
+
name: "group-M7s83",
|
|
705
|
+
id: "tab-odoIGIF",
|
|
706
|
+
checked: "checked"
|
|
707
|
+
}),
|
|
708
|
+
createVNode("label", { for: "tab-odoIGIF" }, "excerpt_type: text"),
|
|
709
|
+
createVNode("input", {
|
|
710
|
+
type: "radio",
|
|
711
|
+
name: "group-M7s83",
|
|
712
|
+
id: "tab-617BloV"
|
|
713
|
+
}),
|
|
714
|
+
createVNode("label", { for: "tab-617BloV" }, "excerpt_type: md"),
|
|
715
|
+
createVNode("input", {
|
|
716
|
+
type: "radio",
|
|
717
|
+
name: "group-M7s83",
|
|
718
|
+
id: "tab-PggoVcE"
|
|
719
|
+
}),
|
|
720
|
+
createVNode("label", { for: "tab-PggoVcE" }, "excerpt_type: html"),
|
|
721
|
+
createVNode("input", {
|
|
722
|
+
type: "radio",
|
|
723
|
+
name: "group-M7s83",
|
|
724
|
+
id: "tab-09LkPKR"
|
|
725
|
+
}),
|
|
726
|
+
createVNode("label", { for: "tab-09LkPKR" }, "custom excerpt")
|
|
727
|
+
]),
|
|
728
|
+
createVNode("div", { class: "blocks" }, [
|
|
729
|
+
createVNode("div", { class: "language-md active" }, [
|
|
730
|
+
createVNode("button", {
|
|
731
|
+
title: "Copy Code",
|
|
732
|
+
class: "copy"
|
|
733
|
+
}),
|
|
734
|
+
createVNode("span", { class: "lang" }, "md"),
|
|
735
|
+
createVNode("pre", { class: "shiki github-dark has-highlighted-lines vp-code-dark" }, [
|
|
736
|
+
createVNode("code", null, [
|
|
737
|
+
createVNode("span", { class: "line" }, [
|
|
738
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
|
|
739
|
+
]),
|
|
740
|
+
createTextVNode("\n"),
|
|
741
|
+
createVNode("span", { class: "line" }, [
|
|
742
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "title"),
|
|
743
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
|
|
744
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "'excerpt_type: text'")
|
|
745
|
+
]),
|
|
746
|
+
createTextVNode("\n"),
|
|
747
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
748
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "excerpt_type"),
|
|
749
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
|
|
750
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "text")
|
|
751
|
+
]),
|
|
752
|
+
createTextVNode("\n"),
|
|
753
|
+
createVNode("span", { class: "line" }, [
|
|
754
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
|
|
755
|
+
]),
|
|
756
|
+
createTextVNode("\n"),
|
|
757
|
+
createVNode("span", { class: "line" }),
|
|
758
|
+
createTextVNode("\n"),
|
|
759
|
+
createVNode("span", { class: "line" }, [
|
|
760
|
+
createVNode("span", { style: { "color": "#79B8FF", "font-weight": "bold" } }, "## Header")
|
|
761
|
+
]),
|
|
762
|
+
createTextVNode("\n"),
|
|
763
|
+
createVNode("span", { class: "line" }),
|
|
764
|
+
createTextVNode("\n"),
|
|
765
|
+
createVNode("span", { class: "line" }, [
|
|
766
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ",
|
|
769
|
+
createVNode("span", { style: { "color": "#E1E4E8", "text-decoration": "underline" } }, "https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg"),
|
|
770
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ")")
|
|
771
|
+
]),
|
|
772
|
+
createTextVNode("\n"),
|
|
773
|
+
createVNode("span", { class: "line" }),
|
|
774
|
+
createTextVNode("\n"),
|
|
775
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
776
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "<!-- more -->")
|
|
777
|
+
]),
|
|
778
|
+
createTextVNode("\n"),
|
|
779
|
+
createVNode("span", { class: "line" }),
|
|
780
|
+
createTextVNode("\n"),
|
|
781
|
+
createVNode("span", { class: "line" }, [
|
|
782
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "Main Content")
|
|
783
|
+
])
|
|
784
|
+
])
|
|
785
|
+
]),
|
|
786
|
+
createVNode("pre", { class: "shiki github-light has-highlighted-lines vp-code-light" }, [
|
|
787
|
+
createVNode("code", null, [
|
|
788
|
+
createVNode("span", { class: "line" }, [
|
|
789
|
+
createVNode("span", { style: { "color": "#24292E" } }, "---")
|
|
790
|
+
]),
|
|
791
|
+
createTextVNode("\n"),
|
|
792
|
+
createVNode("span", { class: "line" }, [
|
|
793
|
+
createVNode("span", { style: { "color": "#22863A" } }, "title"),
|
|
794
|
+
createVNode("span", { style: { "color": "#24292E" } }, ": "),
|
|
795
|
+
createVNode("span", { style: { "color": "#032F62" } }, "'excerpt_type: text'")
|
|
796
|
+
]),
|
|
797
|
+
createTextVNode("\n"),
|
|
798
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
799
|
+
createVNode("span", { style: { "color": "#22863A" } }, "excerpt_type"),
|
|
800
|
+
createVNode("span", { style: { "color": "#24292E" } }, ": "),
|
|
801
|
+
createVNode("span", { style: { "color": "#032F62" } }, "text")
|
|
802
|
+
]),
|
|
803
|
+
createTextVNode("\n"),
|
|
804
|
+
createVNode("span", { class: "line" }, [
|
|
805
|
+
createVNode("span", { style: { "color": "#24292E" } }, "---")
|
|
806
|
+
]),
|
|
807
|
+
createTextVNode("\n"),
|
|
808
|
+
createVNode("span", { class: "line" }),
|
|
809
|
+
createTextVNode("\n"),
|
|
810
|
+
createVNode("span", { class: "line" }, [
|
|
811
|
+
createVNode("span", { style: { "color": "#005CC5", "font-weight": "bold" } }, "## Header")
|
|
812
|
+
]),
|
|
813
|
+
createTextVNode("\n"),
|
|
814
|
+
createVNode("span", { class: "line" }),
|
|
815
|
+
createTextVNode("\n"),
|
|
816
|
+
createVNode("span", { class: "line" }, [
|
|
817
|
+
createVNode("span", { style: { "color": "#24292E" } }, ",
|
|
820
|
+
createVNode("span", { style: { "color": "#24292E", "text-decoration": "underline" } }, "https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg"),
|
|
821
|
+
createVNode("span", { style: { "color": "#24292E" } }, ")")
|
|
822
|
+
]),
|
|
823
|
+
createTextVNode("\n"),
|
|
824
|
+
createVNode("span", { class: "line" }),
|
|
825
|
+
createTextVNode("\n"),
|
|
826
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
827
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "<!-- more -->")
|
|
828
|
+
]),
|
|
829
|
+
createTextVNode("\n"),
|
|
830
|
+
createVNode("span", { class: "line" }),
|
|
831
|
+
createTextVNode("\n"),
|
|
832
|
+
createVNode("span", { class: "line" }, [
|
|
833
|
+
createVNode("span", { style: { "color": "#24292E" } }, "Main Content")
|
|
834
|
+
])
|
|
835
|
+
])
|
|
836
|
+
])
|
|
837
|
+
]),
|
|
838
|
+
createVNode("div", { class: "language-md" }, [
|
|
839
|
+
createVNode("button", {
|
|
840
|
+
title: "Copy Code",
|
|
841
|
+
class: "copy"
|
|
842
|
+
}),
|
|
843
|
+
createVNode("span", { class: "lang" }, "md"),
|
|
844
|
+
createVNode("pre", { class: "shiki github-dark has-highlighted-lines vp-code-dark" }, [
|
|
845
|
+
createVNode("code", null, [
|
|
846
|
+
createVNode("span", { class: "line" }, [
|
|
847
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
|
|
848
|
+
]),
|
|
849
|
+
createTextVNode("\n"),
|
|
850
|
+
createVNode("span", { class: "line" }, [
|
|
851
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "title"),
|
|
852
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
|
|
853
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "'excerpt_type: md'")
|
|
854
|
+
]),
|
|
855
|
+
createTextVNode("\n"),
|
|
856
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
857
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "excerpt_type"),
|
|
858
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
|
|
859
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "md")
|
|
860
|
+
]),
|
|
861
|
+
createTextVNode("\n"),
|
|
862
|
+
createVNode("span", { class: "line" }, [
|
|
863
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
|
|
864
|
+
]),
|
|
865
|
+
createTextVNode("\n"),
|
|
866
|
+
createVNode("span", { class: "line" }),
|
|
867
|
+
createTextVNode("\n"),
|
|
868
|
+
createVNode("span", { class: "line" }, [
|
|
869
|
+
createVNode("span", { style: { "color": "#79B8FF", "font-weight": "bold" } }, "## Header")
|
|
870
|
+
]),
|
|
871
|
+
createTextVNode("\n"),
|
|
872
|
+
createVNode("span", { class: "line" }),
|
|
873
|
+
createTextVNode("\n"),
|
|
874
|
+
createVNode("span", { class: "line" }, [
|
|
875
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ",
|
|
878
|
+
createVNode("span", { style: { "color": "#E1E4E8", "text-decoration": "underline" } }, "https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg"),
|
|
879
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ")")
|
|
880
|
+
]),
|
|
881
|
+
createTextVNode("\n"),
|
|
882
|
+
createVNode("span", { class: "line" }),
|
|
883
|
+
createTextVNode("\n"),
|
|
884
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
885
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "<!-- more -->")
|
|
886
|
+
]),
|
|
887
|
+
createTextVNode("\n"),
|
|
888
|
+
createVNode("span", { class: "line" }),
|
|
889
|
+
createTextVNode("\n"),
|
|
890
|
+
createVNode("span", { class: "line" }, [
|
|
891
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "Main Content")
|
|
892
|
+
])
|
|
893
|
+
])
|
|
894
|
+
]),
|
|
895
|
+
createVNode("pre", { class: "shiki github-light has-highlighted-lines vp-code-light" }, [
|
|
896
|
+
createVNode("code", null, [
|
|
897
|
+
createVNode("span", { class: "line" }, [
|
|
898
|
+
createVNode("span", { style: { "color": "#24292E" } }, "---")
|
|
899
|
+
]),
|
|
900
|
+
createTextVNode("\n"),
|
|
901
|
+
createVNode("span", { class: "line" }, [
|
|
902
|
+
createVNode("span", { style: { "color": "#22863A" } }, "title"),
|
|
903
|
+
createVNode("span", { style: { "color": "#24292E" } }, ": "),
|
|
904
|
+
createVNode("span", { style: { "color": "#032F62" } }, "'excerpt_type: md'")
|
|
905
|
+
]),
|
|
906
|
+
createTextVNode("\n"),
|
|
907
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
908
|
+
createVNode("span", { style: { "color": "#22863A" } }, "excerpt_type"),
|
|
909
|
+
createVNode("span", { style: { "color": "#24292E" } }, ": "),
|
|
910
|
+
createVNode("span", { style: { "color": "#032F62" } }, "md")
|
|
911
|
+
]),
|
|
912
|
+
createTextVNode("\n"),
|
|
913
|
+
createVNode("span", { class: "line" }, [
|
|
914
|
+
createVNode("span", { style: { "color": "#24292E" } }, "---")
|
|
915
|
+
]),
|
|
916
|
+
createTextVNode("\n"),
|
|
917
|
+
createVNode("span", { class: "line" }),
|
|
918
|
+
createTextVNode("\n"),
|
|
919
|
+
createVNode("span", { class: "line" }, [
|
|
920
|
+
createVNode("span", { style: { "color": "#005CC5", "font-weight": "bold" } }, "## Header")
|
|
921
|
+
]),
|
|
922
|
+
createTextVNode("\n"),
|
|
923
|
+
createVNode("span", { class: "line" }),
|
|
924
|
+
createTextVNode("\n"),
|
|
925
|
+
createVNode("span", { class: "line" }, [
|
|
926
|
+
createVNode("span", { style: { "color": "#24292E" } }, ",
|
|
929
|
+
createVNode("span", { style: { "color": "#24292E", "text-decoration": "underline" } }, "https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg"),
|
|
930
|
+
createVNode("span", { style: { "color": "#24292E" } }, ")")
|
|
931
|
+
]),
|
|
932
|
+
createTextVNode("\n"),
|
|
933
|
+
createVNode("span", { class: "line" }),
|
|
934
|
+
createTextVNode("\n"),
|
|
935
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
936
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "<!-- more -->")
|
|
937
|
+
]),
|
|
938
|
+
createTextVNode("\n"),
|
|
939
|
+
createVNode("span", { class: "line" }),
|
|
940
|
+
createTextVNode("\n"),
|
|
941
|
+
createVNode("span", { class: "line" }, [
|
|
942
|
+
createVNode("span", { style: { "color": "#24292E" } }, "Main Content")
|
|
943
|
+
])
|
|
944
|
+
])
|
|
945
|
+
])
|
|
946
|
+
]),
|
|
947
|
+
createVNode("div", { class: "language-md" }, [
|
|
948
|
+
createVNode("button", {
|
|
949
|
+
title: "Copy Code",
|
|
950
|
+
class: "copy"
|
|
951
|
+
}),
|
|
952
|
+
createVNode("span", { class: "lang" }, "md"),
|
|
953
|
+
createVNode("pre", { class: "shiki github-dark has-highlighted-lines vp-code-dark" }, [
|
|
954
|
+
createVNode("code", null, [
|
|
955
|
+
createVNode("span", { class: "line" }, [
|
|
956
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
|
|
957
|
+
]),
|
|
958
|
+
createTextVNode("\n"),
|
|
959
|
+
createVNode("span", { class: "line" }, [
|
|
960
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "title"),
|
|
961
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
|
|
962
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "'excerpt_type: html'")
|
|
963
|
+
]),
|
|
964
|
+
createTextVNode("\n"),
|
|
965
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
966
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "excerpt_type"),
|
|
967
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
|
|
968
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "html")
|
|
969
|
+
]),
|
|
970
|
+
createTextVNode("\n"),
|
|
971
|
+
createVNode("span", { class: "line" }, [
|
|
972
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
|
|
973
|
+
]),
|
|
974
|
+
createTextVNode("\n"),
|
|
975
|
+
createVNode("span", { class: "line" }),
|
|
976
|
+
createTextVNode("\n"),
|
|
977
|
+
createVNode("span", { class: "line" }, [
|
|
978
|
+
createVNode("span", { style: { "color": "#79B8FF", "font-weight": "bold" } }, "## Header")
|
|
979
|
+
]),
|
|
980
|
+
createTextVNode("\n"),
|
|
981
|
+
createVNode("span", { class: "line" }),
|
|
982
|
+
createTextVNode("\n"),
|
|
983
|
+
createVNode("span", { class: "line" }, [
|
|
984
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ",
|
|
987
|
+
createVNode("span", { style: { "color": "#E1E4E8", "text-decoration": "underline" } }, "https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg"),
|
|
988
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ")")
|
|
989
|
+
]),
|
|
990
|
+
createTextVNode("\n"),
|
|
991
|
+
createVNode("span", { class: "line" }),
|
|
992
|
+
createTextVNode("\n"),
|
|
993
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
994
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "<!-- more -->")
|
|
995
|
+
]),
|
|
996
|
+
createTextVNode("\n"),
|
|
997
|
+
createVNode("span", { class: "line" }),
|
|
998
|
+
createTextVNode("\n"),
|
|
999
|
+
createVNode("span", { class: "line" }, [
|
|
1000
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "Main Content")
|
|
1001
|
+
])
|
|
1002
|
+
])
|
|
1003
|
+
]),
|
|
1004
|
+
createVNode("pre", { class: "shiki github-light has-highlighted-lines vp-code-light" }, [
|
|
1005
|
+
createVNode("code", null, [
|
|
1006
|
+
createVNode("span", { class: "line" }, [
|
|
1007
|
+
createVNode("span", { style: { "color": "#24292E" } }, "---")
|
|
1008
|
+
]),
|
|
1009
|
+
createTextVNode("\n"),
|
|
1010
|
+
createVNode("span", { class: "line" }, [
|
|
1011
|
+
createVNode("span", { style: { "color": "#22863A" } }, "title"),
|
|
1012
|
+
createVNode("span", { style: { "color": "#24292E" } }, ": "),
|
|
1013
|
+
createVNode("span", { style: { "color": "#032F62" } }, "'excerpt_type: html'")
|
|
1014
|
+
]),
|
|
1015
|
+
createTextVNode("\n"),
|
|
1016
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
1017
|
+
createVNode("span", { style: { "color": "#22863A" } }, "excerpt_type"),
|
|
1018
|
+
createVNode("span", { style: { "color": "#24292E" } }, ": "),
|
|
1019
|
+
createVNode("span", { style: { "color": "#032F62" } }, "html")
|
|
1020
|
+
]),
|
|
1021
|
+
createTextVNode("\n"),
|
|
1022
|
+
createVNode("span", { class: "line" }, [
|
|
1023
|
+
createVNode("span", { style: { "color": "#24292E" } }, "---")
|
|
1024
|
+
]),
|
|
1025
|
+
createTextVNode("\n"),
|
|
1026
|
+
createVNode("span", { class: "line" }),
|
|
1027
|
+
createTextVNode("\n"),
|
|
1028
|
+
createVNode("span", { class: "line" }, [
|
|
1029
|
+
createVNode("span", { style: { "color": "#005CC5", "font-weight": "bold" } }, "## Header")
|
|
1030
|
+
]),
|
|
1031
|
+
createTextVNode("\n"),
|
|
1032
|
+
createVNode("span", { class: "line" }),
|
|
1033
|
+
createTextVNode("\n"),
|
|
1034
|
+
createVNode("span", { class: "line" }, [
|
|
1035
|
+
createVNode("span", { style: { "color": "#24292E" } }, ",
|
|
1038
|
+
createVNode("span", { style: { "color": "#24292E", "text-decoration": "underline" } }, "https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg"),
|
|
1039
|
+
createVNode("span", { style: { "color": "#24292E" } }, ")")
|
|
1040
|
+
]),
|
|
1041
|
+
createTextVNode("\n"),
|
|
1042
|
+
createVNode("span", { class: "line" }),
|
|
1043
|
+
createTextVNode("\n"),
|
|
1044
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
1045
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "<!-- more -->")
|
|
1046
|
+
]),
|
|
1047
|
+
createTextVNode("\n"),
|
|
1048
|
+
createVNode("span", { class: "line" }),
|
|
1049
|
+
createTextVNode("\n"),
|
|
1050
|
+
createVNode("span", { class: "line" }, [
|
|
1051
|
+
createVNode("span", { style: { "color": "#24292E" } }, "Main Content")
|
|
1052
|
+
])
|
|
1053
|
+
])
|
|
1054
|
+
])
|
|
1055
|
+
]),
|
|
1056
|
+
createVNode("div", { class: "language-md" }, [
|
|
1057
|
+
createVNode("button", {
|
|
1058
|
+
title: "Copy Code",
|
|
1059
|
+
class: "copy"
|
|
1060
|
+
}),
|
|
1061
|
+
createVNode("span", { class: "lang" }, "md"),
|
|
1062
|
+
createVNode("pre", { class: "shiki github-dark has-highlighted-lines vp-code-dark" }, [
|
|
1063
|
+
createVNode("code", null, [
|
|
1064
|
+
createVNode("span", { class: "line" }, [
|
|
1065
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
|
|
1066
|
+
]),
|
|
1067
|
+
createTextVNode("\n"),
|
|
1068
|
+
createVNode("span", { class: "line" }, [
|
|
1069
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "title"),
|
|
1070
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
|
|
1071
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "'custom excerpt'")
|
|
1072
|
+
]),
|
|
1073
|
+
createTextVNode("\n"),
|
|
1074
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
1075
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "excerpt"),
|
|
1076
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ": "),
|
|
1077
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "This is a custom excerpt.")
|
|
1078
|
+
]),
|
|
1079
|
+
createTextVNode("\n"),
|
|
1080
|
+
createVNode("span", { class: "line" }, [
|
|
1081
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "---")
|
|
1082
|
+
]),
|
|
1083
|
+
createTextVNode("\n"),
|
|
1084
|
+
createVNode("span", { class: "line" }),
|
|
1085
|
+
createTextVNode("\n"),
|
|
1086
|
+
createVNode("span", { class: "line" }, [
|
|
1087
|
+
createVNode("span", { style: { "color": "#79B8FF", "font-weight": "bold" } }, "## Header")
|
|
1088
|
+
]),
|
|
1089
|
+
createTextVNode("\n"),
|
|
1090
|
+
createVNode("span", { class: "line" }),
|
|
1091
|
+
createTextVNode("\n"),
|
|
1092
|
+
createVNode("span", { class: "line" }, [
|
|
1093
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ",
|
|
1096
|
+
createVNode("span", { style: { "color": "#E1E4E8", "text-decoration": "underline" } }, "https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg"),
|
|
1097
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ")")
|
|
1098
|
+
]),
|
|
1099
|
+
createTextVNode("\n"),
|
|
1100
|
+
createVNode("span", { class: "line" }),
|
|
1101
|
+
createTextVNode("\n"),
|
|
1102
|
+
createVNode("span", { class: "line" }, [
|
|
1103
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "Main Content")
|
|
1104
|
+
])
|
|
1105
|
+
])
|
|
1106
|
+
]),
|
|
1107
|
+
createVNode("pre", { class: "shiki github-light has-highlighted-lines vp-code-light" }, [
|
|
1108
|
+
createVNode("code", null, [
|
|
1109
|
+
createVNode("span", { class: "line" }, [
|
|
1110
|
+
createVNode("span", { style: { "color": "#24292E" } }, "---")
|
|
1111
|
+
]),
|
|
1112
|
+
createTextVNode("\n"),
|
|
1113
|
+
createVNode("span", { class: "line" }, [
|
|
1114
|
+
createVNode("span", { style: { "color": "#22863A" } }, "title"),
|
|
1115
|
+
createVNode("span", { style: { "color": "#24292E" } }, ": "),
|
|
1116
|
+
createVNode("span", { style: { "color": "#032F62" } }, "'custom excerpt'")
|
|
1117
|
+
]),
|
|
1118
|
+
createTextVNode("\n"),
|
|
1119
|
+
createVNode("span", { class: "line highlighted" }, [
|
|
1120
|
+
createVNode("span", { style: { "color": "#22863A" } }, "excerpt"),
|
|
1121
|
+
createVNode("span", { style: { "color": "#24292E" } }, ": "),
|
|
1122
|
+
createVNode("span", { style: { "color": "#032F62" } }, "This is a custom excerpt.")
|
|
1123
|
+
]),
|
|
1124
|
+
createTextVNode("\n"),
|
|
1125
|
+
createVNode("span", { class: "line" }, [
|
|
1126
|
+
createVNode("span", { style: { "color": "#24292E" } }, "---")
|
|
1127
|
+
]),
|
|
1128
|
+
createTextVNode("\n"),
|
|
1129
|
+
createVNode("span", { class: "line" }),
|
|
1130
|
+
createTextVNode("\n"),
|
|
1131
|
+
createVNode("span", { class: "line" }, [
|
|
1132
|
+
createVNode("span", { style: { "color": "#005CC5", "font-weight": "bold" } }, "## Header")
|
|
1133
|
+
]),
|
|
1134
|
+
createTextVNode("\n"),
|
|
1135
|
+
createVNode("span", { class: "line" }),
|
|
1136
|
+
createTextVNode("\n"),
|
|
1137
|
+
createVNode("span", { class: "line" }, [
|
|
1138
|
+
createVNode("span", { style: { "color": "#24292E" } }, ",
|
|
1141
|
+
createVNode("span", { style: { "color": "#24292E", "text-decoration": "underline" } }, "https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg"),
|
|
1142
|
+
createVNode("span", { style: { "color": "#24292E" } }, ")")
|
|
1143
|
+
]),
|
|
1144
|
+
createTextVNode("\n"),
|
|
1145
|
+
createVNode("span", { class: "line" }),
|
|
1146
|
+
createTextVNode("\n"),
|
|
1147
|
+
createVNode("span", { class: "line" }, [
|
|
1148
|
+
createVNode("span", { style: { "color": "#24292E" } }, "Main Content")
|
|
1149
|
+
])
|
|
1150
|
+
])
|
|
1151
|
+
])
|
|
1152
|
+
])
|
|
1153
|
+
])
|
|
1154
|
+
]),
|
|
1155
|
+
createVNode("p", null, "You will get excerpt:"),
|
|
1156
|
+
createVNode("div", { class: "vp-code-group" }, [
|
|
1157
|
+
createVNode("div", { class: "tabs" }, [
|
|
1158
|
+
createVNode("input", {
|
|
1159
|
+
type: "radio",
|
|
1160
|
+
name: "group-TcXyo",
|
|
1161
|
+
id: "tab-I2mnaqK",
|
|
1162
|
+
checked: "checked"
|
|
1163
|
+
}),
|
|
1164
|
+
createVNode("label", { for: "tab-I2mnaqK" }, "excerpt_type: text"),
|
|
1165
|
+
createVNode("input", {
|
|
1166
|
+
type: "radio",
|
|
1167
|
+
name: "group-TcXyo",
|
|
1168
|
+
id: "tab-AQCM52N"
|
|
1169
|
+
}),
|
|
1170
|
+
createVNode("label", { for: "tab-AQCM52N" }, "excerpt_type: md"),
|
|
1171
|
+
createVNode("input", {
|
|
1172
|
+
type: "radio",
|
|
1173
|
+
name: "group-TcXyo",
|
|
1174
|
+
id: "tab-KF6jFF6"
|
|
1175
|
+
}),
|
|
1176
|
+
createVNode("label", { for: "tab-KF6jFF6" }, "excerpt_type: html"),
|
|
1177
|
+
createVNode("input", {
|
|
1178
|
+
type: "radio",
|
|
1179
|
+
name: "group-TcXyo",
|
|
1180
|
+
id: "tab-TmNNls_"
|
|
1181
|
+
}),
|
|
1182
|
+
createVNode("label", { for: "tab-TmNNls_" }, "custom excerpt")
|
|
1183
|
+
]),
|
|
1184
|
+
createVNode("div", { class: "blocks" }, [
|
|
1185
|
+
createVNode("div", { class: "language-md active" }, [
|
|
1186
|
+
createVNode("button", {
|
|
1187
|
+
title: "Copy Code",
|
|
1188
|
+
class: "copy"
|
|
1189
|
+
}),
|
|
1190
|
+
createVNode("span", { class: "lang" }, "md"),
|
|
1191
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1192
|
+
createVNode("code", null, [
|
|
1193
|
+
createVNode("span", { class: "line" }, [
|
|
1194
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "HEADER yun-bg")
|
|
1195
|
+
])
|
|
1196
|
+
])
|
|
1197
|
+
]),
|
|
1198
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1199
|
+
createVNode("code", null, [
|
|
1200
|
+
createVNode("span", { class: "line" }, [
|
|
1201
|
+
createVNode("span", { style: { "color": "#24292E" } }, "HEADER yun-bg")
|
|
1202
|
+
])
|
|
1203
|
+
])
|
|
1204
|
+
])
|
|
1205
|
+
]),
|
|
1206
|
+
createVNode("div", { class: "language-md" }, [
|
|
1207
|
+
createVNode("button", {
|
|
1208
|
+
title: "Copy Code",
|
|
1209
|
+
class: "copy"
|
|
1210
|
+
}),
|
|
1211
|
+
createVNode("span", { class: "lang" }, "md"),
|
|
1212
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1213
|
+
createVNode("code", null, [
|
|
1214
|
+
createVNode("span", { class: "line" }, [
|
|
1215
|
+
createVNode("span", { style: { "color": "#79B8FF", "font-weight": "bold" } }, "## Header ,
|
|
1218
|
+
createVNode("span", { style: { "color": "#79B8FF", "text-decoration": "underline" } }, "https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg"),
|
|
1219
|
+
createVNode("span", { style: { "color": "#79B8FF", "font-weight": "bold" } }, ")")
|
|
1220
|
+
])
|
|
1221
|
+
])
|
|
1222
|
+
]),
|
|
1223
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1224
|
+
createVNode("code", null, [
|
|
1225
|
+
createVNode("span", { class: "line" }, [
|
|
1226
|
+
createVNode("span", { style: { "color": "#005CC5", "font-weight": "bold" } }, "## Header ,
|
|
1229
|
+
createVNode("span", { style: { "color": "#005CC5", "text-decoration": "underline" } }, "https://cdn.yunyoujun.cn/img/bg/stars-timing-0-blur-30px.jpg"),
|
|
1230
|
+
createVNode("span", { style: { "color": "#005CC5", "font-weight": "bold" } }, ")")
|
|
1231
|
+
])
|
|
1232
|
+
])
|
|
1233
|
+
])
|
|
1234
|
+
]),
|
|
1235
|
+
createVNode("div", { class: "language-md" }, [
|
|
1236
|
+
createVNode("button", {
|
|
1237
|
+
title: "Copy Code",
|
|
1238
|
+
class: "copy"
|
|
1239
|
+
}),
|
|
1240
|
+
createVNode("span", { class: "lang" }, "md"),
|
|
1241
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1242
|
+
createVNode("code", null, [
|
|
1243
|
+
createVNode("span", { class: "line" }, [
|
|
1244
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "<!-- Rendered HTML -->")
|
|
1245
|
+
])
|
|
1246
|
+
])
|
|
1247
|
+
]),
|
|
1248
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1249
|
+
createVNode("code", null, [
|
|
1250
|
+
createVNode("span", { class: "line" }, [
|
|
1251
|
+
createVNode("span", { style: { "color": "#6A737D" } }, "<!-- Rendered HTML -->")
|
|
1252
|
+
])
|
|
1253
|
+
])
|
|
1254
|
+
])
|
|
1255
|
+
]),
|
|
1256
|
+
createVNode("div", { class: "language-md" }, [
|
|
1257
|
+
createVNode("button", {
|
|
1258
|
+
title: "Copy Code",
|
|
1259
|
+
class: "copy"
|
|
1260
|
+
}),
|
|
1261
|
+
createVNode("span", { class: "lang" }, "md"),
|
|
1262
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1263
|
+
createVNode("code", null, [
|
|
1264
|
+
createVNode("span", { class: "line" }, [
|
|
1265
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "This is a custom excerpt.")
|
|
1266
|
+
])
|
|
1267
|
+
])
|
|
1268
|
+
]),
|
|
1269
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1270
|
+
createVNode("code", null, [
|
|
1271
|
+
createVNode("span", { class: "line" }, [
|
|
1272
|
+
createVNode("span", { style: { "color": "#24292E" } }, "This is a custom excerpt.")
|
|
1273
|
+
])
|
|
1274
|
+
])
|
|
1275
|
+
])
|
|
1276
|
+
])
|
|
1277
|
+
])
|
|
1278
|
+
]),
|
|
1279
|
+
createVNode("h2", {
|
|
1280
|
+
id: "插入",
|
|
1281
|
+
tabindex: "-1"
|
|
1282
|
+
}, [
|
|
1283
|
+
createTextVNode("插入 "),
|
|
1284
|
+
createVNode(_component_AppLink, {
|
|
1285
|
+
class: "header-anchor",
|
|
1286
|
+
href: "#插入",
|
|
1287
|
+
"aria-label": 'Permalink to "插入"'
|
|
1288
|
+
}, {
|
|
1289
|
+
default: withCtx(() => [
|
|
1290
|
+
createTextVNode("")
|
|
1291
|
+
]),
|
|
1292
|
+
_: 1
|
|
1293
|
+
/* STABLE */
|
|
1294
|
+
})
|
|
1295
|
+
]),
|
|
1296
|
+
createVNode("h3", {
|
|
1297
|
+
id: "组件",
|
|
1298
|
+
tabindex: "-1"
|
|
1299
|
+
}, [
|
|
1300
|
+
createTextVNode("组件 "),
|
|
1301
|
+
createVNode(_component_AppLink, {
|
|
1302
|
+
class: "header-anchor",
|
|
1303
|
+
href: "#组件",
|
|
1304
|
+
"aria-label": 'Permalink to "组件"'
|
|
1305
|
+
}, {
|
|
1306
|
+
default: withCtx(() => [
|
|
1307
|
+
createTextVNode("")
|
|
1308
|
+
]),
|
|
1309
|
+
_: 1
|
|
1310
|
+
/* STABLE */
|
|
1311
|
+
})
|
|
1312
|
+
]),
|
|
1313
|
+
createVNode("ul", null, [
|
|
1314
|
+
createVNode("li", null, [
|
|
1315
|
+
createTextVNode("如想在文章中插入现有公共组件,请参照 "),
|
|
1316
|
+
createVNode(_component_AppLink, { href: "/guide/built-ins" }, {
|
|
1317
|
+
default: withCtx(() => [
|
|
1318
|
+
createTextVNode("组件")
|
|
1319
|
+
]),
|
|
1320
|
+
_: 1
|
|
1321
|
+
/* STABLE */
|
|
1322
|
+
}),
|
|
1323
|
+
createTextVNode("。")
|
|
1324
|
+
]),
|
|
1325
|
+
createVNode("li", null, [
|
|
1326
|
+
createTextVNode("如想在文章中插入自定义组件,请参照 "),
|
|
1327
|
+
createVNode(_component_AppLink, { href: "/guide/custom/components" }, {
|
|
1328
|
+
default: withCtx(() => [
|
|
1329
|
+
createTextVNode("自定义组件")
|
|
1330
|
+
]),
|
|
1331
|
+
_: 1
|
|
1332
|
+
/* STABLE */
|
|
1333
|
+
}),
|
|
1334
|
+
createTextVNode("。")
|
|
1335
|
+
])
|
|
1336
|
+
]),
|
|
1337
|
+
createVNode("h3", {
|
|
1338
|
+
id: "脚本",
|
|
1339
|
+
tabindex: "-1"
|
|
1340
|
+
}, [
|
|
1341
|
+
createTextVNode("脚本 "),
|
|
1342
|
+
createVNode(_component_AppLink, {
|
|
1343
|
+
class: "header-anchor",
|
|
1344
|
+
href: "#脚本",
|
|
1345
|
+
"aria-label": 'Permalink to "脚本"'
|
|
1346
|
+
}, {
|
|
1347
|
+
default: withCtx(() => [
|
|
1348
|
+
createTextVNode("")
|
|
1349
|
+
]),
|
|
1350
|
+
_: 1
|
|
1351
|
+
/* STABLE */
|
|
1352
|
+
})
|
|
1353
|
+
]),
|
|
1354
|
+
createVNode("p", null, [
|
|
1355
|
+
createTextVNode("可直接通过 "),
|
|
1356
|
+
createVNode(_component_AppLink, {
|
|
1357
|
+
href: "https://vueuse.org/core/useScriptTag/",
|
|
1358
|
+
target: "_blank",
|
|
1359
|
+
rel: "noreferrer"
|
|
1360
|
+
}, {
|
|
1361
|
+
default: withCtx(() => [
|
|
1362
|
+
createVNode("code", null, "useScriptTag")
|
|
1363
|
+
]),
|
|
1364
|
+
_: 1
|
|
1365
|
+
/* STABLE */
|
|
1366
|
+
}),
|
|
1367
|
+
createTextVNode(" 使用,封装为组件或直接添加在文章中。")
|
|
1368
|
+
]),
|
|
1369
|
+
createVNode("div", { class: "language-vue" }, [
|
|
1370
|
+
createVNode("button", {
|
|
1371
|
+
title: "Copy Code",
|
|
1372
|
+
class: "copy"
|
|
1373
|
+
}),
|
|
1374
|
+
createVNode("span", { class: "lang" }, "vue"),
|
|
1375
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1376
|
+
createVNode("code", null, [
|
|
1377
|
+
createVNode("span", { class: "line" }, [
|
|
1378
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "<"),
|
|
1379
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "script"),
|
|
1380
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1381
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "lang"),
|
|
1382
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "="),
|
|
1383
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, '"ts"'),
|
|
1384
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, " "),
|
|
1385
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "setup"),
|
|
1386
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ">")
|
|
1387
|
+
]),
|
|
1388
|
+
createTextVNode("\n"),
|
|
1389
|
+
createVNode("span", { class: "line" }, [
|
|
1390
|
+
createVNode("span", { style: { "color": "#B392F0" } }, "useScriptTag"),
|
|
1391
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "("),
|
|
1392
|
+
createVNode("span", { style: { "color": "#9ECBFF" } }, "'https://static.codepen.io/assets/embed/ei.js'"),
|
|
1393
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ")")
|
|
1394
|
+
]),
|
|
1395
|
+
createTextVNode("\n"),
|
|
1396
|
+
createVNode("span", { class: "line" }, [
|
|
1397
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, "</"),
|
|
1398
|
+
createVNode("span", { style: { "color": "#85E89D" } }, "script"),
|
|
1399
|
+
createVNode("span", { style: { "color": "#E1E4E8" } }, ">")
|
|
1400
|
+
])
|
|
1401
|
+
])
|
|
1402
|
+
]),
|
|
1403
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1404
|
+
createVNode("code", null, [
|
|
1405
|
+
createVNode("span", { class: "line" }, [
|
|
1406
|
+
createVNode("span", { style: { "color": "#24292E" } }, "<"),
|
|
1407
|
+
createVNode("span", { style: { "color": "#22863A" } }, "script"),
|
|
1408
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1409
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "lang"),
|
|
1410
|
+
createVNode("span", { style: { "color": "#24292E" } }, "="),
|
|
1411
|
+
createVNode("span", { style: { "color": "#032F62" } }, '"ts"'),
|
|
1412
|
+
createVNode("span", { style: { "color": "#24292E" } }, " "),
|
|
1413
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "setup"),
|
|
1414
|
+
createVNode("span", { style: { "color": "#24292E" } }, ">")
|
|
1415
|
+
]),
|
|
1416
|
+
createTextVNode("\n"),
|
|
1417
|
+
createVNode("span", { class: "line" }, [
|
|
1418
|
+
createVNode("span", { style: { "color": "#6F42C1" } }, "useScriptTag"),
|
|
1419
|
+
createVNode("span", { style: { "color": "#24292E" } }, "("),
|
|
1420
|
+
createVNode("span", { style: { "color": "#032F62" } }, "'https://static.codepen.io/assets/embed/ei.js'"),
|
|
1421
|
+
createVNode("span", { style: { "color": "#24292E" } }, ")")
|
|
1422
|
+
]),
|
|
1423
|
+
createTextVNode("\n"),
|
|
1424
|
+
createVNode("span", { class: "line" }, [
|
|
1425
|
+
createVNode("span", { style: { "color": "#24292E" } }, "</"),
|
|
1426
|
+
createVNode("span", { style: { "color": "#22863A" } }, "script"),
|
|
1427
|
+
createVNode("span", { style: { "color": "#24292E" } }, ">")
|
|
1428
|
+
])
|
|
1429
|
+
])
|
|
1430
|
+
])
|
|
1431
|
+
]),
|
|
1432
|
+
createVNode("h2", {
|
|
1433
|
+
id: "强制规范",
|
|
1434
|
+
tabindex: "-1"
|
|
1435
|
+
}, [
|
|
1436
|
+
createTextVNode("强制规范 "),
|
|
1437
|
+
createVNode(_component_AppLink, {
|
|
1438
|
+
class: "header-anchor",
|
|
1439
|
+
href: "#强制规范",
|
|
1440
|
+
"aria-label": 'Permalink to "强制规范"'
|
|
1441
|
+
}, {
|
|
1442
|
+
default: withCtx(() => [
|
|
1443
|
+
createTextVNode("")
|
|
1444
|
+
]),
|
|
1445
|
+
_: 1
|
|
1446
|
+
/* STABLE */
|
|
1447
|
+
})
|
|
1448
|
+
]),
|
|
1449
|
+
createVNode("p", null, [
|
|
1450
|
+
createTextVNode("由于 Valaxy 支持解析 Vue 组件渲染,因此当您输入 "),
|
|
1451
|
+
createVNode("code", null, "<CustomComponent></CustomComponent>"),
|
|
1452
|
+
createTextVNode(" 时,它会解析 "),
|
|
1453
|
+
createVNode("code", null, "components"),
|
|
1454
|
+
createTextVNode(" 目录下的 "),
|
|
1455
|
+
createVNode("code", null, "CustomComponent.vue"),
|
|
1456
|
+
createTextVNode(" 组件并渲染。")
|
|
1457
|
+
]),
|
|
1458
|
+
createVNode("p", null, "当您不需要其被渲染时,请务必使用反引号包裹,如:"),
|
|
1459
|
+
createVNode("div", { class: "language-md" }, [
|
|
1460
|
+
createVNode("button", {
|
|
1461
|
+
title: "Copy Code",
|
|
1462
|
+
class: "copy"
|
|
1463
|
+
}),
|
|
1464
|
+
createVNode("span", { class: "lang" }, "md"),
|
|
1465
|
+
createVNode("pre", { class: "shiki github-dark vp-code-dark" }, [
|
|
1466
|
+
createVNode("code", null, [
|
|
1467
|
+
createVNode("span", { class: "line" }, [
|
|
1468
|
+
createVNode("span", { style: { "color": "#79B8FF" } }, "`<CustomComponent></CustomComponent>`")
|
|
1469
|
+
])
|
|
1470
|
+
])
|
|
1471
|
+
]),
|
|
1472
|
+
createVNode("pre", { class: "shiki github-light vp-code-light" }, [
|
|
1473
|
+
createVNode("code", null, [
|
|
1474
|
+
createVNode("span", { class: "line" }, [
|
|
1475
|
+
createVNode("span", { style: { "color": "#005CC5" } }, "`<CustomComponent></CustomComponent>`")
|
|
1476
|
+
])
|
|
1477
|
+
])
|
|
1478
|
+
])
|
|
1479
|
+
])
|
|
1480
|
+
];
|
|
1481
|
+
}
|
|
1482
|
+
}),
|
|
1483
|
+
"main-header": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1484
|
+
if (_push2) {
|
|
1485
|
+
ssrRenderSlot(_ctx.$slots, "main-header", {}, null, _push2, _parent2, _scopeId);
|
|
1486
|
+
} else {
|
|
1487
|
+
return [
|
|
1488
|
+
renderSlot(_ctx.$slots, "main-header")
|
|
1489
|
+
];
|
|
1490
|
+
}
|
|
1491
|
+
}),
|
|
1492
|
+
"main-header-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1493
|
+
if (_push2) {
|
|
1494
|
+
ssrRenderSlot(_ctx.$slots, "main-header-after", {}, null, _push2, _parent2, _scopeId);
|
|
1495
|
+
} else {
|
|
1496
|
+
return [
|
|
1497
|
+
renderSlot(_ctx.$slots, "main-header-after")
|
|
1498
|
+
];
|
|
1499
|
+
}
|
|
1500
|
+
}),
|
|
1501
|
+
"main-nav": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1502
|
+
if (_push2) {
|
|
1503
|
+
ssrRenderSlot(_ctx.$slots, "main-nav", {}, null, _push2, _parent2, _scopeId);
|
|
1504
|
+
} else {
|
|
1505
|
+
return [
|
|
1506
|
+
renderSlot(_ctx.$slots, "main-nav")
|
|
1507
|
+
];
|
|
1508
|
+
}
|
|
1509
|
+
}),
|
|
1510
|
+
"main-content": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1511
|
+
if (_push2) {
|
|
1512
|
+
ssrRenderSlot(_ctx.$slots, "main-content", {}, null, _push2, _parent2, _scopeId);
|
|
1513
|
+
} else {
|
|
1514
|
+
return [
|
|
1515
|
+
renderSlot(_ctx.$slots, "main-content")
|
|
1516
|
+
];
|
|
1517
|
+
}
|
|
1518
|
+
}),
|
|
1519
|
+
"main-content-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1520
|
+
if (_push2) {
|
|
1521
|
+
ssrRenderSlot(_ctx.$slots, "main-content-after", {}, null, _push2, _parent2, _scopeId);
|
|
1522
|
+
} else {
|
|
1523
|
+
return [
|
|
1524
|
+
renderSlot(_ctx.$slots, "main-content-after")
|
|
1525
|
+
];
|
|
1526
|
+
}
|
|
1527
|
+
}),
|
|
1528
|
+
"main-nav-before": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1529
|
+
if (_push2) {
|
|
1530
|
+
ssrRenderSlot(_ctx.$slots, "main-nav-before", {}, null, _push2, _parent2, _scopeId);
|
|
1531
|
+
} else {
|
|
1532
|
+
return [
|
|
1533
|
+
renderSlot(_ctx.$slots, "main-nav-before")
|
|
1534
|
+
];
|
|
1535
|
+
}
|
|
1536
|
+
}),
|
|
1537
|
+
"main-nav-after": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1538
|
+
if (_push2) {
|
|
1539
|
+
ssrRenderSlot(_ctx.$slots, "main-nav-after", {}, null, _push2, _parent2, _scopeId);
|
|
1540
|
+
} else {
|
|
1541
|
+
return [
|
|
1542
|
+
renderSlot(_ctx.$slots, "main-nav-after")
|
|
1543
|
+
];
|
|
1544
|
+
}
|
|
1545
|
+
}),
|
|
1546
|
+
comment: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1547
|
+
if (_push2) {
|
|
1548
|
+
ssrRenderSlot(_ctx.$slots, "comment", {}, null, _push2, _parent2, _scopeId);
|
|
1549
|
+
} else {
|
|
1550
|
+
return [
|
|
1551
|
+
renderSlot(_ctx.$slots, "comment")
|
|
1552
|
+
];
|
|
1553
|
+
}
|
|
1554
|
+
}),
|
|
1555
|
+
footer: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1556
|
+
if (_push2) {
|
|
1557
|
+
ssrRenderSlot(_ctx.$slots, "footer", {}, null, _push2, _parent2, _scopeId);
|
|
1558
|
+
} else {
|
|
1559
|
+
return [
|
|
1560
|
+
renderSlot(_ctx.$slots, "footer")
|
|
1561
|
+
];
|
|
1562
|
+
}
|
|
1563
|
+
}),
|
|
1564
|
+
aside: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1565
|
+
if (_push2) {
|
|
1566
|
+
ssrRenderSlot(_ctx.$slots, "aside", {}, null, _push2, _parent2, _scopeId);
|
|
1567
|
+
} else {
|
|
1568
|
+
return [
|
|
1569
|
+
renderSlot(_ctx.$slots, "aside")
|
|
1570
|
+
];
|
|
1571
|
+
}
|
|
1572
|
+
}),
|
|
1573
|
+
"aside-custom": withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1574
|
+
if (_push2) {
|
|
1575
|
+
ssrRenderSlot(_ctx.$slots, "aside-custom", {}, null, _push2, _parent2, _scopeId);
|
|
1576
|
+
} else {
|
|
1577
|
+
return [
|
|
1578
|
+
renderSlot(_ctx.$slots, "aside-custom")
|
|
1579
|
+
];
|
|
1580
|
+
}
|
|
1581
|
+
}),
|
|
1582
|
+
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
1583
|
+
if (_push2) {
|
|
1584
|
+
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push2, _parent2, _scopeId);
|
|
1585
|
+
} else {
|
|
1586
|
+
return [
|
|
1587
|
+
renderSlot(_ctx.$slots, "default")
|
|
1588
|
+
];
|
|
1589
|
+
}
|
|
1590
|
+
}),
|
|
1591
|
+
_: 3
|
|
1592
|
+
/* FORWARDED */
|
|
1593
|
+
}, _parent));
|
|
1594
|
+
}
|
|
1595
|
+
const _sfc_setup = _sfc_main.setup;
|
|
1596
|
+
_sfc_main.setup = (props, ctx) => {
|
|
1597
|
+
const ssrContext = useSSRContext();
|
|
1598
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../../../docs/pages/guide/post.md");
|
|
1599
|
+
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
1600
|
+
};
|
|
1601
|
+
const post = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
|
|
1602
|
+
export {
|
|
1603
|
+
__pageData,
|
|
1604
|
+
post as default
|
|
1605
|
+
};
|