new feature: external link post
This commit is contained in:
parent
e664d42571
commit
b4031adcd6
8 changed files with 53 additions and 5 deletions
|
@ -51,10 +51,11 @@ git clone https://github.com/mivinci/hugo-theme-minima.git themes/minima
|
|||
为缩短博客网页的加载和渲染时间,minima 不支持如公式、图表、评论插件的全局配置,需要在每篇文章中设置是否启用相关插件,以下是 minima 目前支持的文章配置。
|
||||
|
||||
| 字段 | 类型 | 解释 |
|
||||
| ----------- | ------ | --------------------------------- |
|
||||
|:----------- |:------ |:--------------------------------- |
|
||||
| title | string | 文章标题 |
|
||||
| description | string | 文章简介,会显示在标题和正文之间 |
|
||||
| date | string | 文章创建日期 |
|
||||
| link | string | 外部链接 |
|
||||
| categories | array | 文章分类 |
|
||||
| series | array | 文章专栏 |
|
||||
| tags | array | 文章标签 |
|
||||
|
@ -64,6 +65,24 @@ git clone https://github.com/mivinci/hugo-theme-minima.git themes/minima
|
|||
| draft | bool | true:该篇文章为草稿,不会被打包 |
|
||||
| toc | bool | true:为该篇文章开启目录显示 |
|
||||
|
||||
|
||||
### 外部链接
|
||||
|
||||
可在 front matter 中通过设置 `link` 来创建外部链接。
|
||||
|
||||
**Example**
|
||||
|
||||
```yaml
|
||||
---
|
||||
author: XJJ
|
||||
title: External Link Post
|
||||
date: 2021-07-17T10:52:59+08:00
|
||||
link: https://gohugo.io
|
||||
---
|
||||
```
|
||||
|
||||
当点击改文章题目时,会跳转到设置的链接地址 https://gohugo.io,🆒
|
||||
|
||||
### 反馈
|
||||
|
||||
欢迎在 [issues](https://github.com/Mivinci/hugo-theme-minima/issues) 下留言,或将问题详细描述发送到我的邮箱:mivinci@qq.com
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue