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