From 7c78a412641477cd58a924700cee1d9c46d9ac93 Mon Sep 17 00:00:00 2001 From: 1AoB <2453468739@qq.com> Date: Wed, 1 Nov 2023 23:52:18 +0800 Subject: [PATCH] change about --- .../content/page/archives/index.zh-cn.md | 2 +- exampleSite/content/page/links/index.zh-cn.md | 37 +++++++++++++++++++ .../content/page/search/index.zh-cn.md | 14 +++++++ 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 exampleSite/content/page/links/index.zh-cn.md create mode 100644 exampleSite/content/page/search/index.zh-cn.md diff --git a/exampleSite/content/page/archives/index.zh-cn.md b/exampleSite/content/page/archives/index.zh-cn.md index d85fc24..f1eecbd 100644 --- a/exampleSite/content/page/archives/index.zh-cn.md +++ b/exampleSite/content/page/archives/index.zh-cn.md @@ -1,5 +1,5 @@ --- -title: "My writings" +title: "我的文章" date: 2023-11-01 layout: "archives" slug: "archives" diff --git a/exampleSite/content/page/links/index.zh-cn.md b/exampleSite/content/page/links/index.zh-cn.md new file mode 100644 index 0000000..832b6eb --- /dev/null +++ b/exampleSite/content/page/links/index.zh-cn.md @@ -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. \ No newline at end of file diff --git a/exampleSite/content/page/search/index.zh-cn.md b/exampleSite/content/page/search/index.zh-cn.md new file mode 100644 index 0000000..dedbbda --- /dev/null +++ b/exampleSite/content/page/search/index.zh-cn.md @@ -0,0 +1,14 @@ +--- +title: "搜索文章" +slug: "search" +layout: "search" +outputs: + - html + - json +menu: + main: + weight: -60 + params: + icon: search +--- +