@jet-w/astro-blog 0.1.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.
Files changed (140) hide show
  1. package/dist/chunk-FXPGR372.js +0 -0
  2. package/dist/chunk-GYLSY3OJ.js +173 -0
  3. package/dist/config/index.d.ts +166 -0
  4. package/dist/config/index.js +38 -0
  5. package/dist/index.d.ts +34 -0
  6. package/dist/index.js +59 -0
  7. package/dist/types/index.d.ts +75 -0
  8. package/dist/types/index.js +1 -0
  9. package/package.json +84 -0
  10. package/src/components/EChartsCard.vue +118 -0
  11. package/src/components/Mermaid.vue +73 -0
  12. package/src/components/about/ContentCard.astro +27 -0
  13. package/src/components/about/IconCard.astro +77 -0
  14. package/src/components/about/SocialLinks.astro +54 -0
  15. package/src/components/about/TagCard.astro +65 -0
  16. package/src/components/about/TagGroup.astro +33 -0
  17. package/src/components/about/TimelineCard.astro +52 -0
  18. package/src/components/blog/FloatingToc.vue +198 -0
  19. package/src/components/blog/Hero.astro +147 -0
  20. package/src/components/blog/NavigationTabs.vue +245 -0
  21. package/src/components/blog/PostCard.astro +161 -0
  22. package/src/components/blog/PostNavigation.astro +106 -0
  23. package/src/components/blog/RelatedPosts.astro +175 -0
  24. package/src/components/blog/TableOfContents.astro +153 -0
  25. package/src/components/blog/TagCloud.astro +91 -0
  26. package/src/components/home/FeaturedPostsSection.astro +54 -0
  27. package/src/components/home/QuickNavSection.astro +81 -0
  28. package/src/components/home/RecentPostsSection.astro +52 -0
  29. package/src/components/home/StatsSection.astro +44 -0
  30. package/src/components/layout/Footer.astro +103 -0
  31. package/src/components/layout/Header.astro +68 -0
  32. package/src/components/layout/Sidebar.astro +594 -0
  33. package/src/components/media/Bilibili.astro +114 -0
  34. package/src/components/media/Slides.astro +313 -0
  35. package/src/components/media/Video.astro +111 -0
  36. package/src/components/media/VideoPlayer.astro +89 -0
  37. package/src/components/media/YouTube.astro +92 -0
  38. package/src/components/pte/StudyCalendar.vue +1348 -0
  39. package/src/components/ui/Icon.astro +187 -0
  40. package/src/components/ui/MobileMenu.vue +201 -0
  41. package/src/components/ui/Pagination.astro +143 -0
  42. package/src/components/ui/SearchBox.vue +179 -0
  43. package/src/components/ui/SearchInterface.vue +409 -0
  44. package/src/components/ui/SidebarToggle.vue +57 -0
  45. package/src/components/ui/ThemeToggle.vue +90 -0
  46. package/src/layouts/AboutLayout.astro +18 -0
  47. package/src/layouts/BaseLayout.astro +362 -0
  48. package/src/layouts/PageLayout.astro +217 -0
  49. package/src/layouts/SlidesLayout.astro +320 -0
  50. package/src/plugins/rehype-clean-containers.mjs +24 -0
  51. package/src/plugins/rehype-relative-links.mjs +43 -0
  52. package/src/plugins/rehype-tabs.mjs +116 -0
  53. package/src/plugins/remark-containers.mjs +407 -0
  54. package/src/plugins/remark-mermaid.mjs +46 -0
  55. package/src/styles/global.css +870 -0
  56. package/src/styles/slides.css +220 -0
  57. package/src/utils/sidebar.ts +492 -0
  58. package/templates/default/astro.config.mjs +51 -0
  59. package/templates/default/content/pages/about.mdx +93 -0
  60. package/templates/default/content/pages/index.mdx +20 -0
  61. package/templates/default/content/posts/blog_docs/01-quick-start.md +162 -0
  62. package/templates/default/content/posts/blog_docs/02-frontmatter.md +277 -0
  63. package/templates/default/content/posts/blog_docs/03-markdown-basic.md +350 -0
  64. package/templates/default/content/posts/blog_docs/04-containers.md +331 -0
  65. package/templates/default/content/posts/blog_docs/05-code-blocks.md +388 -0
  66. package/templates/default/content/posts/blog_docs/06-mermaid.md +431 -0
  67. package/templates/default/content/posts/blog_docs/07-video.md +243 -0
  68. package/templates/default/content/posts/blog_docs/08-latex.md +382 -0
  69. package/templates/default/content/posts/blog_docs/09-icons.md +326 -0
  70. package/templates/default/content/posts/blog_docs/10-sidebar.md +445 -0
  71. package/templates/default/content/posts/blog_docs/11-config.md +334 -0
  72. package/templates/default/content/posts/blog_docs/12-slides.mdx +552 -0
  73. package/templates/default/content/posts/blog_docs/README.md +151 -0
  74. package/templates/default/content/slides/demo.md +146 -0
  75. package/templates/default/content/slides/docs/basic-demo.md +35 -0
  76. package/templates/default/content/slides/docs/code-demo.md +62 -0
  77. package/templates/default/content/slides/docs/echarts-demo.md +139 -0
  78. package/templates/default/content/slides/docs/fragment-demo.md +35 -0
  79. package/templates/default/content/slides/docs/math-demo.md +48 -0
  80. package/templates/default/content/slides/docs/mermaid-demo.md +105 -0
  81. package/templates/default/content/slides/docs/theme-demo.md +38 -0
  82. package/templates/default/content/slides/docs/vertical-demo.md +50 -0
  83. package/templates/default/package.json +31 -0
  84. package/templates/default/public/favicon-bak.svg +4 -0
  85. package/templates/default/public/images/avatar.jpg +0 -0
  86. package/templates/default/public/images/avatar.svg +142 -0
  87. package/templates/default/public/js/mermaid-container.js +402 -0
  88. package/templates/default/public/js/mermaid-init.js +131 -0
  89. package/templates/default/public/js/mermaid-render.js +98 -0
  90. package/templates/default/public/js/mermaid-simple.js +95 -0
  91. package/templates/default/public/js/tabs-init.js +86 -0
  92. package/templates/default/public/media/individual_portfolio/INDIVIDUAL PORTFOLIO.png +0 -0
  93. package/templates/default/public/slides/plugin/highlight/highlight.js +5 -0
  94. package/templates/default/public/slides/plugin/highlight/monokai.css +71 -0
  95. package/templates/default/public/slides/plugin/markdown/markdown.js +7 -0
  96. package/templates/default/public/slides/plugin/math/math.js +1 -0
  97. package/templates/default/public/slides/plugin/notes/notes.js +1 -0
  98. package/templates/default/public/slides/reveal.css +9 -0
  99. package/templates/default/public/slides/reveal.js +9 -0
  100. package/templates/default/public/slides/theme/beige.css +366 -0
  101. package/templates/default/public/slides/theme/black-contrast.css +362 -0
  102. package/templates/default/public/slides/theme/black.css +359 -0
  103. package/templates/default/public/slides/theme/blood.css +392 -0
  104. package/templates/default/public/slides/theme/dracula.css +385 -0
  105. package/templates/default/public/slides/theme/league.css +368 -0
  106. package/templates/default/public/slides/theme/moon.css +362 -0
  107. package/templates/default/public/slides/theme/night.css +360 -0
  108. package/templates/default/public/slides/theme/serif.css +363 -0
  109. package/templates/default/public/slides/theme/simple.css +362 -0
  110. package/templates/default/public/slides/theme/sky.css +370 -0
  111. package/templates/default/public/slides/theme/solarized.css +363 -0
  112. package/templates/default/public/slides/theme/white-contrast.css +362 -0
  113. package/templates/default/public/slides/theme/white.css +359 -0
  114. package/templates/default/public/slides/theme/white_contrast_compact_verbatim_headers.css +360 -0
  115. package/templates/default/public/test-complete.html +43 -0
  116. package/templates/default/public/test-mermaid.html +124 -0
  117. package/templates/default/src/config/index.ts +114 -0
  118. package/templates/default/src/content.config.ts +96 -0
  119. package/templates/default/src/pages/[...slug].astro +27 -0
  120. package/templates/default/src/pages/archives/[year]/[month]/page/[page].astro +176 -0
  121. package/templates/default/src/pages/archives/[year]/[month].astro +158 -0
  122. package/templates/default/src/pages/archives/index.astro +210 -0
  123. package/templates/default/src/pages/categories/[category]/page/[page].astro +218 -0
  124. package/templates/default/src/pages/categories/[category].astro +198 -0
  125. package/templates/default/src/pages/categories/index.astro +190 -0
  126. package/templates/default/src/pages/container-test.astro +79 -0
  127. package/templates/default/src/pages/mermaid-direct.html +78 -0
  128. package/templates/default/src/pages/posts/[...slug].astro +335 -0
  129. package/templates/default/src/pages/posts/index.astro +541 -0
  130. package/templates/default/src/pages/posts/page/[page].astro +146 -0
  131. package/templates/default/src/pages/rss.xml.ts +28 -0
  132. package/templates/default/src/pages/search-index.json.ts +21 -0
  133. package/templates/default/src/pages/search.astro +50 -0
  134. package/templates/default/src/pages/slides/[...slug].astro +54 -0
  135. package/templates/default/src/pages/slides/index.astro +135 -0
  136. package/templates/default/src/pages/tags/[tag]/page/[page].astro +211 -0
  137. package/templates/default/src/pages/tags/[tag].astro +191 -0
  138. package/templates/default/src/pages/tags/index.astro +167 -0
  139. package/templates/default/tailwind.config.mjs +78 -0
  140. package/templates/default/tsconfig.json +9 -0
@@ -0,0 +1,392 @@
1
+ /**
2
+ * Blood theme for reveal.js
3
+ * Author: Walther http://github.com/Walther
4
+ *
5
+ * Designed to be used with highlight.js theme
6
+ * "monokai_sublime.css" available from
7
+ * https://github.com/isagalaev/highlight.js/
8
+ *
9
+ * For other themes, change $codeBackground accordingly.
10
+ *
11
+ */
12
+ @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
13
+ section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
14
+ color: #222;
15
+ }
16
+
17
+ /*********************************************
18
+ * GLOBAL STYLES
19
+ *********************************************/
20
+ :root {
21
+ --r-background-color: #222;
22
+ --r-main-font: Ubuntu, sans-serif;
23
+ --r-main-font-size: 40px;
24
+ --r-main-color: #eee;
25
+ --r-block-margin: 20px;
26
+ --r-heading-margin: 0 0 20px 0;
27
+ --r-heading-font: Ubuntu, sans-serif;
28
+ --r-heading-color: #eee;
29
+ --r-heading-line-height: 1.2;
30
+ --r-heading-letter-spacing: normal;
31
+ --r-heading-text-transform: uppercase;
32
+ --r-heading-text-shadow: 2px 2px 2px #222;
33
+ --r-heading-font-weight: normal;
34
+ --r-heading1-text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15);
35
+ --r-heading1-size: 3.77em;
36
+ --r-heading2-size: 2.11em;
37
+ --r-heading3-size: 1.55em;
38
+ --r-heading4-size: 1em;
39
+ --r-code-font: monospace;
40
+ --r-link-color: #a23;
41
+ --r-link-color-dark: rgb(144.5, 28.9, 43.35);
42
+ --r-link-color-hover: rgb(214.2, 51, 71.4);
43
+ --r-selection-background-color: #a23;
44
+ --r-selection-color: #fff;
45
+ --r-overlay-element-bg-color: 240, 240, 240;
46
+ --r-overlay-element-fg-color: 0, 0, 0;
47
+ }
48
+
49
+ .reveal-viewport {
50
+ background: #222;
51
+ background-color: var(--r-background-color);
52
+ }
53
+
54
+ .reveal {
55
+ font-family: var(--r-main-font);
56
+ font-size: var(--r-main-font-size);
57
+ font-weight: normal;
58
+ color: var(--r-main-color);
59
+ }
60
+
61
+ .reveal ::selection {
62
+ color: var(--r-selection-color);
63
+ background: var(--r-selection-background-color);
64
+ text-shadow: none;
65
+ }
66
+
67
+ .reveal ::-moz-selection {
68
+ color: var(--r-selection-color);
69
+ background: var(--r-selection-background-color);
70
+ text-shadow: none;
71
+ }
72
+
73
+ .reveal .slides section,
74
+ .reveal .slides section > section {
75
+ line-height: 1.3;
76
+ font-weight: inherit;
77
+ }
78
+
79
+ /*********************************************
80
+ * HEADERS
81
+ *********************************************/
82
+ .reveal h1,
83
+ .reveal h2,
84
+ .reveal h3,
85
+ .reveal h4,
86
+ .reveal h5,
87
+ .reveal h6 {
88
+ margin: var(--r-heading-margin);
89
+ color: var(--r-heading-color);
90
+ font-family: var(--r-heading-font);
91
+ font-weight: var(--r-heading-font-weight);
92
+ line-height: var(--r-heading-line-height);
93
+ letter-spacing: var(--r-heading-letter-spacing);
94
+ text-transform: var(--r-heading-text-transform);
95
+ text-shadow: var(--r-heading-text-shadow);
96
+ word-wrap: break-word;
97
+ }
98
+
99
+ .reveal h1 {
100
+ font-size: var(--r-heading1-size);
101
+ }
102
+
103
+ .reveal h2 {
104
+ font-size: var(--r-heading2-size);
105
+ }
106
+
107
+ .reveal h3 {
108
+ font-size: var(--r-heading3-size);
109
+ }
110
+
111
+ .reveal h4 {
112
+ font-size: var(--r-heading4-size);
113
+ }
114
+
115
+ .reveal h1 {
116
+ text-shadow: var(--r-heading1-text-shadow);
117
+ }
118
+
119
+ /*********************************************
120
+ * OTHER
121
+ *********************************************/
122
+ .reveal p {
123
+ margin: var(--r-block-margin) 0;
124
+ line-height: 1.3;
125
+ }
126
+
127
+ /* Remove trailing margins after titles */
128
+ .reveal h1:last-child,
129
+ .reveal h2:last-child,
130
+ .reveal h3:last-child,
131
+ .reveal h4:last-child,
132
+ .reveal h5:last-child,
133
+ .reveal h6:last-child {
134
+ margin-bottom: 0;
135
+ }
136
+
137
+ /* Ensure certain elements are never larger than the slide itself */
138
+ .reveal img,
139
+ .reveal video,
140
+ .reveal iframe {
141
+ max-width: 95%;
142
+ max-height: 95%;
143
+ }
144
+
145
+ .reveal strong,
146
+ .reveal b {
147
+ font-weight: bold;
148
+ }
149
+
150
+ .reveal em {
151
+ font-style: italic;
152
+ }
153
+
154
+ .reveal ol,
155
+ .reveal dl,
156
+ .reveal ul {
157
+ display: inline-block;
158
+ text-align: left;
159
+ margin: 0 0 0 1em;
160
+ }
161
+
162
+ .reveal ol {
163
+ list-style-type: decimal;
164
+ }
165
+
166
+ .reveal ul {
167
+ list-style-type: disc;
168
+ }
169
+
170
+ .reveal ul ul {
171
+ list-style-type: square;
172
+ }
173
+
174
+ .reveal ul ul ul {
175
+ list-style-type: circle;
176
+ }
177
+
178
+ .reveal ul ul,
179
+ .reveal ul ol,
180
+ .reveal ol ol,
181
+ .reveal ol ul {
182
+ display: block;
183
+ margin-left: 40px;
184
+ }
185
+
186
+ .reveal dt {
187
+ font-weight: bold;
188
+ }
189
+
190
+ .reveal dd {
191
+ margin-left: 40px;
192
+ }
193
+
194
+ .reveal blockquote {
195
+ display: block;
196
+ position: relative;
197
+ width: 70%;
198
+ margin: var(--r-block-margin) auto;
199
+ padding: 5px;
200
+ font-style: italic;
201
+ background: rgba(255, 255, 255, 0.05);
202
+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
203
+ }
204
+
205
+ .reveal blockquote p:first-child,
206
+ .reveal blockquote p:last-child {
207
+ display: inline-block;
208
+ }
209
+
210
+ .reveal q {
211
+ font-style: italic;
212
+ }
213
+
214
+ .reveal pre {
215
+ display: block;
216
+ position: relative;
217
+ width: 90%;
218
+ margin: var(--r-block-margin) auto;
219
+ text-align: left;
220
+ font-size: 0.55em;
221
+ font-family: var(--r-code-font);
222
+ line-height: 1.2em;
223
+ word-wrap: break-word;
224
+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
225
+ }
226
+
227
+ .reveal code {
228
+ font-family: var(--r-code-font);
229
+ text-transform: none;
230
+ tab-size: 2;
231
+ }
232
+
233
+ .reveal pre code {
234
+ display: block;
235
+ padding: 5px;
236
+ overflow: auto;
237
+ max-height: 400px;
238
+ word-wrap: normal;
239
+ }
240
+
241
+ .reveal .code-wrapper {
242
+ white-space: normal;
243
+ }
244
+
245
+ .reveal .code-wrapper code {
246
+ white-space: pre;
247
+ }
248
+
249
+ .reveal table {
250
+ margin: auto;
251
+ border-collapse: collapse;
252
+ border-spacing: 0;
253
+ }
254
+
255
+ .reveal table th {
256
+ font-weight: bold;
257
+ }
258
+
259
+ .reveal table th,
260
+ .reveal table td {
261
+ text-align: left;
262
+ padding: 0.2em 0.5em 0.2em 0.5em;
263
+ border-bottom: 1px solid;
264
+ }
265
+
266
+ .reveal table th[align=center],
267
+ .reveal table td[align=center] {
268
+ text-align: center;
269
+ }
270
+
271
+ .reveal table th[align=right],
272
+ .reveal table td[align=right] {
273
+ text-align: right;
274
+ }
275
+
276
+ .reveal table tbody tr:last-child th,
277
+ .reveal table tbody tr:last-child td {
278
+ border-bottom: none;
279
+ }
280
+
281
+ .reveal sup {
282
+ vertical-align: super;
283
+ font-size: smaller;
284
+ }
285
+
286
+ .reveal sub {
287
+ vertical-align: sub;
288
+ font-size: smaller;
289
+ }
290
+
291
+ .reveal small {
292
+ display: inline-block;
293
+ font-size: 0.6em;
294
+ line-height: 1.2em;
295
+ vertical-align: top;
296
+ }
297
+
298
+ .reveal small * {
299
+ vertical-align: top;
300
+ }
301
+
302
+ .reveal img {
303
+ margin: var(--r-block-margin) 0;
304
+ }
305
+
306
+ /*********************************************
307
+ * LINKS
308
+ *********************************************/
309
+ .reveal a {
310
+ color: var(--r-link-color);
311
+ text-decoration: none;
312
+ transition: color 0.15s ease;
313
+ }
314
+
315
+ .reveal a:hover {
316
+ color: var(--r-link-color-hover);
317
+ text-shadow: none;
318
+ border: none;
319
+ }
320
+
321
+ .reveal .roll span:after {
322
+ color: #fff;
323
+ background: var(--r-link-color-dark);
324
+ }
325
+
326
+ /*********************************************
327
+ * Frame helper
328
+ *********************************************/
329
+ .reveal .r-frame {
330
+ border: 4px solid var(--r-main-color);
331
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
332
+ }
333
+
334
+ .reveal a .r-frame {
335
+ transition: all 0.15s linear;
336
+ }
337
+
338
+ .reveal a:hover .r-frame {
339
+ border-color: var(--r-link-color);
340
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
341
+ }
342
+
343
+ /*********************************************
344
+ * NAVIGATION CONTROLS
345
+ *********************************************/
346
+ .reveal .controls {
347
+ color: var(--r-link-color);
348
+ }
349
+
350
+ /*********************************************
351
+ * PROGRESS BAR
352
+ *********************************************/
353
+ .reveal .progress {
354
+ background: rgba(0, 0, 0, 0.2);
355
+ color: var(--r-link-color);
356
+ }
357
+
358
+ /*********************************************
359
+ * PRINT BACKGROUND
360
+ *********************************************/
361
+ @media print {
362
+ .backgrounds {
363
+ background-color: var(--r-background-color);
364
+ }
365
+ }
366
+ .reveal p {
367
+ font-weight: 300;
368
+ text-shadow: 1px 1px #222;
369
+ }
370
+
371
+ section.has-light-background p, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4 {
372
+ text-shadow: none;
373
+ }
374
+
375
+ .reveal h1,
376
+ .reveal h2,
377
+ .reveal h3,
378
+ .reveal h4,
379
+ .reveal h5,
380
+ .reveal h6 {
381
+ font-weight: 700;
382
+ }
383
+
384
+ .reveal p code {
385
+ background-color: #23241f;
386
+ display: inline-block;
387
+ border-radius: 7px;
388
+ }
389
+
390
+ .reveal small code {
391
+ vertical-align: baseline;
392
+ }