mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-11-23 00:49:19 +02:00
21 lines
594 B
HTML
21 lines
594 B
HTML
<footer>
|
|
{{ partial "foot_custom.html" . }}
|
|
{{ with .Site.Params.footer }}
|
|
<hr/>
|
|
{{ replace . "{Year}" now.Year | markdownify}}
|
|
{{ end }}
|
|
{{ if .File.Path }}
|
|
{{ $RmdFile := (print .File.BaseFileName ".Rmd") }}
|
|
{{ if (where (readDir (print "content/" .File.Dir)) "Name" $RmdFile) }}
|
|
{{ $.Scratch.Set "FilePath" (print .File.Dir $RmdFile) }}
|
|
{{ else }}
|
|
{{ $.Scratch.Set "FilePath" .File.Path }}
|
|
{{ end }}
|
|
{{ with .Site.Params.GithubEdit}}
|
|
| <a href="{{ . }}{{ $.Scratch.Get "FilePath" }}">Edit this page</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
</footer>
|
|
</body>
|
|
</html>
|