i18n support

This commit is contained in:
FlintyLemming
2022-09-23 15:59:40 +08:00
parent b5dbc68b07
commit 34445ad1cb
8 changed files with 250 additions and 5 deletions

View File

@@ -1,6 +1,5 @@
---
title: "Archives"
date: 2019-05-28
layout: "archives"
slug: "archives"
menu:

View File

@@ -0,0 +1,10 @@
---
title: "归档"
layout: "archives"
slug: "archives"
menu:
main:
weight: -70
params:
icon: archives
---

View File

@@ -0,0 +1,37 @@
---
title: 友链
links:
- title: GitHub
description: GitHub is the world's largest software development platform.
website: https://github.com
image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
- title: TypeScript
description: TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
website: https://www.typescriptlang.org
image: ts-logo-128.jpg
menu:
main:
weight: -50
params:
icon: link
comments: false
---
To use this feature, add `links` section to frontmatter.
This page's frontmatter:
```yaml
links:
- title: GitHub
description: GitHub is the world's largest software development platform.
website: https://github.com
image: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
- title: TypeScript
description: TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
website: https://www.typescriptlang.org
image: ts-logo-128.jpg
```
`image` field accepts both local and external images.

View File

@@ -0,0 +1,13 @@
---
title: "搜索"
slug: "search"
layout: "search"
outputs:
- html
- json
menu:
main:
weight: -60
params:
icon: search
---