File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 44 < hr />
55 {{ replace . "{Year}" now.Year | markdownify }}
66 {{ end }}
7- {{ if .File.Path }}
8- {{ $.Scratch.Set "FilePath" .File. Path }}
9- {{ $RmdFile := (print .File. BaseFileName ".Rmd") }}
10- {{ $Files := readDir (print "content/" .File. Dir) }}
7+ {{ with .File }}
8+ {{ $.Scratch.Set "FilePath" .Path }}
9+ {{ $RmdFile := (print .BaseFileName ".Rmd") }}
10+ {{ $Files := readDir (print "content/" .Dir) }}
1111 {{ if (where $Files "Name" $RmdFile) }}
12- {{ $.Scratch.Set "FilePath" (print .File. Dir $RmdFile) }}
12+ {{ $.Scratch.Set "FilePath" (print .Dir $RmdFile) }}
1313 {{ else }}
14- {{ $RmdFile := (print .File. BaseFileName ".Rmarkdown") }}
14+ {{ $RmdFile := (print .BaseFileName ".Rmarkdown") }}
1515 {{ if (where $Files "Name" $RmdFile) }}
16- {{ $.Scratch.Set "FilePath" (print .File. Dir $RmdFile) }}
16+ {{ $.Scratch.Set "FilePath" (print .Dir $RmdFile) }}
1717 {{ end }}
1818 {{ end }}
19- {{ with .Site.Params.GithubEdit}}
19+ {{ with $ .Site.Params.GithubEdit}}
2020 | < a href ="{{ . }}{{ $.Scratch.Get "FilePath " }}"> Edit this page</ a >
2121 {{ end }}
2222 {{ end }}
You can’t perform that action at this time.
0 commit comments