重置链接

2021-01-01

该项为必选置项,map类型,包含站点重置链接信息

在项目目录 config.toml,可配置该项

配置

1[site.markdown.link.source]
2state = true
3"fungo.dev" = true
4"www.fundipper.cn" = true
5
6[site.markdown.link.attribute]
7rel = "nofollow"
8target = "_blank"
Notice:
  • 该项所定义内容,在任意模板页均可使用

  • 该项为数组字典类型,支持配置多个非重名[name]配置项

释义


  1. source

设置重置链接的资源

  • key

    链接 host string 类型

  • value

    重置状态 bool 类型

  1. attribute

设置重置链接的属性

举例

  • markdown

    1[website](http://fungo.dev)
    2[source](http://github.com/fundipper/fungo)
    
  • html

    1<p><a href="https://fungo.dev">website</a></p>
    2<p><a href="https://github.com/fundipper/fungo" rel="nofollow" target="_blank">source</a></p>
    
  • code

    website

    source