hugo-xmin/layouts/partials/footer.html

26 lines
827 B
HTML
Raw Normal View History

<footer>
{{ partial "foot_custom.html" . }}
{{ with .Site.Params.footer }}
<hr/>
2021-12-31 05:10:33 +02:00
{{ replace . "{Year}" now.Year | markdownify}}
{{ end }}
2017-06-21 21:43:23 +03:00
{{ if .File.Path }}
{{ $.Scratch.Set "FilePath" .File.Path }}
2017-08-09 19:12:17 +03: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 21:43:23 +03:00
{{ end }}
</footer>
</body>
</html>