hugo-xmin/layouts/partials/footer.html

26 lines
802 B
HTML
Raw Permalink Normal View History

<footer>
{{ partial "foot_custom.html" . }}
{{ with .Site.Params.footer }}
<hr/>
{{ . | markdownify }}
{{ end }}
2017-06-21 18:43:23 +00:00
{{ if .File.Path }}
{{ $.Scratch.Set "FilePath" .File.Path }}
2017-08-09 16:12:17 +00:00
{{ $RmdFile := (print .File.BaseFileName ".Rmd") }}
{{ $Files := readDir (print "content/" .File.Dir) }}
{{ if (where $Files "Name" $RmdFile) }}
{{ $.Scratch.Set "FilePath" (print .File.Dir $RmdFile) }}
{{ else }}
{{ $RmdFile := (print .File.BaseFileName ".Rmarkdown") }}
{{ if (where $Files "Name" $RmdFile) }}
{{ $.Scratch.Set "FilePath" (print .File.Dir $RmdFile) }}
{{ end }}
{{ end }}
{{ with .Site.Params.GithubEdit}}
| <a href="{{ . }}{{ $.Scratch.Get "FilePath" }}">Edit this page</a>
{{ end }}
2017-06-21 18:43:23 +00:00
{{ end }}
</footer>
</body>
</html>