Skip to content

Commit 9931414

Browse files
committed
u /about/ with mind map by markmap
1 parent ad4396c commit 9931414

File tree

9 files changed

+132
-29
lines changed

9 files changed

+132
-29
lines changed

content/about.zh-cn.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title = "关于本站"
33
description = "关于本站"
44
keywords = "关于本站"
55
outputs = "html"
6+
[markmap]
7+
enabled = true
8+
id = "about"
69
+++
710

811
```text
@@ -13,6 +16,65 @@ outputs = "html"
1316

1417
## 关于我
1518

19+
```markmap
20+
# 🥷
21+
## 个人愿景
22+
- 认知升级
23+
- 长期主义
24+
- 积极分享
25+
## 长期目标
26+
- 投资交易年复合回报率达 15% 以上
27+
- 建立领域个人影响力
28+
- 被动收入总收入 50% 以上
29+
## 关注领域
30+
### 学习
31+
#### 自我提升
32+
- [目标管理](/self/life-in-plain-text/)
33+
- [时间管理](/self/gtd-tools-i-used/)
34+
- [笔记管理](/self/note-system/)
35+
- [财务管理](/self/beancount-my-accounting-tool-v2/)
36+
- [博客写作](/series/零成本搭建现代博客指南/)
37+
- [投资交易](/money/investment-path-for-young/)
38+
#### 终身学习
39+
- [信息输入](/self/my-info-input-channel/)
40+
- [知识输出](/self/build-personal-knowledge-system/#知识输出)
41+
### 技术
42+
#### [技术栈](/dev/tech-stack-of-side-project/)
43+
#### 关注技术
44+
- [SEO](https://twitter.com/madawei2699/status/1467359935998488577)
45+
- [WebRTC](https://twitter.com/madawei2699/status/1462051768389361670)
46+
- [云原生](https://twitter.com/madawei2699/status/1454453779718295556)
47+
- [分布式技术](https://twitter.com/madawei2699/status/1451837146097020928)
48+
- [Web3](https://twitter.com/madawei2699/status/1479829788139286533)
49+
- [内容营销](https://twitter.com/madawei2699/status/1481596368716451842)
50+
#### 开源项目
51+
- [free4chat](https://github.com/madawei2699/free4chat)
52+
- [instaghub](https://github.com/bmpi-dev/instaghub)
53+
- [Invest Alchemy](https://github.com/bmpi-dev/invest-alchemy)
54+
- [tg2web](https://github.com/bmpi-dev/tg2web)
55+
#### 个人产品
56+
- bmpi.dev
57+
- [blog](https://www.bmpi.dev)
58+
- [talk](/talk/)
59+
- [code](https://code.bmpi.dev/)
60+
- [wiki](https://wiki.bmpi.dev/)
61+
- [think](https://tg.bmpi.dev/)
62+
- [game](https://esl.bmpi.dev/)
63+
- [word](https://word.bmpi.dev/)
64+
- [wechat](https://wechat.bmpi.dev/)
65+
- [free4.chat](https://free4.chat/)
66+
- 自用托管网站
67+
- [logseq.xyz](https://logseq.xyz/)
68+
- [excalidraw](https://wb.bmpi.dev/)
69+
- 流量站
70+
- [gitopx.com](https://www.gitopx.com/)
71+
- [webtg.org](https://www.webtg.org/)
72+
### 投资
73+
#### 被动收入投资组合
74+
- [组合报告](/categories/被动收入投资组合/)
75+
- [组合持仓](https://www.notion.so/mdw/e0ed086e701a4d0aaa4839d2c7aa62ea)
76+
```
77+
1678
### [技术栈](/dev/tech-stack-of-side-project/)
1779

1880
![Elixir](https://img.shields.io/badge/-Elixir-%234B275F?style=flat-square&logo=elixir&logoColor=ffffff)

content/dev/time-in-distributed-system/index.zh-cn.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ og_image: "https://img.bmpi.dev/3d3413ee-7024-5ff7-5904-e9120dd5690f.png"
1010
categories: [
1111
"什么是X"
1212
]
13-
isMarkupEnabled: true
13+
markmap:
14+
enabled: true
1415
---
1516

1617
- [多出一秒让互联网暂停](#多出一秒让互联网暂停)

content/self/my-drawing-toolbox/index.zh-cn.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ keywords: "浏览器插件、Chrome插件、SEO浏览器插件"
77
description: "本文分享我常用的绘图工具,包括白板绘图、文本绘图、代码绘图与专业绘图等工具。"
88
isCJKLanguage: true
99
og_image: "https://img.bmpi.dev/4928b4de-db94-968e-115b-767d2e2f007a.png"
10-
isMarkupEnabled: true
10+
markmap:
11+
enabled: true
1112
isMermaidEnabled: true
1213
---
1314

resources/_gen/assets/scss/scss/coder.scss_5e1eb8e37c42cdfb6215b61e44dcfa5f.content

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"Target":"css/coder.min.7b8186ef7e2483f019a96f9fc1e781d07d3a3fac817a6c68ed1e8ae0da2f432d.css","MediaType":"text/css","Data":{"Integrity":"sha256-e4GG734kg/AZqW+fweeB0H06P6yBemxo7R6K4NovQy0="}}
1+
{"Target":"css/coder.min.3e5b69418cb2fbcbe0872ef8d6e91a63f025f6aa42d6e38a81cdf72d59f0b748.css","MediaType":"text/css","Data":{"Integrity":"sha256-PltpQYyy+8vghy741ukaY/Al9qpC1uOKgc33LVnwt0g="}}

resources/_gen/assets/scss/scss/coder.scss_fd4b5b3f9a48bc0c7f005d2f7a4cc30f.content

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,26 @@ div.notices.tip p {
374374
div.notices.tip p:first-child:after {
375375
content: 'Tip'; }
376376

377+
.markmap > svg {
378+
width: 100%;
379+
height: 400px;
380+
border: 1px dashed #ccc;
381+
font-size: .3em;
382+
font-family: 'LXGW WenKai'; }
383+
@media only screen and (max-width: 768px) {
384+
.markmap > svg {
385+
height: 230px; } }
386+
*[id^='markmap-about-'] > svg {
387+
height: 800px; }
388+
@media only screen and (max-width: 768px) {
389+
*[id^='markmap-about-'] > svg {
390+
height: 350px; } }
391+
.mermaid {
392+
width: 100%;
393+
height: auto;
394+
text-align: center;
395+
border: 1px dashed #ccc; }
396+
377397
.content {
378398
flex: 1;
379399
display: flex;

static/css/main.css

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -517,19 +517,4 @@ li .fa-jk {
517517
@keyframes fadeout {
518518
from {bottom: 30px; opacity: 1;}
519519
to {bottom: 60px; opacity: 0;}
520-
}
521-
522-
.markmap > svg {
523-
width: 100%;
524-
height: 350px;
525-
border: 1px dashed #ccc;
526-
font-size: .3em;
527-
font-family: 'LXGW WenKai';
528-
}
529-
530-
.mermaid {
531-
width: 100%;
532-
height: auto;
533-
text-align: center;
534-
border: 1px dashed #ccc;
535520
}

themes/hugo-coder/assets/scss/_base.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,3 +443,28 @@ div.notices.tip p {
443443
div.notices.tip p:first-child:after {
444444
content: 'Tip';
445445
}
446+
447+
.markmap > svg {
448+
width: 100%;
449+
height: 400px;
450+
border: 1px dashed #ccc;
451+
font-size: .3em;
452+
font-family: 'LXGW WenKai';
453+
@media only screen and (max-width : 768px) {
454+
height: 230px;
455+
}
456+
}
457+
458+
*[id^='markmap-about-'] > svg {
459+
height: 800px;
460+
@media only screen and (max-width : 768px) {
461+
height: 350px;
462+
}
463+
}
464+
465+
.mermaid {
466+
width: 100%;
467+
height: auto;
468+
text-align: center;
469+
border: 1px dashed #ccc;
470+
}

themes/hugo-coder/layouts/_default/baseof.html

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
{{ end }}
9696
{{ end }}
9797

98-
{{ if .Params.isMarkupEnabled }}
98+
{{ if .Params.markmap.enabled }}
9999
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.min.js"></script>
100100
<style>
101101
code[class*="language-"], pre[class*="language-"] {
@@ -201,16 +201,9 @@
201201
AOS.init({
202202
disable: 'mobile'
203203
});
204-
// add markup: https://github.com/gera2ld/markmap
205-
let markups = document.querySelectorAll('code[data-lang=markmap]');
206-
Array.prototype.forEach.call(markups, function(e) {
207-
let text = e.textContent;
208-
let markupDiv = document.createElement('div');
209-
markupDiv.className = 'markmap';
210-
markupDiv.textContent = text;
211-
e.parentElement.replaceWith(markupDiv);
212-
});
213204
</script>
205+
{{ end }}
206+
214207
{{ if .Params.isMermaidEnabled }}
215208
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js"></script>
216209
<script>
@@ -229,6 +222,22 @@
229222
: { securityLevel: "loose", theme: "base" });
230223
</script>
231224
{{ end }}
225+
226+
{{ if .Params.markmap.enabled }}
227+
<script>
228+
// add markmap: https://github.com/gera2ld/markmap
229+
let markups = document.querySelectorAll('code[data-lang=markmap]');
230+
var i = 0;
231+
Array.prototype.forEach.call(markups, function(e) {
232+
let text = e.textContent;
233+
let markupDiv = document.createElement('div');
234+
markupDiv.className = 'markmap';
235+
markupDiv.textContent = text;
236+
markupDiv.id = 'markmap-' + '{{ .Params.markmap.id }}-' + i;
237+
e.parentElement.replaceWith(markupDiv);
238+
i++;
239+
});
240+
</script>
232241
{{ end }}
233242

234243
</body>

0 commit comments

Comments
 (0)