2017-09-01 15:10:07 +02:00
|
|
|
package plugins
|
|
|
|
|
2022-01-29 20:17:23 +01:00
|
|
|
import "github.com/danog/gojekyll/utils"
|
2017-09-01 15:10:07 +02:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
register("github-pages", githubPagesPlugin{})
|
|
|
|
}
|
|
|
|
|
|
|
|
type githubPagesPlugin struct{ plugin }
|
|
|
|
|
|
|
|
func (p githubPagesPlugin) ModifyPluginList(names []string) []string {
|
|
|
|
for _, name := range githubPagesPlugins {
|
|
|
|
if !utils.StringArrayContains(names, name) {
|
|
|
|
names = append(names, name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return names
|
|
|
|
}
|
|
|
|
|
|
|
|
var githubPagesPlugins = []string{
|
|
|
|
"jekyll-avatar",
|
|
|
|
"jekyll-coffeescript",
|
|
|
|
"jekyll-default-layout",
|
|
|
|
"jekyll-feed",
|
|
|
|
"jekyll-gist",
|
|
|
|
"jekyll-github-metadata",
|
|
|
|
"jekyll-mentions",
|
|
|
|
"jekyll-optional-front-matter",
|
|
|
|
"jekyll-paginate",
|
|
|
|
"jekyll-readme-index",
|
|
|
|
"jekyll-redirect-from",
|
|
|
|
"jekyll-relative-links",
|
|
|
|
"jekyll-sass-converter",
|
|
|
|
"jekyll-seo-tag",
|
|
|
|
"jekyll-sitemap",
|
|
|
|
"jekyll-titles-from-headings",
|
|
|
|
"jemoji",
|
|
|
|
}
|