Skip to content

Commit

Permalink
update toc format
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaobinqt committed Nov 2, 2022
1 parent 6e4e198 commit 05136be
Show file tree
Hide file tree
Showing 36 changed files with 81 additions and 163 deletions.
6 changes: 2 additions & 4 deletions content/links/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ tags: [""]
categories: [""]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

<br/>
Expand Down
6 changes: 2 additions & 4 deletions content/posts/container-tech/k8s-glance.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ tags: ["k8s"]
categories: ["开发者手册"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

<!-- author: xiaobinqt -->
Expand Down
6 changes: 2 additions & 4 deletions content/posts/developer/ali-ssl.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ tags: ["SSL","aliyun"]
categories: ["开发者手册"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

## 申请
Expand Down
6 changes: 2 additions & 4 deletions content/posts/developer/cross-domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ tags: ["web"]
categories: ["web"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

<!-- author: xiaobinqt -->
Expand Down
6 changes: 2 additions & 4 deletions content/posts/developer/gitalk-init-issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ tags: ["gitalk","python","hugo"]
categories: ["开发者手册"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---


Expand Down
6 changes: 2 additions & 4 deletions content/posts/developer/hugo-algolia.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ tags: ["hugo","algolia"]
categories: ["开发者手册"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

最近在使用 hugo algolia 时,在 github actions 同步索引到 algolia 时总是出现这样的错误:
Expand Down
6 changes: 2 additions & 4 deletions content/posts/developer/hugo-title-support-emoji.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ tags: ["hugo","emoji"]
categories: ["开发者手册"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

## 解决方法
Expand Down
6 changes: 2 additions & 4 deletions content/posts/developer/mongodb-glance.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ tags: ["mongodb"]
categories: ["开发者手册"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

[//]: # (https://xiaobinqt.github.io)
Expand Down
6 changes: 2 additions & 4 deletions content/posts/developer/oauth2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ tags: ["web","oauth"]
categories: ["开发者手册"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true

---

Expand Down
6 changes: 2 additions & 4 deletions content/posts/developer/redis-break-pierce-avalanche.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ tags: ["redis"]
categories: ["开发者手册"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

## 缓存击穿
Expand Down
6 changes: 2 additions & 4 deletions content/posts/developer/redis-glance-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ tags: ["redis"]
categories: ["开发者手册"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---


Expand Down
6 changes: 2 additions & 4 deletions content/posts/developer/redo-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ tags: ["windows"]
categories: ["开发者手册"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

## 下载系统
Expand Down
6 changes: 2 additions & 4 deletions content/posts/developer/stop-chrome-auto-redirect-2-https.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ tags: ["chrome","http/https"]
categories: ["开发者手册"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

这几天在使用 google 浏览器打开公司的一个网站时,发现总是自动跳转到 https,以至于出现下面这个页面:
Expand Down
6 changes: 2 additions & 4 deletions content/posts/developer/wampserver-install-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ tags: ["wampserver","php"]
categories: ["开发者手册"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

<!-- author: xiaobinqt -->
Expand Down
6 changes: 2 additions & 4 deletions content/posts/developer/what-is-https.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ tags: ["http/https","SSL","TLS"]
categories: ["理解计算机"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

[//]: # (https://xiaobinqt.github.io)
Expand Down
6 changes: 2 additions & 4 deletions content/posts/frontend/js-call-c.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ tags: ["js"]
categories: ["web"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

最近在 node 项目开发中,有个需求是 nodeJS 需要支持调用 C 语言的函数,[node-addon-api](https://www.npmjs.com/package/node-addon-api) 可以支持这个需求。
Expand Down
12 changes: 4 additions & 8 deletions content/posts/frontend/js-cb-asyn.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ tags: ["js"]
categories: ["web"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

## 执行模式
Expand Down Expand Up @@ -103,11 +101,9 @@ p1.then(function (res) {

async 函数是非常新的语法功能,在 ES7 中可用。

async 函数返回一个 Promise 对象,可以使用 then 方法添加回调函数。await 作为修饰符,只能放在 async 内部使用。 当函数执行的时候,一旦遇到 await
就会先返回,等到触发的异步操作完成,再接着执行函数体内后面的语句。
async 函数返回一个 Promise 对象,可以使用 then 方法添加回调函数。await 作为修饰符,只能放在 async 内部使用。 当函数执行的时候,一旦遇到 await 就会先返回,等到触发的异步操作完成,再接着执行函数体内后面的语句。

await 等待右侧表达式的结果。 如果等到的不是一个 promise 对象,那 await 表达式的运算结果就是它等到的东西。 如果它等到的是一个 promise 对象,它会阻塞后面的代码,等着 promise 对象
resolve,然后得到 resolve 的值,作为 await 表达式的运算结果。
await 等待右侧表达式的结果。 如果等到的不是一个 promise 对象,那 await 表达式的运算结果就是它等到的东西。 如果它等到的是一个 promise 对象,它会阻塞后面的代码,等着 promise 对象 resolve,然后得到 resolve 的值,作为 await 表达式的运算结果。

```javascript
async function test() {
Expand Down
7 changes: 2 additions & 5 deletions content/posts/frontend/node-oom.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@ tags: ["web","node"]
categories: ["web"]
lightgallery: true

toc:
enable: false
auto: false
toc: true

math:
enable: true
math: true
---


Expand Down
6 changes: 2 additions & 4 deletions content/posts/git/pull-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ tags: ["git"]
categories: ["开发者手册"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

[//]: # (xiaobinqt.github.io)
Expand Down
6 changes: 2 additions & 4 deletions content/posts/go/break-continue-goto-label.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ tags: ["golang"]
categories: ["golang"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

<!-- author: xiaobinqt -->
Expand Down
6 changes: 2 additions & 4 deletions content/posts/go/functional-options-pattern.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ tags: ["golang"]
categories: ["golang"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

Go 语言没有构造函数,一般通过定义 New 函数来充当构造函数。但是,如果结构有较多字段,要初始化这些字段,就有很多种方式,有一种方式被认为是最优雅的,就是函数式选项模式(Functional Options Pattern)。
Expand Down
6 changes: 2 additions & 4 deletions content/posts/go/gmp-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ tags: ["golang"]
categories: ["golang"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

## 进程、线程、协程的区别
Expand Down
6 changes: 2 additions & 4 deletions content/posts/go/go-build-args.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ tags: ["golang"]
categories: ["golang"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

## 常用编译参数
Expand Down
6 changes: 2 additions & 4 deletions content/posts/go/go-gc.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ tags: ["golang"]
categories: ["golang"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

[//]: # (featuredImage: "https://cdn.xiaobinqt.cn/xiaobinqt.io/20220406/ce3a3b5e36c143cbbe589984ae467c4f.png")
Expand Down
6 changes: 2 additions & 4 deletions content/posts/go/go-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ tags: ["golang"]
categories: ["golang"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

[//]: # (author: xiaobinqt)
Expand Down
6 changes: 2 additions & 4 deletions content/posts/go/go-print-pdf.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ tags: ["golang","pdf"]
categories: ["golang"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---

<!-- author: xiaobinqt -->
Expand Down
6 changes: 2 additions & 4 deletions content/posts/go/grpc-demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ tags: ["golang"]
categories: ["golang"]
lightgallery: true

toc:
auto: false
toc: true

math:
enable: true
math: true
---


Expand Down
Loading

0 comments on commit 05136be

Please sign in to comment.