blob: d1fc0c2bf8a4f1633d292b0b19a070d8717809ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{{- range $author := .Site.Author.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 -}}
|