hugo docshelper 源码

  • 2022-10-23
  • 浏览 (474)

hugo docshelper 代码

文件路径:/media/docshelper.go

package media

import (
	"github.com/gohugoio/hugo/docshelper"
)

// This is is just some helpers used to create some JSON used in the Hugo docs.
func init() {
	docsProvider := func() docshelper.DocProvider {
		return docshelper.DocProvider{"media": map[string]any{"types": DefaultTypes}}
	}
	docshelper.AddDocProviderFunc(docsProvider)
}

相关信息

hugo 源码目录

相关文章

hugo mediaType 源码

0  赞