{{- range $author := .Site.Params.authors.list -}} {{- if not (fileExists (print "data/authors/" $author ".yaml")) -}} {{- $configuration := resources.Get "templates/author.yaml" -}} {{- $configuration := resources.ExecuteAsTemplate (print "/data/generates/authors/" $author ".yaml") (dict "Name" (title $author) "User" $author ) $configuration -}} {{- $writeToFile := $configuration.Permalink -}} {{- end -}} {{- $markdown := resources.Get "templates/markdown-frontmatter.yaml" -}} {{- $template := resources.ExecuteAsTemplate (print "/data/generates/content/" $author "/" "_index.md") (dict "author" $author "layout" "section" ) $markdown -}} {{- $writeToFile := $template.Permalink -}} {{- $template := resources.ExecuteAsTemplate (print "/data/generates/content/" $author "/feeds/" "_index.md") (dict "author" $author "layout" "section.feeds" ) $markdown -}} {{- $writeToFile := $template.Permalink -}} {{- $template := resources.ExecuteAsTemplate (print "/data/generates/content/" $author "/media/" "_index.md") (dict "author" $author "layout" "section.media" ) $markdown -}} {{- $writeToFile := $template.Permalink -}} {{- $template := resources.ExecuteAsTemplate (print "/data/generates/content/" $author "/marks/" "_index.md") (dict "author" $author "layout" "section.marks" ) $markdown -}} {{- $writeToFile := $template.Permalink -}} {{- $template := resources.ExecuteAsTemplate (print "/data/generates/content/" $author "/drafts/" "_index.md") (dict "author" $author "layout" "section.drafts" ) $markdown -}} {{- $writeToFile := $template.Permalink -}} {{- end -}}